Captive Imagination
July 31, 2010, 11:48:31 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: jSeamless 1.0 Beta 7 is Available http://www.jseamless.org
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Panel - enhancement  (Read 1017 times)
0 Members and 1 Guest are viewing this topic.
syam
Full Member
***
Offline Offline

Posts: 139


View Profile
« on: September 15, 2008, 11:57:14 PM »

I think, if we add a constructor that takes the "body" of the Panel as a parameter, it will be very much useful.

Code:
public Panel(Box body);
public Panel(Box body, String title);

In the initUI(), you can do body.setSize(Dimension.fill()) and the initUI can take "body" as a paremeter too.

This way, I can have a Box (or Box derived container) of my own to be used in the Panel's body.
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #1 on: September 16, 2008, 07:31:58 AM »

That's a good idea.  I've added that and committed it.  If you update from the repository it should be there.
Logged
syam
Full Member
***
Offline Offline

Posts: 139


View Profile
« Reply #2 on: September 16, 2008, 11:26:36 AM »

Great.
Thanks.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.167 seconds with 21 queries.