How to create JComboBox in JAVA (GUI)

I have to add a combo box into a panel. Have to be programmed in java.

Page 1 of 1

2 Replies - 3555 Views - Last Post: 16 February 2010 - 07:23 PM Rate Topic: -----

#1 Guest_Alex*


Reputation:

How to create JComboBox in JAVA (GUI)

Posted 16 February 2010 - 06:40 PM

I have to add a combo box into a panel. Have to be programmed in java.
Is This A Good Question/Topic? 0

Replies To: How to create JComboBox in JAVA (GUI)

#2 pdkharkar   User is offline

  • D.I.C Regular
  • member icon

Reputation: 65
  • View blog
  • Posts: 345
  • Joined: 19-January 09

Re: How to create JComboBox in JAVA (GUI)

Posted 16 February 2010 - 06:47 PM

you have to just create the object of the combobox class
I will not give you code
first you have to try it on yourself
Was This Post Helpful? 0
  • +
  • -

#3 macosxnerd101   User is online

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12680
  • View blog
  • Posts: 45,863
  • Joined: 27-December 08

Re: How to create JComboBox in JAVA (GUI)

Posted 16 February 2010 - 07:23 PM

JPanel has an add() method which accepts a Component object, of which JComboBox inherits from, as a parameter. So it should be fairly straightforward if this is all you want to do.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1