简体   繁体   中英

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) .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM