posted 23 years ago
Fardeen,
Since the window doesn't have a titlebar, there is no built in way to move it ( try it on a normal window... the only place you can grab a regular window to move it is the title bar... ) so you have to program in your own code to move the window... something like the following should suffice :
parul,
What OS are you running on? I am using Windows NT and the window doesn't disappear when I switch processes... it doesn't have a box on the taskbar ( since it doesn't have a titlebar it isn't a full-fledged window... ), but if you use alt-tab, you will be able to switch back to it...
Also... depending on the IDE, your class may be running inside the IDE process if you launch it from the IDE... try running your class from DOS to see if this is still a problem.
And, before asking if we can make the window always be on top... No... sorry... You can't make a system level modal window in java... only an application level modal window...
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.