[feature request] Is there any plan to support MigLayout in GUI form designer?

I just found the Window Builder in Eclipse have great support for MigLayout. MigLayout has already make Swing layout very easy, it's totally possible to write entirely by hand. However, I have to start the application again every time I made any modification in MigLayout. With Window Builder, I can see immediately the result of modification, change constraints, drag and drop components by column, measure how many pixels I need with immediately feedback.

I'm afraid there could be a lot of work to support MigLayout in IDEA, so I can totally understand if this is not in high priority in your list.

However, image this:

If IDEA could support MigLayout in GUI form designer, and generate code in Groovy SwingBuilder code, we will have an Ultimate Swing IDE!

Swing in Groovy SwingBuilder is vastly simpler than Java, I believe to generate SwingBuilder code is very simple, almost trival when you support MigLayout in the form designer. For example, the code generated by window builder in Eclipse could like this:

        JList list_1 = new JList();
        list_1.addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent arg0) {
                 //do something here
            }
        });
        
        frame.getContentPane().add(list_1, "cell 0 5,grow");

While the SwingBuilder counter part will be

list(constraints:"cell 0 5, grow", actionPerformed:{//do something here})

With SwingBuilder's simplification in Swing coding, MigLayout's simplification in Layout, IDEA's support in visual designer, this is the ultimate goal of tools for Swing programming! Of course, SWT support could be added easily too.

What do you think?

I submitted a request here, please vote if you agree!
http://youtrack.jetbrains.net/issue/IDEA-70025

1 comment
Comment actions Permalink

Hello draco,

At the moment we don't have any plans for developing major new features in
the UI Designer (be it MigLayout support, Groovy code generation or anything
else). The source code of UI Designer is included in the IntelliJ IDEA Commmunity
Edition source code, so if you're interested in contributing any of that,
you're welcome.

I just found the Window Builder in Eclipse have great support for
MigLayout. MigLayout has already make Swing layout very easy, it's
totally possible to write entirely by hand. However, I have to start
the application again every time I made any modification in MigLayout.
With Window Builder, I can see immediately the result of modification,
change constraints, drag and drop components by column, measure how
many pixels I need with immediately feedback.

I'm afraid there could be a lot of work to support MigLayout in IDEA,
so I can totally understand if this is not in high priority in your
list.

However, image this:

If IDEA could support MigLayout in GUI form designer, and generate
code in Groovy SwingBuilder code, we will have an Ultimate Swing IDE!

Swing in Groovy SwingBuilder is vastly simpler than Java, I believe to
generate SwingBuilder code is very simple, almost trival when you
support MigLayout in the form designer. For example, the code
generated by window builder in Eclipse could like this:

        JList list_1 =
> new JList();
> list_1.addListSelectionListener(new ListSelectionListener() {
> public void valueChanged(ListSelectionEvent arg0) {
> //do something here
> }
> });
> frame.getContentPane().add(list_1, "cell 0 5,grow");

While the SwingBuilder counter part will be

list(constraints:"cell 0
> 5, grow", actionPerformed:{//do something here})


With SwingBuilder's simplification in Swing coding, MigLayout's
simplification in Layout, IDEA's support in visual designer, this is
the ultimate goal of tools for Swing programming! Of course, SWT
support could be added easily too.

What do you think?

I submitted a request here, please vote if you agree!
http://youtrack.jetbrains.net/issue/IDEA-70025


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


0

Please sign in to leave a comment.