Results 1 to 2 of 2
  1. #1
    fred is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default How to display an image in JApplet

    I'm trying to write an Applet using Swing.
    What I want to to is some kind of opening Image or animation before me main Applet starts.
    How can I do it?
    any ideas?

  2. #2
    christina is offline Member
    Join Date
    Jul 2007
    Posts
    39
    Rep Power
    0

    Default

    Use javax.swing.Timer to display your image for some set period of time and then begin the Applet.
    setRepeats(false) on your timer so that it only executes once.

Similar Threads

  1. can display image in JFrame?
    By xCLARAx in forum AWT / Swing
    Replies: 14
    Last Post: 04-03-2009, 08:02 PM
  2. How to display image ?
    By Birkoff in forum AWT / Swing
    Replies: 7
    Last Post: 06-09-2008, 08:58 AM
  3. how to display image in jsp page(Struts)
    By rama6262 in forum Advanced Java
    Replies: 1
    Last Post: 12-21-2007, 08:50 AM
  4. How to display a database-image in a page?
    By simon in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 12:56 AM
  5. Simplest way to read and display a jpeg image
    By Hasan in forum New To Java
    Replies: 1
    Last Post: 05-31-2007, 04:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •