Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Startup dialog

 
Simon Ruddleston
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to create a pop up dialog that displays the application details while waiting for the main application to load.

I've tryed using a dialog that displays an Image and plan to use a timer such that the dialog is displosed of after a set time.

Not sure if this is the best approach. The dialogs title bar gives a poor impression. Can I remove the title bar from the dialog such that just the contents of the dialogs JPanel are displayed?

Many thanks
 
Brian Cole
Author
Ranch Hand
Posts: 923
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Simon Ruddleston:
I would like to create a pop up dialog that displays the application details while waiting for the main application to load.

I've tryed using a dialog that displays an Image and plan to use a timer such that the dialog is displosed of after a set time.

Not sure if this is the best approach. The dialogs title bar gives a poor impression. Can I remove the title bar from the dialog such that just the contents of the dialogs JPanel are displayed?


You can use a JWindow instead of a JDialog, or you can try calling yourDialog.setUndecorated(true).

But before jumping in to that, have you looked at the SplashScreen functionality that's new with jdk6?

[edit: I originally mentioned JDialog.setDefaultLookAndFeelDecorated() but that's a static method that applies to all dialogs.]
[ December 05, 2007: Message edited by: Brian Cole ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!