F O R · R E A L L Y · T H I N · C L I E N T S
 Home  |  Overview  |  Widgets  |  Demo  |  License  |  History 

» Component
» Label
» Button
» CheckBox
» ComboBox
» TextField
» PasswordField
» TextArea
» TabbedPane
» Panel
» Desktop
» Dialog
» SpinBox
» ProgressBar
» Slider
» SplitPane
» List
» Table
» Tree
» Separator
» MenuBar

Panel
Panel is a container with a layout manager similar to GridBagLayout. The following example is similar to BorderLayout. This panel has 5 components, the first row contains only the 'North' component, the second row has 3 components, and the last has only the 'South' one. The extra space is distributed to the 2nd row and the 2nd column. The gap between the components and on the border are 4pt.
<panel columns="3" gap="4" top="4" left="4" bottom="4" right="4">
  <textfield text="North" colspan="3" />
  <label text="East" />
  <textarea text="Center" weightx="1" weighty="1" />
  <label text="West" />
  <textfield text="South" colspan="3" />
</panel>

Parameters
NameTypeDefaultDescription
columnsinteger0 Specifies the number of available cells in a row. Default 0 value specifies 1 row and unlimited cell columns.
topinteger0 The border gap from the top. It specifies the space that the panel must leave.
leftinteger0 The blank space from the left.
bottominteger0 The blank space from the bottom.
rightinteger0 The blank space from the right.
gapinteger0 The horizontal and vertical gap between components.
name, enabled, visible, tooltip, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component

Copyright © 2002 Robert Bajzat - info@thinlet.com - All rights reserved.