This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala Swing: Good simple layout manager?

15 replies
Detering Dirk
Joined: 2008-12-16,
User offline. Last seen 42 years 45 weeks ago.

Question from a Scala.swing noob:

Has something like TableLayout or MigLayout made its way into
scala.swing, or is there any other way to easily(!) layout
simple multi-column/-row GUIs?

KR
Det

H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: Scala Swing: Good simple layout manager?

jformdesigner.com
i use that one. it's good.
-------- Original-Nachricht --------
> Datum: Tue, 6 Jul 2010 16:24:01 +0200
> Von: Detering Dirk
> An: "scala-user [at] listes [dot] epfl [dot] ch"
> Betreff: [scala-user] Scala Swing: Good simple layout manager?

> Question from a Scala.swing noob:
>
> Has something like TableLayout or MigLayout made its way into
> scala.swing, or is there any other way to easily(!) layout
> simple multi-column/-row GUIs?
>
> KR
> Det
>
>

Aydjen
Joined: 2009-08-21,
User offline. Last seen 1 year 28 weeks ago.
Re: Scala Swing: Good simple layout manager?

Hi,

"easy" is probably very very subjective. I personally find MigLayout not
easy to use at all. My go-to layout manager is GroupLayout, for which I
created a Scala wrapper(1). The docs are not completely up to date but the
basic things are all there and the classes are now rather complete, imho.

Andreas

(1) http://github.com/aydjen/GroupPanel

Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
:
> Question from a Scala.swing noob:
>
> Has something like TableLayout or MigLayout made its way into
> scala.swing, or is there any other way to easily(!) layout
> simple multi-column/-row GUIs?
>
> KR
> Det

Detering Dirk
Joined: 2008-12-16,
User offline. Last seen 42 years 45 weeks ago.
RE: Scala Swing: Good simple layout manager?

Thanks Dennis,

but not what the question was about.
I don't need to easily layout complex forms in a designer,
but to easily layout simple forms in a script with scala.swing.

Just what you would do in Groovy with:

panel() {
tableLayout {
content.each { row ->
tr {
td { widget(row.selectbox) }
td { label(text: row.title) }
td { widget(row.donebox) }
}
}
}
}

> -----Original Message-----
> From: Dennis Haupt [mailto:h-star [at] gmx [dot] de]
> Sent: Tuesday, July 06, 2010 4:26 PM
> To: Detering Dirk; scala-user [at] listes [dot] epfl [dot] ch
> Subject: Re: [scala-user] Scala Swing: Good simple layout manager?
>
> jformdesigner.com
> i use that one. it's good.
> -------- Original-Nachricht --------
> > Datum: Tue, 6 Jul 2010 16:24:01 +0200
> > Von: Detering Dirk
> > An: "scala-user [at] listes [dot] epfl [dot] ch"
> > Betreff: [scala-user] Scala Swing: Good simple layout manager?
>
> > Question from a Scala.swing noob:
> >
> > Has something like TableLayout or MigLayout made its way into
> > scala.swing, or is there any other way to easily(!) layout
> > simple multi-column/-row GUIs?
> >
> > KR
> > Det
> >
> >
> > --
> >
> >
> > BITMARCK SOFTWARE GMBH
> > Firmensitz: Paul-Klinger-Strasse 15, 45127 Essen
> > Geschaeftsfuehrer: Frank Krause
> > Registergericht: Amtsgericht Essen HRB 20680
> >
> >
> ***********************************************************************
> >
> > Die Information in dieser E-Mail ist vertraulich und ist
> ausschliesslich
> > fuer den/die benannten Adressaten bestimmt. Ein Zugriff auf diese
> > E-Mail durch andere Personen als den/die benannten Adressaten ist
> > nicht gestattet. Sollten Sie nicht der benannte Adressat sein,
> loeschen
> > Sie bitte diese E-Mail.
> >
>
> --
> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl

Kai Meder 2
Joined: 2010-06-06,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Swing: Good simple layout manager?

On 06.07.2010 16:24, Detering Dirk wrote:
> Has something like TableLayout or MigLayout made its way into
> scala.swing, or is there any other way to easily(!) layout
> simple multi-column/-row GUIs?

I prefer a Scala Panel-Wrapper for MigLayout:
http://github.com/hotzen/MetaFlow/blob/swing-UI/src/metaflow/ui/MigPanel...

