Aung Thet
Aung Thet

Reputation: 3610

how can i do to dim background screen when open new message box or other dialog box

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

Answers (1)

camickr
camickr

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

Related Questions