Veil LoadingImage or LoadingPanel over JFrame
Is there any component开发者_如何学C in Swing(X) by which we can place a veil loading image over a panel or frame making it transparent during some lengthy background processing?
Few examples of Romain Guy's work:
Chapter 9 of “Filthy Rich Clients” book, with downloadable code
SwingFX: Pretty Progress Panels
Glasspane Painting
GlassPane Intercepts
And other example:
GlassExample
You're looking for the Glass Pane, work through the tutorial here and the relevant section here
You need to add a glasspane to the frame, thats right. But you also can use SwingX' JXFrame and simply set a waitpane and activate it when a loading action starts.
Have a look at the API
精彩评论