开发者

Veil LoadingImage or LoadingPanel over JFrame

开发者 https://www.devze.com 2023-03-27 22:29 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号