Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int dialogButton = JOptionPane.YES_OPTION;
- int dialogResult = JOptionPane.showConfirmDialog (null, "Did he/she work overtime",dialogButton);
- if(dialogResult == JOptionPane.YES_OPTION)
- {
- int oTime = Integer.parseInt(JOptionPane.showInputDialog("How many hours did he/she work overtime?"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement