This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

a welcome screen

 
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
 
mooooooo ..... tiny ad ....
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!