Usage like:
http://github.com/hotzen/MetaFlow/blob/swing-UI/src/metaflow/ui/GUI.scal...

Cheers, Kai

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Swing: Good simple layout manager?
Ingo was supposed to include one of ours. Not sure what happened.

On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl <andreas [at] flierl [dot] eu> wrote:

Hi,

"easy" is probably very very subjective. I personally find MigLayout not
easy to use at all. My go-to layout manager is GroupLayout, for which I
created a Scala wrapper(1). The docs are not completely up to date but the
basic things are all there and the classes are now rather complete, imho.

Andreas

(1) http://github.com/aydjen/GroupPanel

Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
<Dirk [dot] Detering [at] bitmarck [dot] de>:
> Question from a Scala.swing noob:
>
> Has something like TableLayout or MigLayout made its way into
> scala.swing, or is there any other way to easily(!) layout
> simple multi-column/-row GUIs?
>
> KR
> Det

Artur Stanek
Joined: 2010-06-03,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Swing: Good simple layout manager?
I also wait for a very long time to scala.swing will be extended (JDestkopPane and JInternalFrame)...


2010/7/7 Naftoli Gugenheim <naftoligug [at] gmail [dot] com>
Ingo was supposed to include one of ours. Not sure what happened.

On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl <andreas [at] flierl [dot] eu> wrote:

Hi,

"easy" is probably very very subjective. I personally find MigLayout not
easy to use at all. My go-to layout manager is GroupLayout, for which I
created a Scala wrapper(1). The docs are not completely up to date but the
basic things are all there and the classes are now rather complete, imho.

Andreas

(1) http://github.com/aydjen/GroupPanel

Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
<Dirk [dot] Detering [at] bitmarck [dot] de>:
> Question from a Scala.swing noob:
>
> Has something like TableLayout or MigLayout made its way into
> scala.swing, or is there any other way to easily(!) layout
> simple multi-column/-row GUIs?
>
> KR
> Det


Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Swing: Good simple layout manager?
I was referring to the two GroupPanel implementations that were already written.But contributions are welcome if there's something you'd like to add. :)

On Wed, Jul 7, 2010 at 8:54 AM, Artur Stanek <kermitas [at] gmail [dot] com> wrote:
I also wait for a very long time to scala.swing will be extended (JDestkopPane and JInternalFrame)...


2010/7/7 Naftoli Gugenheim <naftoligug [at] gmail [dot] com>
Ingo was supposed to include one of ours. Not sure what happened.

On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl <andreas [at] flierl [dot] eu> wrote:

Hi,

"easy" is probably very very subjective. I personally find MigLayout not
easy to use at all. My go-to layout manager is GroupLayout, for which I
created a Scala wrapper(1). The docs are not completely up to date but the
basic things are all there and the classes are now rather complete, imho.

Andreas

(1) http://github.com/aydjen/GroupPanel

Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
<Dirk [dot] Detering [at] bitmarck [dot] de>:
> Question from a Scala.swing noob:
>
> Has something like TableLayout or MigLayout made its way into
> scala.swing, or is there any other way to easily(!) layout
> simple multi-column/-row GUIs?
>
> KR
> Det



imaier
Joined: 2008-07-01,
User offline. Last seen 23 weeks 2 days ago.
Re: Scala Swing: Good simple layout manager?

Last time we exchanged emails, I had the impression that you are willing
to contribute those. Correct me if I am wrong.

Ingo

On 7/7/10 2:54 PM, Artur Stanek wrote:
> I also wait for a very long time to scala.swing will be extended
> (JDestkopPane and JInternalFrame)...
>
>
> 2010/7/7 Naftoli Gugenheim >
>
> Ingo was supposed to include one of ours. Not sure what happened.
>
>
> On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl > wrote:
>
>
> Hi,
>
> "easy" is probably very very subjective. I personally find
> MigLayout not
> easy to use at all. My go-to layout manager is GroupLayout, for
> which I
> created a Scala wrapper(1). The docs are not completely up to
> date but the
> basic things are all there and the classes are now rather
> complete, imho.
>
> Andreas
>
> (1) http://github.com/aydjen/GroupPanel
>
> Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
> >:
> > Question from a Scala.swing noob:
> >
> > Has something like TableLayout or MigLayout made its way into
> > scala.swing, or is there any other way to easily(!) layout
> > simple multi-column/-row GUIs?
> >
> > KR
> > Det
>
>
>

