• Post Reply Bookmark Topic Watch Topic
  • New Topic

a welcome screen  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there some way to make a welcome screen for a java application.. like most of the programs (word, flash, jbuilder....)??
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saeed,
If you mean just a splash screen, sure thing. You may first want to just look at javax.swing.JOptionPane which has numerous static methods to pop up a window. Here is an example of its use:

The problem with that approach is that it requires the user to press an OK button to proceed. If you want to get fancy and have the splash screen timeout and disappear on its own then you will probably want to extend a javax.swing.JFrame, build the splash screen on it, set a javax.swing.Timer either internally or externally and when the timer fires, call setVisible(false) on the JFrame.
 
Sammer Meer
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you friend,
bt this way of JOptionPane, does it return a splash screen as you said, i.e. without the upper bar (which contains close,minimize...) or no?
You meant there r only two ways which are the ones u mentioned?
Thx in advance
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a java splash application. Quote: "This program functions as a simple wrapper application - it can be called with the name of another application as a parameter, and it displays a splash graphic before loading and launching said target application. No alteration (or recompilation) to the target application of the target application is needed."
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
another example: http://www.mijnadres.net/forum/viewtopic.php?t=104
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a simple one I wrote that I use in my apps:
http://filenabber.com/free-java-classes/
Feel free to use it if you want.
Brian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!