• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display GIF file in JAVA application.

 
Victor Manske
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to display a *.gif or *.jpg file in a java applet. But how do you display a *.gif or *.jpg file in a java application? Would I have to call a *.html to display a *.gif file in my "About" option dialog window in my java application? Remeber, there is a difference between a java application and a java applet.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Swing / JFC / AWT forum...
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch Victor!
Please take a look at How to use Icons in the Java Tutorial.
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can check out my Splash screen class for some example code:
http://filenabber.com/free-java-classes/
Brian
 
Karl Nilsson
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's not too complicated, it's almost like using a sound file
here's an example:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic