Re: How do I use events with Netbeans?



Scirious wrote:
Ok, here it goes... Since Netbeans declares all GUI inside a private method I cant access them directly. So, on a button click, how can I do something like jTextField1.setText("Hello!");?

TIA,
Scirious.

If you just want to initialize then select on the object in your GUI panel. Then you have to select the properties, of that object, on the right side of the screen. You can add data there. I think the field is 'value'. You can still reference the Object outside of the "do not Modify" code. Just reference it correctly.


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
.