biskuteri-cafe-JKomasto2/JKomasto.java

62 lines
912 B
Java
Raw Normal View History

2021-07-16 00:37:03 +02:00
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JComponent;
2021-07-16 00:37:03 +02:00
import java.awt.Dimension;
import java.awt.BorderLayout;
2021-07-16 00:37:03 +02:00
class
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()
{
new TimelineWindow().setVisible(true);
}
// - -%- -
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 {
}