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

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