2021-07-16 00:37:03 +02:00
|
|
|
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
import javax.swing.JPanel;
|
2021-07-16 01:07:23 +02:00
|
|
|
import javax.swing.JComponent;
|
2021-07-16 00:37:03 +02:00
|
|
|
import java.awt.Dimension;
|
2021-07-16 01:07:23 +02:00
|
|
|
import java.awt.BorderLayout;
|
2021-07-16 00:37:03 +02:00
|
|
|
|
|
|
|
class
|
2021-07-16 01:07:23 +02:00
|
|
|
JKomasto {
|
|
|
|
|
2021-07-16 00:37:03 +02:00
|
|
|
public static void
|
2021-07-16 11:46:17 +02:00
|
|
|
main(String... args) { new JKomasto(); }
|
2021-07-16 00:37:03 +02:00
|
|
|
|
|
|
|
// ---%-@-%---
|
|
|
|
|
2021-07-17 11:37:00 +02:00
|
|
|
public
|
2021-07-16 00:37:03 +02:00
|
|
|
JKomasto()
|
|
|
|
{
|
2021-07-17 11:06:50 +02:00
|
|
|
new TimelineWindow().setVisible(true);
|
2021-07-16 01:07:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// - -%- -
|
|
|
|
|
|
|
|
private static void
|
|
|
|
test(JComponent component, int width, int height)
|
|
|
|
{
|
|
|
|
JFrame frame = new JFrame();
|
|
|
|
frame.setTitle(component.getClass().getName());
|
|
|
|
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
|
|
|
frame.setLocationByPlatform(true);
|
|
|
|
|
|
|
|
JPanel panel = new JPanel();
|
|
|
|
panel.setPreferredSize(new Dimension(width, height));
|
|
|
|
panel.add(component);
|
|
|
|
frame.setContentPane(panel);
|
|
|
|
|
|
|
|
frame.setVisible(true);
|
2021-07-16 00:37:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2021-07-16 11:46:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class
|
|
|
|
Timeline {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class
|
|
|
|
Post {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class
|
|
|
|
Composition {
|
|
|
|
|
|
|
|
}
|