Skip to main content

AbsoluteLayout

5 replies [Last post]
denisw
Offline
Joined: 2005-01-03
Points: 0

There should be an AbsoluteLayout in Swing, like the one in NetBeans.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jwenting
Offline
Joined: 2003-12-02
Points: 0

there's NullLayout which allows laying out on pixel coordinates.
Doesn't get much more absolute than that ;)

denisw
Offline
Joined: 2005-01-03
Points: 0

Oh... but why does NetBeans provide a AbsoluteLayout then?

bino_george
Offline
Joined: 2003-06-16
Points: 0

> Oh... but why does NetBeans provide a AbsoluteLayout
> then?

I think AbsoluteLayout does more than just setting Layout to null. AbsoluteLayout may even accomodate for changes in font sizes etc.

I know that the Swing team is working with the Netbeans
team to provide enhancements to the Swing layouts so that
building Swing UIs can be made easier and more intuitive.
I have seen a demo of it and it seems very intuitive, almost like a graphics tool.
Layouts are one of the most commonly complained about area because most
people find the exisiting layout managers complex and unintuitive.

So hopefully if these improvements go into Mustang, which they probably will, then it should improve the ease
of building GUIs with builders.

Regards,
Bino.

denisw
Offline
Joined: 2005-01-03
Points: 0

Where did you get that demo?

denisw
Offline
Joined: 2005-01-03
Points: 0

Oh, you're from Sun. That's the reason... :)