title: I tried to make a gui in java. It didnt show up
body: <p>I am a very novice java coder and I wanted to make a gui to show my mother why I should get a job showing hard facts and numbers by me submitting reasonable numbers with the import scanner option. I wanted to make it as an actuale program instead of opening eclipse to show her. I tried running it and it wont work open. Please tell me what I did wrong. Thank you. Also I do have all the imports but didnt copy and paste to here.</p>
  
  <pre><code>JFrame program;
  JPanel p;
  
  public job()
  {
  
      gui();
  
  }
  
  public void gui()
  {
  
      program = new JFrame("Job");
      program.setVisible(true);
      program.setSize(1000,800);
      program.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
      p = new JPanel();
      p.setBackground(Color.RED);
  
      program.add(p);
  
  
  }
  
  public static void main(String[] args) {
  
      Scanner weeks = new Scanner(System.in);
      System.out.println("How many weeks did you work in the year?");
      int week = weeks.nextInt();
  
      Scanner payhourly = new Scanner(System.in);
      System.out.println("How much does your job pay per hour?");
      double pay = payhourly.nextDouble();
  
      Scanner hoursworkedweekly = new Scanner(System.in);
      System.out.println("How many hours did you work per week on average?");
      int hoursworked = hoursworkedweekly.nextInt();
  
      Scanner bankenter = new Scanner(System.in);
      System.out.println("What is the percent of the money earned going to your bank account?");
      int bank = bankenter.nextInt();
  
      Scanner personalenter = new Scanner(System.in);
      System.out.println("What is the percent of the money earned going to your own personal use?");
      int personal = personalenter.nextInt();
  
      double totalpay = (pay * hoursworked) * week;
      double banktotal = ((double)bank / 100) * totalpay;
      double personalusetotal = ((double)personal / 100) * totalpay;
  
      System.out.println("While working " + week + " weeks");
      System.out.println("");
      System.out.println("You earned a total $" + totalpay);
  
      System.out.println("$"+ banktotal +" will go into your account .");
  
      System.out.println("$"+ personalusetotal + " will go to your own personal use.");
  
  
  
      }
  
  
  
  
  
  }
  </code></pre>