Help with mouselistener and mousemotionlistener pls..
ok I am trying to make a code that when you open the appletviewer there are 2 boxes to click that says "start"- it will go to a new page, where u can play a game I made...the game is called game.java...then the other box to click is credits where you can see my picture and description about me, my problem is, I don't know how to create a new page? any idea's how to create that?
so it goes like this in short
Open appplet viewer:
MAIN- Shown in the screen in applet viewer:
"Start"
"Credits"
START- Shown in the screen in applet viewer:
(The game I made by using java, its just a simple click box coloring thing..noob style.. :P )
then there is a "Back" Button to return from the MAIN page.
Credits- Shown in the screen in applet viewer:
My picture and description
Then there is a "Back" Button to return from the MAin Page.
I already made my Main, Game, and Credits, I just don't know how to put them together and show it in the applet viewer, I don't even know how to make the back button to return to the main...help pls..so confused...hope you understood my problem and could help me out... :-s
Re: Help with mouselistener and mousemotionlistener pls..
The following tutorial should give you a lot of information
Lesson: Using Swing Components (The Java™ Tutorials > Creating a GUI With JFC/Swing)
I'm not sure what the title has to do with your post - if you want to listen for Button events you should use an ActionListener (see the link)
If you want more specific advice, I'd recommend posting a more specific question, preferably with code (in the form of an SSCCE) with all errors in their entirety.