Results 1 to 4 of 4
  1. #1
    adjit is offline Senior Member
    Join Date
    Mar 2011
    Posts
    171
    Rep Power
    0

    Default Help with a game using GUI's

    Hi all!

    I am trying to create a simple game, but that's not what I need help with. Here is what I want to create...
    A start menu that looks something like thisHelp with a game using GUI's-act-2.jpg

    Then have it so I can press those buttons and go to their respected areas... any help with this would be greatly appreciated.
    Or suggestions on a more simpler language to do it in...

  2. #2
    adjit is offline Senior Member
    Join Date
    Mar 2011
    Posts
    171
    Rep Power
    0

    Default Re: Help with a game using GUI's

    any help... please

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default Re: Help with a game using GUI's

    Read about ActionListeners; their actionPerformed( ... ) method is called when a JButton is pressed. Do whatever you want in that method.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    adjit is offline Senior Member
    Join Date
    Mar 2011
    Posts
    171
    Rep Power
    0

    Default Re: Help with a game using GUI's

    I've used action listeners, but how to incorporate it using that template above?

Similar Threads

  1. Replies: 1
    Last Post: 06-02-2011, 09:29 AM
  2. first game...
    By lricci in forum Java Gaming
    Replies: 6
    Last Post: 12-18-2010, 03:34 AM
  3. Replies: 2
    Last Post: 08-05-2010, 04:49 AM
  4. game code for any game
    By deathnote202 in forum Java Gaming
    Replies: 4
    Last Post: 06-10-2010, 08:06 AM
  5. 2D strategy game or 2D war game
    By led1433 in forum Java 2D
    Replies: 5
    Last Post: 02-10-2009, 06:00 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
  •