mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2024-11-20 06:24:50 +01:00
cda0891525
Used GridBagLayout for the first time..!
62 lines
947 B
Java
62 lines
947 B
Java
|
|
import javax.swing.JFrame;
|
|
import javax.swing.JPanel;
|
|
import javax.swing.JComponent;
|
|
import java.awt.Dimension;
|
|
import java.awt.BorderLayout;
|
|
|
|
class
|
|
JKomasto {
|
|
|
|
public static void
|
|
main(String... args) { new JKomasto(); }
|
|
|
|
// ---%-@-%---
|
|
|
|
JKomasto()
|
|
{
|
|
new TimelineWindow().setVisible(true);
|
|
new ComposeWindow().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);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class
|
|
Timeline {
|
|
|
|
}
|
|
|
|
|
|
|
|
class
|
|
Post {
|
|
|
|
}
|
|
|
|
|
|
|
|
class
|
|
Composition {
|
|
|
|
}
|