Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
How to create a splash screen using java?
Sujoy Mukherjee
Ranch Hand
Posts: 51
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How to create a splash screen using
java
?
VarunKumar Mallisetty
Ranch Hand
Posts: 31
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Try this.You can make the modification you want.Hope this provides the basic idea.
FrmSplash FormSplash = new FrmSplash(); Thread ThFormSplash = new Thread(FormSplash); ------------------------------------------------ protected void loadSplashScreen(){ //Start the thread ThFormSplash.start(); while(!FormSplash.isShowing()){ try{ //Display the FormSplash for 5 seconds Thread.sleep(5000); }catch(InterruptedException e){ } } } -------------------------------------------- class FrmSplash extends JWindow implements Runnable{ Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); public void run(){ JLabel SplashLabel = new JLabel("Splash Screen"); //Change the Label part here and keep what ever u want.An Image for example. getContentPane().add(SplashLabel,BorderLayout.CENTER); setSize(275,300); setLocation (d.width / 2 - getWidth() / 2, d.height / 2 - getHeight() / 2); setVisible(true); } }
SCJP 6.0
VarunKumar Mallisetty
Ranch Hand
Posts: 31
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This link provides good explanation.
Splash Screen
SCJP 6.0
Oh. Hi guys! Look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
splash scren coding
Smart Splash screen
splash screen
options in jar files....
splash screen
More...