UI Designer - SWT?

Like others - I have searched, but have failed to find an answer to this question:

Can I use SWT in the UI designer in the same way I can use Swing components?

If I can - some instructions on how to add the componets to a pallette would be great.

beren

8 comments
Comment actions Permalink

Hi Beren,

You cannot use IDEA's UI designer for SWT. It is a ui designer for Swing and since there is no common base used by SWT and Swing other than the basic AWT it would also be not possible to somehow change it to work with SWT. They would need to create a new one for SWT.

Best regards,
  Robert

0
Comment actions Permalink

Hi Robert,

Thanks for the quick response - makes sense. Its not a killer thing for me.

I was also trying to figure out where some of the other Swing components are. For example the swing menus and dialogs are not on the pallette - is there a way to add these? Sorry for the question, but I have not yet found a good comprehensive user manual for the UI designer. I sure hope there is one because it looks powerful, but it also seems that there are some tricks to learn for how to get the most out of it.

beren

0
Comment actions Permalink

As far as I know there is no way to create dialogs or any other kind of window with the UI designer. You can only create forms and it is your reponsibility to embed them into some frame or dialog.

As you cannot create a window it would make no sense to be able to create menus from the palette since you can only attach them to a window or show them dynamically. So there is no menu-icon in the palette, either.

There is some documentation available in IDEA's help system. Take a look at "IntelliJ IDEA -> Concepts -> GUI Designer Basics", "IntelliJ IDEA -> Procedures -> Designing GUI" and at "IntelliJ IDEA -> Reference -> GUI Designer Reference"

Best regards,
  Robert

0
Comment actions Permalink

Cool - thanks for the docs.

I did figure out that I can manually add components to the current groups or create new groups - so I've done that for some things like JMenuBar and JDesktop swing components.

beren

0
Comment actions Permalink

Hello Beren,

Like others - I have searched, but have failed to find an answer to
this question:

Can I use SWT in the UI designer in the same way I can use Swing
components?

If I can - some instructions on how to add the componets to a pallette
would be great.


No, you cannot. We don't currently have any plans to support SWT in the UI
Designer.

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


0
Comment actions Permalink

Hello Beren,

Cool - thanks for the docs.

I did figure out that I can manually add components to the current
groups or create new groups - so I've done that for some things like
JMenuBar and JDesktop swing components.


This won't give you any useful behavior for editing the menus. As Robert
explained, the UI Designer doesn't currently include a menu designer.

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


0
Comment actions Permalink

For Java UI design I would recommend http://www.jformdesigner.com - it integrates nicely into IDEA as a plugin. The roadmap (last link on page) announces SWT/JFace support for the next release.

Peter

0
Comment actions Permalink

Thanks Peter - that does look like exactly what I was looking for.

I've been working withthe designer included in IDEA and it is pretty good for my basic needs, but I'll check this one out. Thanks!

beren

0

Please sign in to leave a comment.