08-08-2011 11:23 AM
Is there a code example of how you can add Controls dynamically in
I have a ObjectChoiceField with a Listener and I need to add and remove controls dynamically based on the choice.
using Java Plugin Eclips
Solved! Go to Solution.
08-08-2011 06:16 PM
Welcome to the forums.
No need for samples, all you need to do is 'add' in the same way as you do when you add the original controls to the screen. You can delete as well. The one trick is that you need to be running on the Event Thread to do this, but if you perform this operation in a fieldChangeListener or menu click or focus change, then you are running on the Event Thread and the add/delete operations can be done.
Hope this is enough information for you.