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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.