How to display several several gif as splash screen continuously?

like title said, I want to display several gif files as splash screen so that it looks like animation, how to do that? the splash.java that I uses can only display one picture. what I would like to see is something that display several pictures in the same location on screen, one disappear after another show up without gap in between so that the user won't realize that it's several picture together.
just ignore the PV, I use splash to start my main.
class Splash extends JWindow {
     public Splash(String filename, Frame f, int waitTime) {
          super(f);
          JLabel l = new JLabel(new ImageIcon(filename));
          getContentPane().add(l, BorderLayout.CENTER);
          pack();
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          Dimension labelSize = l.getPreferredSize();
          setLocation(screenSize.width / 2 - (labelSize.width / 2), screenSize.height / 2 - (labelSize.height / 2));
          addMouseListener(new MouseAdapter() {
               public void mousePressed(MouseEvent e) {
                    setVisible(false);
                    dispose();
                    PictureViewer PV = new PictureViewer();
          final int pause = waitTime;
          final Runnable closerRunner = new Runnable() {
               public void run() {
                    setVisible(false);
                    dispose();
                    PictureViewer PV = new PictureViewer();
          Runnable waitRunner = new Runnable() {
               public void run() {
                    try {
                         Thread.sleep(pause);
                         SwingUtilities.invokeAndWait(closerRunner);
                    } catch (Exception e) {
                         e.printStackTrace();
                         // can catch InvocationTargetException
                         // can catch InterruptedException
          setVisible(true);
          Thread splashThread = new Thread(waitRunner, "SplashThread");
          splashThread.start();

Here is something like you want I thanks? you just have to add it to your splash screen.it is useing a jframe here
import javax.swing.*;
import java.awt.*;
import java.util.*;
public class ball extends JFrame implements Runnable{
  Image a,b,c,d,e,f,gg,pics;
  boolean go = true;
  int i,j = 0;
  Thread runner;
  Toolkit kit;
public ball() {
   super();
   setSize(400,400);
   setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   runner = new Thread(this);
   kit = Toolkit.getDefaultToolkit();
    a = kit.getImage("pic1.gif");
    b = kit.getImage("pic2.gif");
    c = kit.getImage("pic3.gif");
    d = kit.getImage("pic4.gif");
    e = kit.getImage("pic5.gif");
    f = kit.getImage("pic6.gif");
    gg = kit.getImage("pic7.gif");
   runner.start();
   setVisible(true);
  public void run() {
   Thread thisthread = Thread.currentThread();
    while(runner == thisthread) {
     repaint();
     try {
     i++;
     j++;
     if(i > 7){ i = 0;}
      if(i == 0){pics = a;  }
      if(i == 1){pics = b;  }
      if(i == 2){pics = c;  }
      if(i == 3){pics = d;  }
      if(i == 4){pics = e;  }
      if(i == 5){pics = f;  }
      if(i == 6){pics = gg;  }
      if(j > 100){ runner = null;}
     Thread.sleep(50);}
     catch(InterruptedException in) {}
  public void paint(Graphics g) {
   g.drawImage(pics,50,50,100,100,this);
public static  void main(String[] args) {
    ball be = new ball();
}good luck

Similar Messages

  • How To Display An Animated GIF In FORMS

    Hello;
    I want to display an animated Gif(Moving) in forms ver 6 and donot want to use timers.
    Thanks in advance.
    Shahzad.

    Hellow,
    You May Try using OCXs .. like this: http://www.jcomsoft.com/
    Hope This Helps
    Regards
    Tariq

  • How to display the time & battery % in home screen

    How to display the time & battery % in home screen

    Try resetting your device.
    Hold down the Home and Sleep/Power Buttons until the Apple Logo shows up.
    Ignore the red slider if it appears.
    This will reboot the phone, no data should be lost.

  • How to display array values in jsp of screen flows

    Hi,
    can u please help me .
    I am having one array variable i have stored all the values but i have to display that in JSP page .how to display
    Edited by: user12171025 on Nov 4, 2009 11:11 PM

    Hi,
    I think that its necessaries to use AJaX.
    I am implemeting something like that.
    I have a input text that works like a filter and depends on what my user types in input text I populate my table with some information.
    In order to do that, I put in my JSP a div with an Id and I used ajax, like that:
    function ajaxFunction()
              var xmlhttp;
              if (window.XMLHttpRequest)
              xmlhttp=new XMLHttpRequest();
              else if (window.ActiveXObject)
              // code for IE6, IE5
              xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              else
              alert("Your browser does not support XMLHTTP!");
              xmlhttp.onreadystatechange=function()
                                                      if( xmlhttp.readyState==4 )
                                                           document.getElementById("tabelaResponsaveis").innerHTML = xmlhttp.responseText;
         var resp = "<f:invokeUrl var='solicitacao' methodName='getResponsaveis'/>";
         xmlhttp.open("POST",resp,true);
         xmlhttp.send(null);
    getResponsaveis is a method inside my BPM that returns a HTML code (the table HTML code with all the information that I need to show.
    I Hope to help
    Thanks Marcos

  • How to display weicome message in sap logon screen?

    Hello experts,
       how to  display message " welcome to company name" in the sap logon screen.
    while typing userid and password in the same screen (right hand side ) , i want to display welcome message.
    Pls give me the procedure.
    Moderator message: easy to find via google, system administration, not related to ABAP development, please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 11, 2010 11:44 AM

    If you want to give an error message on some processing you can raise the message in the event at selection-screen.
    If you want to display information message also ,the same can be done in at selection screen
    In case you want to do the processing selectively like only when the execute button is pressed, then you can do the processing based on SY-UCOMM. (value will be 'ONLI' )

  • How to display List and Image on Single Screen?

    Hi Friends,
    I wanna display Image and List on single screen.
    Its not possible using Form which will contain both. either I can list or form which contain image as far I know.
    I have seen one J2ME application which contain Image and below that there is list. Can anybody tell me how?
    Thanks,
    Rohan Chandane

    Hi,
    Are you able to put a list and image into a form.
    If so plz let me know the method to do tht.
    thanks.

  • How to display a specific tab in a screen after a popup message

    Hi all,
            I've a rewuirement where in i need to display a secific tab in a screen after popping up a warning message. To be specific, when i choose 'Yes' in the popup window, it shoud take me to a tab which is not active while displaying the warning popup.
    Thanks in advance....
    Anil Kumar Japa

    Hi
    U need to active the tab you want to show:
    So you should set the ok_code (of the tab) value to field ACTIVETAB
    <TABSTRIP>-activetab = <OK_CODE>.
    And transfer the value of subscreen number to the subscreen area:
    CALL SUBSCREEN SUBSCREEN1
                 INCLUDING G_CTRL_TABSTRIP-PROG             
                           G_CTRL_TABSTRIP-SUBSCREEN.
    Max

  • How to display several axis systems in one sheet

    Hi all,
    I want to use diadem script to display 4 axis systems in one sheet (top left, top right, bottom left and bottom right). Each system contains one curve. I have no idea which script command should I use. Would you like to give me some hints? Do I need to use the variable like "D2AxisLeft" ?
    Thanks in advance
    Kind regards
    Zhiyao

    Hi Zhiyao,
    I would recommend that you manually place 4 axis systems onto your REPORT sheet, in the orientation you prefer, then save this configuration as a *.TDR file, then programmatically load that *.TDR file with the PicLoad() command, followed with the PicUpdate() command.  Ideally you would also configure each of the axis systems with one curve on them that pulls data from the correct group/channel names in the Data Portal, so that loading the *.TDR file will give you exactly the report you want with just those 2 script commands.
    Please specify if you need to accomplish more than this programmatically,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to Display PO Release Strategy in Enjoy Screen

    Dear all,
    I have a PO with a release strategy, which contain several release codes to release the PO (i.e. M1 & V1).
    However, I am only able to display the release code (i.e. M1 & V1) in t-code ME23. I could not do the same in the enjoy screen t-code ME23N for the same PO number.
    In the item level, there should be a tab with release strategy to display the PO release strategy (similar to PR), but it is not appearing.
    Could anyone tell me what is the problem here? I just could not find the tab or menu to view the release strategy of a PO in the enjoy screen. Similar goes to other PO. I could not view it as well. But in the old screen, I could view it.
    Thanks a lot.

    Thanks 4 the reply Rahul.
    I understand that it is only possible to release at header level. What my problem is that I am unable to view the release strategy (which code to release and who to release) for the PO in enjoy screen.
    In my earlier thread replying to Ankur, I am simply describing that I could just select a line item, click on the release strategy button and the release strategy is displayed. A different line item with different value generated a different release strategy of course. Different amount require different set of release strategies, usually more level of approvals.
    So, actually this question is not about where or how I can release a PO, but actually I could not view who is releasing for a PO in ME23N.
    I even simulate it in the development server and still the same thing happen. Is it the same for everyone else? If yes, how to view who is releasing the PO in ME23N? Version of system is 4.7.
    Thanks and appreciate if anyone could help.

  • How to display the transport button in the screen of stms

    Hi expert,
                  I can not see the transport button in my PRD system, but I can see it in my QAS system.
          PRD System:
    QAS System:
    How can I adjust to display the transport button in my PRD system. Thanks a lot,

    Hi ,
    Select all transport request in the STMS and assign to the target client.
    Rg,
    Karthik

  • How to display the portal iView in Favorites screen without content role

    Hi,
          I created some T-iView containing some Z-report. Now my requirement is without giving any portal role how it will display in portal favorite  screen(left side of the portal main screen) so user can directly see the preview of the iview containing customize report?
    Thanks,
    Kundan
    Edited by: Kundan Babu1 on Sep 8, 2009 1:04 PM
    Edited by: Kundan Babu1 on Sep 8, 2009 1:06 PM

    1) first check your portal desktop which frame work it is using.
    By default we use default framework page.
    It can be found in the path   Content admin->portal content.   in pcd content navigate to  content provided by SAP-> end user content
    There you can find the default framework page
    open that and check the desktop inner page and click open
    remove the portal favorites iviews and put your own iview there.
    My suggestion is make a copy of your default framework page and customize it and use this framework page in the portal desktop
    Search for customizing the default framework page and desktop in SDN. you will get lot of links
    Here is the help link to know more on default framework page
    http://help.sap.com/saphelp_nw04s/helpdata/en/b4/771158e4cb4bf6af9974380948db86/frameset.htm
    Raghu
    Edited by: Raghavendranath Garlapati on Sep 8, 2009 2:29 PM

  • How to display 2 PNP image in one screen

    Hi,
    I want to divide the screen of 7970 to 2 parts, one to display PNP picture1, and another to display PNP picture2.
    How can I do? or IP Phone can not support this kind of operation.
    Thanks.
    Yours.
    Hankers

    The phone can only display one image in it's display area at a time. However, you can programmatically combine two images into one and send the one to the phone. In Java this is a relatively simple thing to do. In fact, I did it with my screen saver (idle timeout) app that displays weather info as a single image. It gets an icon and other text info and creates a single image, assembled from the icon and the text, and sends it to the phone. Are you a Java coder?

  • How to Display my Form in the selection screen.(without print format)

    Hi all,
    I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as  a display by giving one Z-code.
    i.e, we can view the form thru Print preview...the same preview, i want to display after i give my parameter in the selection screen.
    For example.ZGPOUT if i enter as a t-code.
    it should ask my Gate Pass number in the Selection screen...if its right then my Form will come out to the display screen. (instead of going by Print method).,
    Pls post ur comment and reply me with examples,if possible.
    thanks & regards
    sankar.

    Hi Prasad,
    Pls refer the below link.
    << Moderator message - Point begging removed >>
    http://wiki.sdn.sap.com/wiki/display/Snippets/Displayimagesontheselection-screen
    Thanks
    Arjun
    Edited by: Rob Burbank on Aug 17, 2011 2:24 PM

  • How to display  a calendar on an GUI screen

    Hi,
    I need to dispaly a calendar on GUI screen, for instance if you go to www.hotwire.com, you can see a "Depart Date" field next to this filed there is a small box, click on that you will get calendar. In my screen I had a start date field I need to get the same on my screen too.
    Could anybody had script(Javascript) to display a calendar like that. Please forward to me if anybody had.
    Thanks to All.
    Art

    I use JCalendar for my applications. It's easy to implement and it looks great.
    http://www.toedter.com/en/jcalendar/

  • How to display user define value in list screen from detail screen

    Hello Experts
    I am working on task in which i have to display the user define value on list screen. like i have one list list screen which have one button for add..once i click on add which navigate to detail screen and detail screen has two fields one for ID AND other for name and detail screen has one button for save once i put value for id and name and click on save button which will navigate to previous list screen and those values which should be display on list screen.
    Regards:
    Sumit

    Hi Sumit,
    To navigate to the Master page on button click , you need some thing like,
    oSplitApp.toMaster("masterpage_id");
    to understand the navigation for Master/Detail page , have a look at,
    http://help.sap.com/saphelp_uiaddon10/helpdata/en/df/adb6b7247e4826b0fcde472b029840/content.htm
    Also to pass value from Detail page to Master page, you can use a Global variable to store your values on click of the Save button. For eg. You may have a global JS file which both Master and Detail page can access like App.Js, Application.JS etc.
    After navigating to the Master page, you can read the Global variables and show it on your Master page.

Maybe you are looking for

  • Shortening 'if' statement in Java.

    Hey guys. I'm pretty new to Java and up until now I've never had a problem using if statements. I understand the case statement (switch statement) is available in Java, but this usually involves the input to be a number IIRC. That being said, I've go

  • FireWire External Drive - Read Only Filesystem

    I have a strange issue that I have not been able to resolve.  I have an external hard drive connected to my iMac that has a read only file system.  I have used it for years without issue.  It switched to read only just recently. Here are the details:

  • Apps not working when selected in App folder on Dock

    The application folder on Dock opens but when I select an app by clicking on it, the app doesn't open/run. What can I do so that the apps run when selected in dock? Thanks for your help. Vernon

  • Pls answer my queries

    hi, iam sujatha reddy.i attended cts interview.they asked this questions.if any body knows pls answer.it will be help ful for me.and pls share with me about the critical issues that u faced in ur project. my mail id [email protected] 1) How can you k

  • Cisco UCS Manager not discovering C240 server

    Hello, Cisco community! Currenlty UCS manager shows two Fabric Interconnects, and two Fabric Extenders, but for some reason my server isn't showing up Here is the birds eye view: I have my C240 connected with two 10GbE twinax cables, each going to on