2022-10-06 14:58:27 +02:00
|
|
|
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);
|
2022-10-14 17:25:23 +02:00
|
|
|
FunPanel p = new FunPanel();
|
|
|
|
frame.add(p, BorderLayout.CENTER);
|
2022-10-06 14:58:27 +02:00
|
|
|
|
|
|
|
frame.setVisible(true);
|
2022-10-14 17:25:23 +02:00
|
|
|
|
|
|
|
while (true) {
|
|
|
|
FunPanel.table += 0.001d;
|
|
|
|
|
|
|
|
p.repaint();
|
|
|
|
try {
|
|
|
|
Thread.sleep(16L);
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2022-10-06 14:58:27 +02:00
|
|
|
}
|
|
|
|
}
|