Results 1 to 5 of 5

Thread: Splash

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432

    Splash

    Hey all im trying to make a splash screen for my Applecation but to no luck the the form show Fine if i dont use the Progressbar but i need it can some one help me ? or give me some code that works better ?

    Code:
         public void Splash()
         {
          Lemo mySplash = new Lemo();
          Dimension max = new Dimension(500,20);
          mySplash.frmSplash.setResizable(false);
          //Label with Images in it 
          mySplash.frmSplash.add("Center",lblSplash);
          mySplash.frmSplash.add("South",prbLoad);
          prbLoad.setValue(0);
          prbLoad.setStringPainted(true);
          prbLoad.setSize(max);
          prbLoad.setMaximumSize(max);
          mySplash.frmSplash.setSize(500,370);
          frmSplash.pack();
          //frmSplash.setVisible(true);
          mySplash.frmSplash.show();
          Progress();
         }
         public void Progress()
         {
          WAITE = new Thread();
          try
          {
            while(Num < 2000)
            {
              WAITE.sleep(1000);
              Num = Num + 50;
              prbLoad.setValue(Num);
            }
          }
          catch(InterruptedException e)
          {
          }
         }

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    This Java Forum sucks takes forever to get a reply!!!

  3. #3
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    post the entire class if you want help...

  4. #4
    Ya ya Baby!!!Me is Back
    Join Date
    Jul 2002
    Posts
    362
    and usually you need a the run() methode with Thread...

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    Ok

    I copyed the Progress bar example from my Book anyone have a better way to do it or wanna help me out with some alrdy dune code would be a BIG Help

Posting Permissions

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



Click Here to Expand Forum to Full Width