not, you are wrong (re)validate and repaint is for add, remove (add & remove) or modify JComponents on runtime, those methods are for LayoutManager, not for add a new Item to the JComboBox on runtime, please to delete or amend this question – mKorbe
no at the runtime if i enter some random value other than what i have set previously then that is not adding in the combobox list. i need to add some value to the combobox list when i click on the button. i dont have much knowledge of progrmaing what i kn
The following is an example to add items on runtime on a JComboBox in Java:Exampleimport java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.a ...
Post a Comment:
Showing 0 Comments: