java


Java: SplashScreen - Setting it up


I want show an image/gif while my program is loading at boot. When the loading is finished, I want the image to close and the program begins as usual. I heard about SplashScreen and I put this method in the beginning of the program:
public static void splashPage() {
final SplashScreen splash = SplashScreen.getSplashScreen();
if (splash == null) {
JOptionPane.showMessageDialog(null, "");
return;
}
Graphics2D g = splash.createGraphics();
if (g == null) {
System.out.println("g is null");
return;
}
}
How should I do this? Is it allowed to have JOptionPane? If so, how do I make it close down when the program is done loading?
launch4j - Splash Screen can be added by software

Related Links

Gradle + Intellij IDEA 13 bug
How to build Java Web application having servlet v. 2.4 and JSP v 2.0 using Ant?
How to handle Back Button press in android fragments
How do I open a Java project (that uses maven) in Eclipse? (Do I use M2E or maven-eclipse-plugin)
Download jar file instead of pom from a remote repository
Connecting to OrientDB server using Java restful HTTP
How to add generics to my code
Diff just tags of XML with XMLUnit (no text or attributes)
How to perform replaceAll excluding comments in java
android application not connecting to mssql server 2008
How do I print area from a text area in Java?
Action Bar Buttons position
Inject all dependencies automatically in Spring
Getting unexpected results when multiply float with the number
black screen before startup android game
How to enable keep alive on CSS,JS and images>

Categories

HOME
multithreading
keycloak
tizen
google-api-php-client
plot
fft
platform-builder
elm
amazon-ecs
fsm
webpack-2
datastax-java-driver
autotools
append
node-pdfkit
etl
postgres-xl
correlation
google-cloud-spanner
messages
uitypeeditor
pythonanywhere
openedx
firefox-webextensions
scichart
introduction
autoconf
opennlp
selectedindexchanged
bootstrap-material-design
typo3-6.2.x
data-manipulation
siesta-swift
noraui
column-family
grails-3.1
framemaker
commit
subset-sum
accelerate-framework
cloud-code
mapbox-gl
overlap
automake
multilingual
android-browser
opshub
http-live-streaming
arena-simulation
total-commander
thin
zip4j
dandelion
pdfclown
webdriverjs
topbeat
cubes
static-ip-address
mongocsharpdriver
contact-list
nsviewcontroller
captivenetwork
associative-array
historian
prerequisites
thredds
simple-framework
drawbitmap
operation
apache-commons-fileupload
remobjects
kineticjs
pick
jscript.net
file-copying
applescript-objc
code-access-security
document-classification
tld
fluentautomation
valueconverter
doskey
jboss-weld
transcoding
fmod
gridfs
quartz-graphics
datawindow
osql
hgsubversion
nsdatecomponents
psi
celltable
radcombobox
sudzc
routedevent
meego
swing-app-framework
privilege
text-coloring
project-hosting
ubuntu-9.04
commodore
rtml

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App