Reputation: 3610
I am creating a project that include login and sign up . In that, I want to do background screen in dim state when open some dialog box or others (like login or sign up box) .
Upvotes: 0
Views: 434
Reputation: 324118
You can use a Glass Pane to paint over the entire JFrame.
Just set the background of the Glass Pane to a color with transparency when you make the glass pane visible.
Upvotes: 2