import javax.swing.*; public class Exam01 extends JFrame { public Exam01() { setTitle("Menu 만들기 예제"); createMenu(); setSize(250,200); setVisible(true); } private void createMenu() { JMenuBar mb = new JMenuBar(); JMenu screenMenu = new JMenu("Screen"); screenMenu.add(new JMenuItem("Load")); screenMenu.add(new JMenuItem("Hide")); screenMenu.add(new JMenuItem("ReShow")); screenMenu.addSeparator(); ..