import java.awt.BorderLayout; import javax.swing.JFrame; /** * Fun */ public class Fun { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLocation(100, 100); frame.setSize(700, 700); FunPanel p = new FunPanel(); frame.add(p, BorderLayout.CENTER); frame.setVisible(true); while (true) { FunPanel.table += 0.001d; p.repaint(); try { Thread.sleep(16L); } catch (Exception e) { } } } }