imaier
Joined: 2008-07-01,
User offline. Last seen 23 weeks 2 days ago.
Re: Scala Swing: Good simple layout manager?

It would be really nice if you two could agree on a common interface.
GroupLayout is different from the other standard layout managers, so it
needs a little bit of thought.

Ingo

On 7/7/10 2:25 AM, Naftoli Gugenheim wrote:
> Ingo was supposed to include one of ours. Not sure what happened.
>
>
> On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl > wrote:
>
>
> Hi,
>
> "easy" is probably very very subjective. I personally find MigLayout not
> easy to use at all. My go-to layout manager is GroupLayout, for which I
> created a Scala wrapper(1). The docs are not completely up to date
> but the
> basic things are all there and the classes are now rather complete,
> imho.
>
> Andreas
>
> (1) http://github.com/aydjen/GroupPanel
>
> Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
> >:
> > Question from a Scala.swing noob:
> >
> > Has something like TableLayout or MigLayout made its way into
> > scala.swing, or is there any other way to easily(!) layout
> > simple multi-column/-row GUIs?
> >
> > KR
> > Det
>
>

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Swing: Good simple layout manager?
Andreas, do you have any input?

On Thu, Jul 8, 2010 at 3:13 AM, Ingo Maier <ingo [dot] maier [at] epfl [dot] ch> wrote:
It would be really nice if you two could agree on a common interface. GroupLayout is different from the other standard layout managers, so it needs a little bit of thought.

Ingo

On 7/7/10 2:25 AM, Naftoli Gugenheim wrote:
Ingo was supposed to include one of ours. Not sure what happened.


On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl <andreas [at] flierl [dot] eu
<mailto:andreas [at] flierl [dot] eu>> wrote:


   Hi,

   "easy" is probably very very subjective. I personally find MigLayout not
   easy to use at all. My go-to layout manager is GroupLayout, for which I
   created a Scala wrapper(1). The docs are not completely up to date
   but the
   basic things are all there and the classes are now rather complete,
   imho.

   Andreas

   (1) http://github.com/aydjen/GroupPanel

   Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
   <Dirk [dot] Detering [at] bitmarck [dot] de <mailto:Dirk [dot] Detering [at] bitmarck [dot] de>>:
    > Question from a Scala.swing noob:
    >
    > Has something like TableLayout or MigLayout made its way into
    > scala.swing, or is there any other way to easily(!) layout
    > simple multi-column/-row GUIs?
    >
    > KR
    > Det




Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Swing: Good simple layout manager?
Here's my latest copy. I think the first step would be a more detailed analysis of how they differ. Would you want to do that?


On Thu, Jul 8, 2010 at 3:20 PM, Andreas Flierl <andreas [at] flierl [dot] eu> wrote:
Ugh, I can't seem to find your code in the vast labyrinthe that is my mailbox.
Do you have it online somewhere? Or could you send it again? (Sorry...)
Once I can look it again I'll be sure to make some concrete suggestions.

From what I remember the end result of both our products, from a user's point of view, were rather similar. I've worked quite a bit on mine since then, adding a some convenience things like "spring" gaps, concise size constraints and alignment but also a lot of scaladoc.

Maybe we could start hacking together from some starting point (I don't mind if that'd be your code or mine) online ... at github or wherever?

-
Andreas

Am 08.07.2010 um 21:03 schrieb Naftoli Gugenheim:

> Andreas, do you have any input?
>
>
> On Thu, Jul 8, 2010 at 3:13 AM, Ingo Maier <ingo [dot] maier [at] epfl [dot] ch> wrote:
> It would be really nice if you two could agree on a common interface. GroupLayout is different from the other standard layout managers, so it needs a little bit of thought.
>
> Ingo
>
>
> On 7/7/10 2:25 AM, Naftoli Gugenheim wrote:
> Ingo was supposed to include one of ours. Not sure what happened.
>
>
> On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl <andreas [at] flierl [dot] eu
> <mailto:andreas [at] flierl [dot] eu>> wrote:
>
>
>    Hi,
>
>    "easy" is probably very very subjective. I personally find MigLayout not
>    easy to use at all. My go-to layout manager is GroupLayout, for which I
>    created a Scala wrapper(1). The docs are not completely up to date
>    but the
>    basic things are all there and the classes are now rather complete,
>    imho.
>
>    Andreas
>
>    (1) http://github.com/aydjen/GroupPanel
>
>    Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
>    <Dirk [dot] Detering [at] bitmarck [dot] de <mailto:Dirk [dot] Detering [at] bitmarck [dot] de>>:
>
>     > Question from a Scala.swing noob:
>     >
>     > Has something like TableLayout or MigLayout made its way into
>     > scala.swing, or is there any other way to easily(!) layout
>     > simple multi-column/-row GUIs?
>     >
>     > KR
>     > Det
>
>
>
>


