| javax.swing.JPanel org.netbeans.modules.junit.SizeRestrictedPanel
SizeRestrictedPanel | public class SizeRestrictedPanel extends JPanel (Code) | | Panel whose dimension can be restricted by its preferred size.
It is supposed to be used in containers using BoxLayout .
See Also: javax.swing.BoxLayout See Also: BoxLayout author: Marian Petras |
Constructor Summary | |
public | SizeRestrictedPanel() Creates a panel with flow layout, restricted in both directions. | public | SizeRestrictedPanel(boolean widthRestriction, boolean heightRestriction) Creates a panel with flow layout, with width and/or height restricted. | public | SizeRestrictedPanel(LayoutManager layoutMgr) Creates a panel with the specified layout manager and with size
restricted in both directions. | public | SizeRestrictedPanel(LayoutManager layoutMgr, boolean widthRestriction, boolean heightRestriction) Creates a panel with the specified layout manager and with width and/or
height restricted. |
SizeRestrictedPanel | public SizeRestrictedPanel()(Code) | | Creates a panel with flow layout, restricted in both directions.
|
SizeRestrictedPanel | public SizeRestrictedPanel(boolean widthRestriction, boolean heightRestriction)(Code) | | Creates a panel with flow layout, with width and/or height restricted.
Parameters: widthRestriction - whether the panel's width should be restricted Parameters: heightRestriction - whether the panel's height should be restricted |
SizeRestrictedPanel | public SizeRestrictedPanel(LayoutManager layoutMgr)(Code) | | Creates a panel with the specified layout manager and with size
restricted in both directions.
Parameters: layoutMgr - layout manager for this panel |
SizeRestrictedPanel | public SizeRestrictedPanel(LayoutManager layoutMgr, boolean widthRestriction, boolean heightRestriction)(Code) | | Creates a panel with the specified layout manager and with width and/or
height restricted.
Parameters: layoutMgr - layout manager for this panel Parameters: widthRestriction - whether the panel's width should be restricted Parameters: heightRestriction - whether the panel's height should be restricted |
getMaximumSize | public Dimension getMaximumSize()(Code) | | Returns maximum size of this panel.
The maximum size can be restricted in width, height or in both
directions, depending on parameters passed to the constructor.
dimension returned from original getMaximumSize() and then modified according to restrictions specifiedby the constructor's parameters |
|
|