I have a modal JDialog (it MUST be modal) and I need to see it appearing in the Windows toolbar.
Can anyone give me suggestions?
Thanks
Printable View
I have a modal JDialog (it MUST be modal) and I need to see it appearing in the Windows toolbar.
Can anyone give me suggestions?
Thanks
show your code.
That sounds unnatural. Modal dialogs are supposed to pop out in front of everything and demand attention not to be shyly embedded as part of the Windows tool bar.
This JDialog is a lock-out dialog, which appears when a time-out expired. It ask to insert a pwd if you want to unlock the application.
Since it is possible that when my app is running, the user works with other apps, the lock-out dialog can be "ignored" by user, and when he want to come back to my app, he should be able to see this dialog into the toolbar. (it is a product requirement, I cannot change it!!)
Of course you can't change it. We swore secret oaths that we will implement as per requirements or else offer our privies for daylight defenestration. Was only trying to understand the requirement better.
Now then, what do you mean by Windows tool bar? Do you mean your application's menu bar? Should users see this log in box even if they are working on other applications? Did you mean the system tray?
Yes, I mean the Windows taskbar status area, in which the user can see the running applications.
The link I posted above explains what's possible when tinkering with the system tray.