Aydjen
Joined: 2009-08-21,
User offline. Last seen 1 year 28 weeks ago.
Re: Scala Swing: Good simple layout manager?

Ugh, I can't seem to find your code in the vast labyrinthe that is my mailbox.
Do you have it online somewhere? Or could you send it again? (Sorry...)
Once I can look it again I'll be sure to make some concrete suggestions.

From what I remember the end result of both our products, from a user's point of view, were rather similar. I've worked quite a bit on mine since then, adding a some convenience things like "spring" gaps, concise size constraints and alignment but also a lot of scaladoc.

Maybe we could start hacking together from some starting point (I don't mind if that'd be your code or mine) online ... at github or wherever?

-
Andreas

Am 08.07.2010 um 21:03 schrieb Naftoli Gugenheim:

> Andreas, do you have any input?
>
>
> On Thu, Jul 8, 2010 at 3:13 AM, Ingo Maier wrote:
> It would be really nice if you two could agree on a common interface. GroupLayout is different from the other standard layout managers, so it needs a little bit of thought.
>
> Ingo
>
>
> On 7/7/10 2:25 AM, Naftoli Gugenheim wrote:
> Ingo was supposed to include one of ours. Not sure what happened.
>
>
> On Tue, Jul 6, 2010 at 10:29 AM, Andreas Flierl > wrote:
>
>
> Hi,
>
> "easy" is probably very very subjective. I personally find MigLayout not
> easy to use at all. My go-to layout manager is GroupLayout, for which I
> created a Scala wrapper(1). The docs are not completely up to date
> but the
> basic things are all there and the classes are now rather complete,
> imho.
>
> Andreas
>
> (1) http://github.com/aydjen/GroupPanel
>
> Am Dienstag, den 06.07.2010, 16:24 +0200 schrieb Detering Dirk
> >:
>
> > Question from a Scala.swing noob:
> >
> > Has something like TableLayout or MigLayout made its way into
> > scala.swing, or is there any other way to easily(!) layout
> > simple multi-column/-row GUIs?
> >
> > KR
> > Det
>
>
>
>

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala Swing: Good simple layout manager?
Appreciate it. There isn't any chance of making 2.8, is there?

On Thu, Jul 8, 2010 at 3:32 PM, Andreas Flierl <andreas [at] flierl [dot] eu> wrote:
Aye, I'll look into it. Thanks.

Naftoli Gugenheim wrote:
> Here's my latest copy. I think the first step would be a more detailed analysis of how they differ. Would you want to do that?


Aydjen
Joined: 2009-08-21,
User offline. Last seen 1 year 28 weeks ago.
Re: Scala Swing: Good simple layout manager?

Aye, I'll look into it. Thanks.

Naftoli Gugenheim wrote:
> Here's my latest copy. I think the first step would be a more detailed analysis of how they differ. Would you want to do that?

imaier
Joined: 2008-07-01,
User offline. Last seen 23 weeks 2 days ago.
Re: Scala Swing: Good simple layout manager?

On 7/8/10 9:36 PM, Naftoli Gugenheim wrote:
> Appreciate it. There isn't any chance of making 2.8, is there?

It depends on how fast you are and how well tested it is :) Seriously, I
guess it is more for 2.8.1.

Ingo

>
>
> On Thu, Jul 8, 2010 at 3:32 PM, Andreas Flierl > wrote:
>
> Aye, I'll look into it. Thanks.
>
> Naftoli Gugenheim wrote:
> > Here's my latest copy. I think the first step would be a more
> detailed analysis of how they differ. Would you want to do that?
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland