Page 48 - 3-2
P. 48
\uD0DC\uADF8\uD574\uC8FC\uC138\uC694:)");
lblNfc.setFont(new Font("1 훈고딕굴림 R", Font.PLAIN, 33));
lblNfc.setBounds(112, 322, 556, 71);
contentPane.add(lblNfc);
this.Button2.setShutdownOptions(Boolean.valueOf(true));this.Button2.addListener(new
GpioPinListener[] { new GpioPinListenerDigital()
{
public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event)
{
MDP_Project3.this.setVisible(false);
mdp_Project4.setVisible(true);
}
} });
}
}
******************************MDP_Project4****************************
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.*;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.event.ActionListener;
import java.sql.Date;
import java.awt.event.ActionEvent;
import java.util.Calendar;
import java.util.Timer;
import java.util.TimerTask;
public class MDP_Project4 extends JFrame {
private JPanel contentPane;
ImageIcon BPawn;
JLabel emart_logo ;
private JLabel lb_end;
private JLabel lb_thank;
//static long start_time;
- 48 -