Using GUI Builder for applets

Hello,
I've created a form class extends JApplet and it is bound to a form. When the applet is loaded in the browser, all of the form fields in the class are 'null'. When I use a 'static void main' method to create an instance of the form class, all of the form fields are instantiated just fine.
Any clues???
Thanks,
Eric

3 comments
Comment actions Permalink

Can you provide the sample code please?

Tom

0
Comment actions Permalink

It seems like you're compiling the applet without IDEA's compiler, or something. I don't know why else that would happen.

0
Comment actions Permalink

FYI, the response from Serge Baranov at JetBrains....

When compiling classes which a bound to form IDEA automatically
instruments class files with the GUI initialization code. In your Ant
script you are using javac task which doesn't instrument classes and
doesn't compile forms.

You need to use a special task provided with IDEA:
http://www.intellij.org/twiki/bin/view/Main/IntelliJUIDesignerFAQ .

0

Please sign in to leave a comment.