Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *Nama Program Javaapps.java
- *Nama File Radio Jtainment
- *Program Untuk Membuat Radio
- *Memanggil Menu Utama
- *@Author : badwolves1986
- *thanks to : r3c0gniz3d your my inspirate , all my friend , and your my love
- *System Radio Jtainment
- *version 1.00
- */
- import.java.awt.*;
- import.java.swing.*;
- import.java.awt.event.*;
- import.javax.swing.border.LineBorder;
- public class Javaapps extends JWindow {
- private Dimension dimensi1 =
- Toolkit.getDefaultToolkit().getScreenSize();
- private JLabel labellogo1 = New JLabel(new ImagesIcon
- ("bad.jpg"));
- private JProgressBar baris progres = new JProgressBar();
- private int time1 = 0
- private Timer Timer1;
- public Javaapps ()
- {
- Color Warna = Color.Black;
- barisProgres1.setValue(17);
- barisProgres1.setPreerredSize(new Dimension(100,15));
- barisprogres1.setBackground(Color.Red);
- barisprogres1.setForeground(Color.Green);
- barisprogres1.setStringPainted(true);
- barisprogres1.setBorder(new LineBorder (Warna, 1));
- labelLogo1.setBorder(new LineBorder (warna, 1));
- getContentPane().add(labelLogo1,BorderLayout,NORTH);
- getContentpane().add(barisprogres1,BorderLayout,CENTER);
- Timer1=new Timer(50 ,new ActionListener
- {
- public void actionPerformed(ActionEvent evt)
- {
- time1++;
- barisProgres1.setValue(time1);
- if(barisProgres1.getPercentComplete()==1.0)
- {
- Timer1.Stop();
- setVisible(false);
- /*Menu_Utama();*/
- }
- }
- });
- timer1.Start();
- pack();
- setLocation(dimensi1.width /2 - getWidth() /2,
- Dimensi1.Heigth / 2 - getHeigth() / 2);
- show();
- }
- public static void main (String args[]) {
- new Javaapps ();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement