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

0
Avatar
Permanently deleted user

Can you provide the sample code please?

Tom

0
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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

请先登录再写评论。