• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me to clear Jcombo during runtime

 
sowmya upadhya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic