• Post Reply Bookmark Topic Watch Topic
  • New Topic

combo box

 
omar nasir
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
umm hi guys help me here pls. i need to make a pull down menu which has options Us Dollars, Malaysian Ringgit, Sterling Pounds.

i need to make an applet that money changers can use. In my applet the user types in the exchange rates, then from 100 XX currency the user selects either Us Dollars, Malaysian Ringgit, Sterling Pounds from the pull down menu. Then they click on a button that helps to convert the 100 XX currency to the one the user selects. pls help me here, im a rookie.
 
Andris Jekabsons
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Omar,
You can learn more about combo boxes in this tutorial, as well as applets. These pages have decend examples.
Let us know how it goes and if you encounter a problem somewhere along the way.
Good luck!
 
omar nasir
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wow thx man. u rock!

just one question.

given the requirements i made in the first post, do i use ItemListener or ActionLisener or both?
 
Andris Jekabsons
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand you question correctly:
It depends on what component you are using. To find out what it requires, just consult the component's API.

For instance, a Button object's addActionListener() method requires an ActionListener.

P.S. Don't forget to take a look at the tutorial examples to get a better idea of using a specific component.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!