Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MakeEliteAction implements ActionListener {
- public void actionPerformed(ActionEvent e) {
- if(input.getText().isEmpty()) {
- JFrame temp = new JFrame();
- JOptionPane.showMessageDialog(temp, "You need to fill in the CPR field!", "Warning", JOptionPane.WARNING_MESSAGE);
- return;
- } else {
- StartProgram.getDB().addElite(input.getText());
- JFrame temp = new JFrame();
- JOptionPane.showMessageDialog(temp, "Member made Elite successfully!", "Confirmation", JOptionPane.INFORMATION_MESSAGE, new ImageIcon("images/plus_16_elite.gif"));
- input.setText("");
- }
- }
- }
Add Comment
Please, Sign In to add comment