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.