4 Replies - 653 Views - Last Post: 20 June 2013 - 09:23 PM Rate Topic: -----

#1 batsta13  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 19-June 13

How to create a start screen for a Java game applet?

Posted 19 June 2013 - 11:16 PM

Hi all

I have just finished a a game applet. Now I want to create a start screen that has a background image, and a start game button. When the user clicks the start button I want to clear the start game screen and I want the game background and all other game component to be painted to the screen. Additionally, I want the start game button to be an image that is clickable.

How would i do this? Thanks in advance.
Is This A Good Question/Topic? 0
  • +

Replies To: How to create a start screen for a Java game applet?

#2 Flukeshot  Icon User is offline

  • A little too OCD
  • member icon

Reputation: 416
  • View blog
  • Posts: 1,030
  • Joined: 14-November 12

Re: How to create a start screen for a Java game applet?

Posted 20 June 2013 - 02:23 AM

You just need to program that into your game, if you've managed to code a whole game it shouldn't be that difficult.

Can't really help unless you post your main() method.
Was This Post Helpful? 0
  • +
  • -

#3 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2717
  • View blog
  • Posts: 11,427
  • Joined: 20-September 08

Re: How to create a start screen for a Java game applet?

Posted 20 June 2013 - 02:39 AM

http://docs.oracle.c...ayout/card.html
Was This Post Helpful? 0
  • +
  • -

#4 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: How to create a start screen for a Java game applet?

Posted 20 June 2013 - 07:48 PM

View PostFlukeshot, on 20 June 2013 - 05:23 AM, said:

You just need to program that into your game, if you've managed to code a whole game it shouldn't be that difficult.

Can't really help unless you post your main() method.

Will be difficult... Applet do not have a main() method :)

This post has been edited by pbl: 20 June 2013 - 07:49 PM

Was This Post Helpful? 1
  • +
  • -

#5 Flukeshot  Icon User is offline

  • A little too OCD
  • member icon

Reputation: 416
  • View blog
  • Posts: 1,030
  • Joined: 14-November 12

Re: How to create a start screen for a Java game applet?

Posted 20 June 2013 - 09:23 PM

Oops, of course. What I mean by that is I need to see how the GUI is initiated.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1