Click to See Complete Forum and Search --> : Choice Menus & Associated Actions
KingCobra220
05-19-2006, 09:13 PM
I was wondering if you guys could help me with choice menus and an action I want to go with them in an applet I'm making. For the project I'm making, I have two choice menus. The first one has seven options. Let me try to explain what I'm trying to do: When the first menu is changed, I'm trying to make the options in the second menu instantly change to a pre-specified group of options. Is what I'm hoping to do even possible? Any help is greatly appreciated!
In your response, please act like you're talking to a person with a semester of High School Comp Sci.
agent_x91
05-27-2006, 10:34 PM
Isn't it just a case of changing the options in the second menu inside the listener of the first? What objects are you using for the menus?
KingCobra220
05-28-2006, 02:13 PM
Isn't it just a case of changing the options in the second menu inside the listener of the first??
Probably, but I've tried many times but I've obviously done something wrong. I'm unfamiliar with any listeners except ActionListener & ChangeListener. What would the proper listener for this be an ItemListener? How would I change one menu based on the other using that? As you can see, I'm not that knowledgable about Java.
What objects are you using for the menus?
I don't exactly know what you mean by objects (I'm Java illiterate) :o .
I'll do some playing around with this stuff now to see if I can get it.
Thanks for the help, though. I really appreciate it.
KingCobra220
05-28-2006, 05:27 PM
OK...I got something working. What I did was have multiple choice menus that are set visible or invisible when certain choices are selected. The only problem about this is that the menu box shifts position a couple pixels for some reason. Is there a better (and still simple) way to do this?