import javax.swing.*;
/*
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Main extends JFrame {
static int num=0;
Container c = getContentPane();
JPanel nort = new JPanel();
JPanel cent = new JPanel();
Font game = new Font("Gotham",Font.PLAIN,27);
int o = (int) (Math.random() * 15)+1; // 기회 1~15
static int ans = (int) (Math.random() *600)+1; //정답 1-999
JLabel re = new JLabel("[System]");
JTextField g = new JTextField("", 20);
JLabel la = new JLabel();
JLabel op = new JLabel("[System] Health: " + o); //기회출력
ImageIcon god = new ImageIcon("good.jpg");
ImageIcon bad = new ImageIcon("bad.jpg");
JLabel anso = new JLabel(god);
JLabel ansb = new JLabel(bad);
JLabel end = new JLabel("[Juldejeoak System] : Game Over!!!!!!!");
public Main() {
setSize(1000, 890);
setVisible(true);
setTitle("너오징어 게임 1");
op.setFont(game);
la.setFont(game);
System.out.println(ans);
setLayout(new BorderLayout());
c.add(BorderLayout.NORTH,nort);
nort.add(la);
nort.add(g);
nort.add(op);
c.add(BorderLayout.CENTER,cent);
cent.setLayout(null);
g.addKeyListener(new hikey());
g.setFocusable(true);
g.requestFocus();
}
class hikey extends KeyAdapter {
public void keyPressed(KeyEvent e) {
if(e.getKeyCode()!=10||o==0) return ;
o--;
op.setText("[System] Health: " + o);
int n = Integer.parseInt(g.getText());
g.setText("");
if(o == 0)
c.add(ansb);
else if (n > ans)
la.setText("[System] : DOWN");
else if (n < ans)
la.setText("[System] : UP");
else if (n == ans) {
la.setText("[System] : ANS!");
cent.removeAll();
anso.setSize(700, 700);
anso.setLocation(350, 50);
cent.add(anso);
cent.repaint();
o=0;
return ;
}
num++;
JLabel wh = new JLabel("[System] Input : "+ n + " U/D/A : "+ la.getText());
wh.setSize(500, 100);
wh.setLocation(350,20+num*50);
cent.add(wh);
cent.repaint();
if(o == 0) {
//기회 안에 맞추지 못했을때
cent.removeAll();
end.setSize(700, 700);
end.setLocation(350, 20);
cent.add(end);
ansb.setSize(700, 700);
ansb.setLocation(350, 50);
cent.add(ansb);
cent.repaint();
}
}
}
public static void main(String[] args) {
new Main();
}
}
*/
public class Main extends JFrame {
public Main() {
setTitle("14@1");
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();
screenMenu.add(new JMenuItem("Exit"));
mb.add(screenMenu);
mb.add(new JMenu("Edit"));
mb.add(new JMenu("Sourse"));
mb.add(new JMenu("Project"));
mb.add(new JMenu("Run"));
setJMenuBar(mb);
}
public static void main(String[] args) {
new Main();
}
}



