Using Forms to design GUI's. Need some help.

Hi ,

I have create a Form, i would like to use this form with an applet. I have bound the form with a class, actually intellij done that for me. But i cant get the form to actually run. The help file with intellij is rubbish and i converted my class into an application and used there code to run the form but it didn't work. Does anyone know of any code examples on the internet that i could learn from. I just keeping getting null pointer exceptions all the time.

Thanks .

Marcello

3 comments

Hello mmarab,

I have create a Form, i would like to use this form with an applet. I
have bound the form with a class, actually intellij done that for me.
But i cant get the form to actually run. The help file with intellij
is rubbish and i converted my class into an application and used there
code to run the form but it didn't work. Does anyone know of any code
examples on the internet that i could learn from. I just keeping
getting null pointer exceptions all the time.


Where do you get a null pointer exception? Do you use Ant to build your project?

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

This is the null pointer that i get:

Exception in thread "main" java.lang.NullPointerException
at MixerSettings.$$$setupUI$$$(MixerSettings.java)
at MixerSettings.]]>(MixerSettings.java:43)
at MixerSettings.main(MixerSettings.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

And i do not use ant build. But just so i know you can actually use a form with an JApplet right ?

Thanks

0

Hello mmarab,

Exception in thread "main" java.lang.NullPointerException
at MixerSettings.$$$setupUI$$$(MixerSettings.java)
at MixerSettings.<init>(MixerSettings.java:43)
at MixerSettings.main(MixerSettings.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)


This looks like a bug in IDEA rather than a problem with your code. Which
exactly version are you using? Do you get the same exception if you click
on "Preview Form" button in the toolbar, or does the preview work?

And i do not use ant build. But just so i know you can actually use a
form with an JApplet right ?


Yes, this should work.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.