Jump to content

item chooser

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
fuyumi87

fuyumi87

    Newbie

  • Members
  • Pip
  • 1 posts
Hi, I am currently writing a program that I want it to:

when execute it, it first load a popup item-chooser, user then choose out of 2 possible items (say a and b), then click ok

once clicked ok, it will load the correct program, according to either a or b

I have got an itemchooser.java (with a main-method)
and a main program bit for "a" with a proper gui and functions and a main-method.

I was wondering how do you link the item-chooser to the main-program that I got.... like, what I should put in the actionPerformed method of the button.

because my program involves two different things that the users can choose to do. thanks

#2
Arkie

Arkie

    Learning Programmer

  • Members
  • PipPipPip
  • 92 posts
wat about: if else , and call the object/method you want.