Advertisement
badwolves1986

Jtainment Radio Java

Sep 12th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.62 KB | None | 0 0
  1. /**
  2.  *Nama Program Javaapps.java
  3.  *Nama File Radio Jtainment
  4.  *Program Untuk Membuat Radio
  5.  *Memanggil Menu Utama
  6.  *@Author : badwolves1986
  7.  *thanks to : r3c0gniz3d your my inspirate , all my friend , and your my love
  8.  *System Radio Jtainment
  9.  *version 1.00
  10.  */
  11.  
  12. import.java.awt.*;
  13. import.java.swing.*;
  14. import.java.awt.event.*;
  15. import.javax.swing.border.LineBorder;
  16.  
  17. public class Javaapps extends JWindow {
  18.     private Dimension dimensi1 =
  19. Toolkit.getDefaultToolkit().getScreenSize();
  20.     private JLabel labellogo1 = New JLabel(new ImagesIcon
  21.     ("bad.jpg"));
  22.     private JProgressBar baris progres = new JProgressBar();
  23.     private int time1 = 0
  24.     private Timer Timer1;
  25.    
  26.     public Javaapps ()
  27.     {
  28.     Color Warna = Color.Black;
  29.     barisProgres1.setValue(17);
  30.     barisProgres1.setPreerredSize(new Dimension(100,15));
  31.     barisprogres1.setBackground(Color.Red);
  32.     barisprogres1.setForeground(Color.Green);
  33.     barisprogres1.setStringPainted(true);
  34.     barisprogres1.setBorder(new LineBorder (Warna, 1));
  35.     labelLogo1.setBorder(new LineBorder (warna, 1));
  36.     getContentPane().add(labelLogo1,BorderLayout,NORTH);
  37.     getContentpane().add(barisprogres1,BorderLayout,CENTER);
  38.      Timer1=new Timer(50 ,new ActionListener
  39.      {
  40.      public void actionPerformed(ActionEvent evt)
  41.         {
  42.         time1++;
  43.         barisProgres1.setValue(time1);
  44.         if(barisProgres1.getPercentComplete()==1.0)
  45.         {
  46.             Timer1.Stop();
  47.             setVisible(false);
  48.             /*Menu_Utama();*/
  49.         }
  50.      }
  51.     });
  52.     timer1.Start();
  53.     pack();
  54.     setLocation(dimensi1.width /2 - getWidth() /2,
  55. Dimensi1.Heigth / 2 - getHeigth() / 2);
  56.     show();
  57.     }
  58.    
  59.     public static void main (String args[]) {
  60.      new Javaapps ();
  61.      }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement