This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes help me to clear Jcombo during runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help me to clear Jcombo during runtime " Watch "help me to clear Jcombo during runtime " New topic
Author

help me to clear Jcombo during runtime

sowmya upadhya
Greenhorn

Joined: May 14, 2006
Posts: 1
hi,
i am doing project in swings. i am using 2 combo boxes.elements for both are added during runtime one is from database and for other from frontend based on a radiobutton clicked.when i select a element from a 1st combo box it will add elements to 2nd combobox from database but i am not able to clear prevoius elements from that combobox i tried using removeAllItems but it is giving NullPointer Exception.when that form is reloaded the previous must be cleared.please help me to solve this problem

thank you in advance
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: help me to clear Jcombo during runtime
 
Similar Threads
ComboBox Item Display
State of requested data
Dependent/chain comboboxes on same jsp page
adding items in combo box?
Dynamic addition of items to combo inJSP