public class StandardFormats
extends java.lang.Object
Constructor and Description |
---|
StandardFormats() |
Modifier and Type | Method and Description |
---|---|
static void |
addGridBagElement(java.awt.Component component,
java.awt.GridBagLayout layout,
java.awt.GridBagConstraints constr,
java.awt.Container parent)
Adds the given component to the container using the given layout and constraints.
|
static java.awt.GridBagConstraints |
getBottomContstraint()
Returns a constraint which can be e.g.
|
static java.text.NumberFormat |
getDoubleFormat()
Returns the standard format for doubles (e.g.
|
static java.text.NumberFormat |
getIntegerFormat()
Returns the standard format for integers (e.g.
|
static java.awt.GridBagConstraints |
getNewLineConstraint()
Returns a constraint which can be e.g.
|
public static java.text.NumberFormat getDoubleFormat()
public static java.text.NumberFormat getIntegerFormat()
public static java.awt.GridBagConstraints getNewLineConstraint()
public static java.awt.GridBagConstraints getBottomContstraint()
public static void addGridBagElement(java.awt.Component component, java.awt.GridBagLayout layout, java.awt.GridBagConstraints constr, java.awt.Container parent)
component
- the component to add.layout
- the respective layout of the container.constr
- the constraints with which the component should be added.parent
- the container to which the element should be added.