Results 1 to 2 of 2

Thread: Simple Menu

  1. #1
    schvuu is offline Member
    Join Date
    Oct 2013
    Rep Power

    Default Simple Menu

    Hello, So I have this program, where you add an animal to a zoo, you choose what kind of anmial it is (mammal, bird or reptile), give it a name, and if it's a reptile or mammal you say if its dangerous or not.
    what I want to do is create somewhat of a 'menu' for adding animals, I don't want it to be a complex GUI menu, just something simple.
    I'm new to programming, so my code is simple, as for now it's just classes with attributes, like:
    Java Code:
    public class Reptiles {
    	public String name;
    public Reptiles(String reptileName) {
    	name = reptileName;
    public void setName (String newName) {
    	name = newName;
    Something like that, any thoughts?

  2. #2
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Rep Power

    Default Re: Simple Menu

    Take a look at a tutorial on the JAVA Swing API.

Similar Threads

  1. simple menu
    By Gatsu in forum AWT / Swing
    Replies: 3
    Last Post: 12-16-2012, 06:27 PM
  2. problems with simple roll down menu in java
    By Krtek80 in forum New To Java
    Replies: 5
    Last Post: 09-24-2012, 04:44 PM
  3. Creating a simple menu
    By hvince95 in forum New To Java
    Replies: 7
    Last Post: 01-20-2012, 07:07 AM
  4. Need some help with a simple menu.
    By Medabi3 in forum Java 2D
    Replies: 1
    Last Post: 04-04-2011, 05:21 AM
  5. Replies: 3
    Last Post: 08-07-2010, 05:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts