2

Is there any component 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?

Tapas Bose
  • 28,796
  • 74
  • 215
  • 331

3 Answers3

3

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

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
2

You're looking for the Glass Pane, work through the tutorial here and the relevant section here

Goibniu
  • 2,212
  • 3
  • 34
  • 38
1

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

Stephan
  • 4,395
  • 3
  • 26
  • 49