Page 49 - 3-2
P. 49
//static long end_time;
public MDP_Project4() {
//start_time = System.currentTimeMillis();
setBackground(Color.LIGHT_GRAY);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 800, 450);
this.contentPane = new JPanel();
this.contentPane.setBackground(Color.WHITE);
this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
this.contentPane.setLayout(null);
this.BPawn = new ImageIcon("/home/pi/emart-logo.png", "BPawn");
this.emart_logo = new JLabel();
this.emart_logo.setIcon(BPawn);
this.emart_logo.setBounds(668,12,100,28);
this.contentPane.add(emart_logo);
JButton btnReturn =
new JButton("\uCC98\uC74C \uD654\uBA74\uC73C\uB85C");
btnReturn.setFont(new Font("1 훈고딕굴림 R", Font.PLAIN, 15));
btnReturn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
MDP_Project4.this.setVisible(false); //setVisible(false);
MDP_Project.first_frame.setVisible(true);
}
});
btnReturn.setBounds(634, 356, 134, 37);
this.contentPane.add(btnReturn);
this.lb_end = new JLabel("(\u3063 \u00B4 \u25BD\uFF40)\u3063");
this.lb_end.setFont(new Font(" 맑은 고딕", Font.PLAIN, 35));
this.lb_end.setBounds(367, 148, 206, 71);
this.contentPane.add(lb_end);
this.lb_thank = new JLabel("\uC774\uC6A9\uD574\uC8FC\uC154\uC11C
\uAC10\uC0AC\uD569\uB2C8\uB2E4\u2665");
this.lb_thank.setFont(new Font("1 훈고딕굴림 R", Font.PLAIN, 35));
this.lb_thank.setBounds(191, 198, 416, 71);
this.contentPane.add(lb_thank);
JLabel label = new JLabel("\uACB0\uC81C \uC644\uB8CC");
label.setFont(new Font("1 훈고딕굴림 R", Font.PLAIN, 35));
label.setBounds(215, 160, 149, 54);
this.contentPane.add(label);
}
- 49 -