Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public class MonitoringSystem {
  2. int animals = "Animal";
  3. int habitats = "Habitat";
  4.  
  5. public static void main(String[] a){
  6.  
  7. Object[] options = { "Animals", "Habitats" };
  8.  
  9. int selectedOption = JOptionPane.showOptionDialog(null, "Would you like to view animal activities or monitor habitats?","Warning",JOptionPane.DEFAULT_OPTION,
  10. JOptionPane.QUESTION_MESSAGE,null, options, options[0]);
  11.  
  12.  
  13.  
  14. JOptionPane("Select Animal", int DEFAULT_OPTION, Object[]"Lions","Bears","Giraffes", Object Animals)
  15.  
  16. String[] choices = {"Lions","Bears","Giraffes"};
  17. String input = (String) JOptionPane.showInputDialog(null,"Select Animal:","Zoo Animals",
  18. JOptionPane.QUESTION_MESSAGE,null,choices,choices[1]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement