This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi fardeen, I think u should use JWindow instead of JFrame which does not have any title bar.
Joined: Dec 08, 2000
Hi Deekasha, if i use JWindow then it becomes static on the left top coner and i am not able to move it on the screen..i am making a ticker which should be able to move all over the desktop..is there any other way out thanx fardeen
hi deekasha (did i typed correct?) i am using free java ide when i run mu prog it shows winow without titlebar over process window of ide but when i switch between tasks it disappears y is it not persistent please guide thanx in advance
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 :
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...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.