[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Switching between buttons  XML
Forum Index » New to Java
Author Message
Oflick

Newbie

Joined: 07/23/2008 20:08:52
Messages: 2
Offline

Im writing a program which is sort of like a choose your own adventure game. the program gives the player 2 options. They click a button, and then an image comes up to show them where they're at in the "Adventure". Now, I was thinking of doing something that allowed for the image on the screen to change after so many clicks. The problem is, after every click on one button, the option on the other button must change.

What I was thinking, is their a way to code it so it would work sort of like this:

* Click Button (Image shows up)
* Image connected to other button changes

Thats pretty much what I need it to do, I tried just using sub classes, but that didn't work, so I want to try it this way.

Can anyone help? Thanks
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline

It sounds like you're on the right track. Can you show where you're getting stuck in code? It's kinda hard to figure out what help you need with the description you gave.

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
Oflick

Newbie

Joined: 07/23/2008 20:08:52
Messages: 2
Offline

Thanks for showing interest in helping me.

In the time since I posted that messege, however, one of my friends showed me how to do it.

Thanks however, I should have deleted/edited the post when I'd done it but I forgot I'm afraid.
 
Forum Index » New to Java
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle