Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RTG = new JFrame();
- RTG.setTitle("Revision Timetable Generator 1.0");
- RTG.setBounds(100, 100, 450, 300);
- RTG.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- RTG.getContentPane().setLayout(null);
- Dimension size = RTG.getSize();
- JOptionPane.showMessageDialog(null, size);
- // RTG.setSize(550, 300);
- exit.setVisible(true);
- Submit.setVisible(false);
- timeLabel = new JLabel("Clock");
- timeLabel.setBounds(363, 0, 71, 19);
- RTG.getContentPane().add(timeLabel);
- exit.setVisible(true);
- Submit.setVisible(false);
- Title = new JLabel("Welcome to the Revision Timetable Generator");
- Title.setFont(new Font("MS UI Gothic", Font.BOLD, 15));
- Title.setBounds(32, 3, 325, 13);
- RTG.getContentPane().add(Title);
- create = new JButton("Create New Timetable");
- create.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- int reply = JOptionPane.showConfirmDialog(null, "Do you wish to create a new timetable ?");
- if (reply==JOptionPane.YES_OPTION) {
- CREATE();
- }
- }
- });
- create.setBounds(12, 41, 198, 133);
- RTG.getContentPane().add(create);
- load = new JButton("Load timetable");
- load.setVisible(true);
- load.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- int reply = JOptionPane.showConfirmDialog(null, "Do you wish to load a timetable?");
- if (reply==JOptionPane.YES_OPTION) {
- LOAD();
- }
- }
- });
- load.setBounds(222, 41, 198, 133);
- RTG.getContentPane().add(load);
- exit = new JButton("Exit");
- exit.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- int reply = JOptionPane.showConfirmDialog(null, "Do you really wish to exit ?");
- if (reply==JOptionPane.YES_OPTION) {
- System.exit(0);
- }
- }
- });
- exit.setBounds(166, 179, 99, 65);
- RTG.getContentPane().add(exit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement