• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to remove title bar from a JFrame  RSS feed

 
Sunil Babu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i need some solution so that i can remove title bar from a frame something like splash screen in VB
bye bye
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want a spalsh screen you can use javax.swing.JWindow or java.awt.Window
 
ali rafiq
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let see my small site linkhere
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ali rafiq:
let see my small site linkhere

Thanks a ton Ali .... that was a very imp link for me atleast. IS it possible to remove the title bar from a normal frame .
[ April 16, 2003: Message edited by: raghav mathur ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using JDK 1.4+ you could use the setUndecorated( true ) method of Frame.
 
Narayanan Jayaraman
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we are not using JDK 1.4 how do we do this in JDK 1.2 / 1.3 Thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. You have to use Window/JWindow like Ali suggested.
[ April 16, 2003: Message edited by: Nathan Pruett ]
 
Narayanan Jayaraman
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one is recommended for good performance? Either JWindow or JFrame.setUndecorated(false) ?. Thanks
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks a ton Nathan . It worked in 1.4
[ April 16, 2003: Message edited by: raghav mathur ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know which one of JWindow or JFrame.setUndecorated(true) performs better... I do know that if all you are doing is displaying a graphic, and you don't need to add any Swing components to the splash screen, Window (from AWT) comes up a bit faster than JWindow because it doesn't have to create the RootPane, ContentPane, etc that Swing requires.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!