Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 01:49:01 am
Xith3D CommunityGeneral CategoryNews (Moderators: Marvin Fröhlich, 'n ddrylliog)LayoutManagers for the HUD
Pages: [1]
Print
Author Topic: LayoutManagers for the HUD  (Read 946 times)
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« on: 22. October 2007, 12:32:36 am »

I have written LayoutManager implementation for all the most common and well known LMs.

  • There's a GridLayout, that not only has all the features of Swing's GridLayout, but also includes most features of the GridBagLayout, but in an easier and more convenient way through simple weights arrays.
  • A FillLayout, that simply stretches the first widget in the container over the whole area (and ignores the other ones).
  • A BorderLayout, that works just like the one from Swing.
  • A ListLayout, that arranges the Widgets horizontally or vertically in their order.

There's a new DummyWidget class, that you can use to create empty spaces on LayoutManager managed Panels.

Just have a look at the testcase in xith-tk.

Enjoy Smiley.

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 22. October 2007, 06:39:18 pm »

Great !

I suggest a rename for DummyWidget to "FillerWidget" or "EmptyWidget", or something like that..
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 22. October 2007, 06:43:07 pm »

Great !

I suggest a rename for DummyWidget to "FillerWidget" or "EmptyWidget", or something like that..

Agreed. "EmptyWidget" is good. Will be done.

Marvin

EDIT: done.
« Last Edit: 22. October 2007, 06:46:24 pm by Marvin Fröhlich » Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic