Ui designer
You probably get this question a lot, but sadly I couldn't find what i needed
My problem is i'm trying to use the UI designer (rather new to java, but i do understand basic logic, which is all i need for my project). I maneged to make my UI (form) and it added the happy little java class for it, but this is where it all falls to peices:
I have not been able to actually show it, i looked at google but all tutorials seem to stop at the point if compilation. and i looked in the help, which told me to autogenerate a "main(String args[])" (entry point) which i did, but then i got this error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/jgoodies/forms/layout/FormLayout
at Donotcare.$$$setupUI$$$(Donotcare.java)
at Donotcare.<init>(Donotcare.java:10)
at Donotcare.main(Donotcare.java:13)
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:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.ClassNotFoundException: com.jgoodies.forms.layout.FormLayout
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
(please note that "donotcare" is a name i gave the classs because this is a testing project)
how would i go about showing my form?
ps it haven't autogenerated a "setupUI" function in my class :(
请先登录再写评论。
Hello Jesper,
You need to add JGoodies Forms to the dependencies of your module. You can
copy the library from lib\jgoodies-forms.jar in the IntelliJ IDEA distribution,
or download it from the Web.
The $$$setupUI$$$ method is generated automatically via bytecode instrumentation;
you don't see it in the source code.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
It worked perfectly, amazing ;)
Thank you for the very fast and accurate reponse :D