Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

while adding different components at same place

 
yash bhatnagar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some issues on my gui. while selecting values selected in the combobox components(comboboxes)have to be removed and has to add some other components(comboboxes) in that exact place. but, removing components is fine. but, while adding the same it's adding components to the gui is not working. because it's adding some where else.


 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kind of depends on what kind of layout you are using. It sounds like your add() methods are not the same? Are you using the same add() method for all your components? Could you post a little code? That may help.

------------------
Happy Coding,
Gregg Bolinger
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is always comboboxes removed and a combobox replacing it, why not just change the data within the combobox?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic