if i make small jframe with 2 jComboBox(jComboBox1,jComboBox2) and a jbutton I want that when the user click on jbutton it will display jComboBox1 and jComboBox2 in the label

Recommended Answers

ok ... and your question is?

Jump to Post

what label?

Jump to Post

All 6 Replies

ok ... and your question is?

what label?

how i make jbutton when the user click on it it will display jComboBox1 and jComboBox2

Start with the combo boxes invisible setVisible(false)
Add an action listener to the button
In the action listener's actionPerformed method, make the combo boxes visible

Example please

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.