mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2024-11-20 05:24:50 +01:00
41 lines
723 B
Java
41 lines
723 B
Java
|
|
||
|
import javax.swing.JFrame;
|
||
|
import javax.swing.JMenuBar;
|
||
|
import javax.swing.JMenu;
|
||
|
import java.awt.Dimension;
|
||
|
|
||
|
class
|
||
|
PostWindow extends JFrame {
|
||
|
|
||
|
private PostComponent
|
||
|
posts;
|
||
|
|
||
|
private RepliesComponent
|
||
|
replies;
|
||
|
|
||
|
// ---%-@-%---
|
||
|
|
||
|
// ---%-@-%---
|
||
|
|
||
|
PostWindow()
|
||
|
{
|
||
|
setLocationByPlatform(true);
|
||
|
|
||
|
posts = new PostComponent();
|
||
|
|
||
|
replies = new RepliesComponent();
|
||
|
|
||
|
JMenu postMenu = new JMenu("Post");
|
||
|
postMenu.add("Favourite");
|
||
|
postMenu.add("Reply");
|
||
|
postMenu.add("Show replies");
|
||
|
JMenuBar menuBar = new JMenuBar();
|
||
|
menuBar.add(postMenu);
|
||
|
setJMenuBar(menuBar);
|
||
|
|
||
|
setContentPane(posts);
|
||
|
setSize(360, 270);
|
||
|
}
|
||
|
|
||
|
}
|