title: If Statements based on selection from dropdown
body: <p>I have read through all of the other articles and I am not finding my answers. </p>
  
  <p>I start out with a JOptionPane with object options.  When the user selects either animals or habitat another drop down will appears with selections.  Right now I am working on getting another pop up with information to open when Lions is selected.  But I can't get it to work. </p>
  
  <p>Also I viewed someone else's input to have the ability for these drop downs to appear.  But they are using JFrame so another window for java opens up outside of NetBeans.  </p>
  
  <p>What I am trying to do right now is enter if statements for selections from dropdown but I don't think it is working correctly.  When I run the code and select animals and choose Tigers the window for Lions will pop up and when I say okay the Tigers box pops up.  I also need to figure out how to enter a warning statement in some of the selections from dropdown.  For health concerns for each animal.  I thought about adding a button for additional information but I want to be able to have it automatically pop up.  I'm still reading through the API documentation but I just want a simple message dialog to display the information.</p>
  
  <pre><code>   public class MonitoringSystem {
  
     public static void main(String[] args){
  
  
  
  
  ImageIcon icon = new ImageIcon(img.class.getResource("zoo.png"));
      String[] options = {"Animals", "Habitat", "Exit"};
      int x = JOptionPane.showOptionDialog(null, "Zookeepers would you like     to view animal activities or monitor habitats?",
              "Welcome to the Brooklyn Zoo!",     JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, icon, options,     options[0]);
  System.out.println(x);  
  
  
  JFrame animal = new JFrame("Animals");  
  
  
  JFrame habitat = new JFrame("Habitats"); 
  
  if(x==0){  
  animal.setVisible(true); 
  String[] choices = {"Lions","Tigers","Bears","Giraffes",};
  String input = (String) JOptionPane.showInputDialog(null,"Select Animal:","Zoo     Animals",
  JOptionPane.QUESTION_MESSAGE,null,choices,choices[1]);
  
  
  
  
  if ("Lions".equals(choices));
  JOptionPane.showMessageDialog(null, "Animal: Lion\nName: Leo\nAge: 5    \nFeeding Schedule: Twice daily");
  {
  
  }
  if("Tigers".equals(choices));
  JOptionPane.showMessageDialog(null, "Animal: Tiger\nName: Maj\nAge: 15    \nFeeding Schedule: 3x daily");
  </code></pre>