Package javaforce.awt
Class JFLayoutStyle
java.lang.Object
javax.swing.LayoutStyle
javaforce.awt.JFLayoutStyle
Provides a uniform layout style.
To use in ctor:
public myComponent {
initComponents();
GroupLayout layout = (GroupLayout)getLayout();
layout.setLayoutStyle(new JFLayoutStyle(1));
}
- Author:
- pquiring
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.LayoutStyle
LayoutStyle.ComponentPlacement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetContainerGap(JComponent component, int position, Container parent) intgetPreferredGap(JComponent component1, JComponent component2, LayoutStyle.ComponentPlacement type, int position, Container parent) Methods inherited from class javax.swing.LayoutStyle
getInstance, setInstance
-
Constructor Details
-
JFLayoutStyle
public JFLayoutStyle(int size)
-
-
Method Details
-
getPreferredGap
public int getPreferredGap(JComponent component1, JComponent component2, LayoutStyle.ComponentPlacement type, int position, Container parent) - Specified by:
getPreferredGapin classLayoutStyle
-
getContainerGap
- Specified by:
getContainerGapin classLayoutStyle
-