mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2024-11-20 06:14:50 +01:00
36 lines
729 B
Java
36 lines
729 B
Java
|
|
import javax.swing.JFrame;
|
|
import javax.swing.JPanel;
|
|
import java.awt.Dimension;
|
|
import java.awt.GridLayout;
|
|
|
|
class
|
|
JKomasto extends JPanel {
|
|
|
|
public static void
|
|
main(String... args)
|
|
{
|
|
JFrame mainframe = new JFrame("JKomasto");
|
|
mainframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
|
mainframe.setLocationByPlatform(true);
|
|
|
|
JKomasto instance = new JKomasto();
|
|
mainframe.add(instance);
|
|
mainframe.pack();
|
|
|
|
mainframe.setVisible(true);
|
|
new PostWindow().setVisible(true);
|
|
}
|
|
|
|
// ---%-@-%---
|
|
|
|
JKomasto()
|
|
{
|
|
setPreferredSize(new Dimension(360, 270));
|
|
|
|
setLayout(new GridLayout());
|
|
add(new PreviewComponent());
|
|
}
|
|
|
|
}
|