We are about to switch to a new forum software. Until then we have removed the registration on this forum.
In G4P GUI builder, how do I display the contents of Dropbox on the textarea?Suppose if I select one of the contents of Dropbox how do I display it on the textarea?
Answers
You can get the selected option from the GDropList with
You can add test to a GTextArea with
You should also look at the online reference for G4P.
BTW if you want to get my attention in a discussion just include @quark in the message (this works for any member). Please do not duplicate the question on my wall. Thanks.
Thanks. If I want to display default statements on text area what command should I use?
Not sure what you mean?
You can have prompt text with
Prompt text appears only when the textarea is empty but is never returned with
getText(). This is used to indicate what information is expected to be entered.INitially you can just use textarea.setText(String s) in setup ()