biskuteri-cafe-JKomasto2/JKomasto.java
2021-07-15 18:37:03 -04:00

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());
}
}