Running Swing apps designed with UI designer standalone

Hey folks,

I developed a Swing application with the UI designer that doesn't incorporate any of the intellij classes.
I really just used it for the jgoodies form design facility. Would you know how to bundle the application so that
I can run it standalone? The ultimate goal is to deploy it as a jnlp application to my Apache instance.

I've taken the command line that Intellij produces and removed the intellij class at the end com.intellij.rt.execution.application.AppMain
and substituted it with my class but I'm guessing there are a tonne of jar files that I don't need that intellij includes as it expects the
application to be run as a plugin.

Anyone any ideas?

Thanks,
Mark.

8 comments
Comment actions Permalink

Why do you believe IDEA expects your application to be run as a plugin ?

THe UIDesigner produced classes are ready to be used standalone with no problem, you just have to create a class with a main method

0
Comment actions Permalink

Hi Thibaut,

Thanks for getting back to me. My fault for presuming that IDEA would regard it as a plugin. Originally I developed the app with it in mind for being an intellij plugin but it turns out that the target audience were Business Analysts and as such wouldn't have licences for IDEA on their machine. I've since stripped out all the plugin libs that I didn't need but then have come acropper with some of the classes that Intellij adds to the classpath for aiding in designing the GUI. I didn't realise there were proprietary classes involved, I figured it was all just JGoodies classes. Does this means I can only release the app internally within the company unless I redesign the gui manually?

com/intellij/uiDesigner/core/AbstractLayout.class
com/intellij/uiDesigner/core/DimensionInfo.class
com/intellij/uiDesigner/core/GridConstraints.class
com/intellij/uiDesigner/core/GridLayoutManager.class
com/intellij/uiDesigner/core/HorizontalInfo.class
com/intellij/uiDesigner/core/LayoutState.class
com/intellij/uiDesigner/core/Spacer.class
com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class
com/intellij/uiDesigner/core/SupportCode.class
com/intellij/uiDesigner/core/Util.class
com/intellij/uiDesigner/core/VerticalInfo.class

Thanks,
Mark.

0
Comment actions Permalink

Jebrains people will correct me if I'm wrong, but IIRC you're allowed to redistribute the jars found in IDEA redist folder, which include forms_rt.jar defining the classes you mention above

0
Comment actions Permalink

Hello Mark,

These classes are only used if you're using "GridLayoutManager (IntelliJ)"
as the layout manager on some panels of your form. They are part of forms_rt.jar,
which is fully redistributable and available under the Apache 2 license.

Thanks for getting back to me. My fault for presuming
that IDEA would regard it as a plugin. Originally I developed the app
with it in mind for being an intellij plugin but it turns out that the
target audience were Business Analysts and as such wouldn't have
licences for IDEA on their machine. I've since stripped out all the
plugin libs that I didn't need but then have come acropper with some
of the classes that Intellij adds to the classpath for aiding in
designing the GUI. I didn't realise there were proprietary classes
involved, I figured it was all just JGoodies classes. Does this means
I can only release the app internally within the company unless I
redesign the gui manually?

com/intellij/uiDesigner/core/AbstractLayout.class
com/intellij/uiDesigner/core/DimensionInfo.class
com/intellij/uiDesigner/core/GridConstraints.class
com/intellij/uiDesigner/core/GridLayoutManager.class
com/intellij/uiDesigner/core/HorizontalInfo.class
com/intellij/uiDesigner/core/LayoutState.class
com/intellij/uiDesigner/core/Spacer.class
com/intellij/uiDesigner/core/SupportCode$TextWithMnemonic.class
com/intellij/uiDesigner/core/SupportCode.class
com/intellij/uiDesigner/core/Util.class
com/intellij/uiDesigner/core/VerticalInfo.class

Thanks,
Mark.

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


0
Comment actions Permalink

Hey Thibaut,

That's fantastic Thibaut!! Thanks a million for pointing that out to me. I'd have been a long time re-designing the gui by hand.
Just got the app deployed as a jnlp application!! Granted now it's only local at this stage but the basics are done.

Thanks a million again for helping me out

Mark.

0
Comment actions Permalink

Hey Dmitry,

You're dead right Dmitry, a number of my forms use the "GridLayoutManager (IntelliJ)"!! Instead of removing them though I'll
leave them in there as they've done the job perfectly for me..

I hopefully, eventually, intend to release the app on the web as a Java Web Start application? Are there any license issues I should be
aware of in doing so? There'll be no money involved in using the app in any shape or form.

Thanks,
Mark.

0
Comment actions Permalink

Just wanted to add this pointer to MavenCentral - since I'm probably gonna hit this page again ;)

http://repo1.maven.org/maven2/com/intellij/forms_rt/

Thanks!

0

Please sign in to leave a comment.