|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.hunsicker.swing.util.SwingHelper
UI related helper functions.
Method Summary | |
static javax.swing.JButton |
createButton(java.lang.String text)
Creates a new button with the given text. |
static javax.swing.JButton |
createButton(java.lang.String text,
boolean parse)
Creates a new button with the given text. |
static java.awt.Frame |
getOwnerFrame(java.awt.Component component)
Returns the frame that contains the given component. |
static int |
getTableHeight(javax.swing.JTable table)
Returns the visual height of the given table. |
static java.awt.GridBagConstraints |
setConstraints(java.awt.GridBagConstraints constraints,
int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
java.awt.Insets insets,
int ipadx,
int ipady)
Sets the constraints for the given constraints object. |
static void |
setMenuText(javax.swing.AbstractButton item,
java.lang.String text,
boolean useMnemonic)
DOCUMENT ME! |
static int |
showJFileChooser(javax.swing.JFileChooser chooser,
java.awt.Component parent,
java.lang.String approveButtonText)
Displays the given file chooser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.awt.GridBagConstraints setConstraints(java.awt.GridBagConstraints constraints, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, java.awt.Insets insets, int ipadx, int ipady)
constraints
- the constraints object to initialize.gridx
- the initial gridx value.gridy
- the initial gridy value.gridwidth
- the initial gridwidth value.gridheight
- the initial gridheight value.weightx
- the initial weightx value.weighty
- the initial weighty value.anchor
- the initial anchor value.fill
- the initial fill value.insets
- the initial insets value.ipadx
- the initial ipadx value.ipady
- the initial ipady value.
public static void setMenuText(javax.swing.AbstractButton item, java.lang.String text, boolean useMnemonic)
item
- DOCUMENT ME!text
- DOCUMENT ME!useMnemonic
- DOCUMENT ME!public static java.awt.Frame getOwnerFrame(java.awt.Component component)
component
- component.
null
if there is
no parent frame.public static int getTableHeight(javax.swing.JTable table)
table
- the table.
public static javax.swing.JButton createButton(java.lang.String text, boolean parse)
text
- DOCUMENT ME!parse
- DOCUMENT ME!
public static javax.swing.JButton createButton(java.lang.String text)
text
- DOCUMENT ME!
public static final int showJFileChooser(javax.swing.JFileChooser chooser, java.awt.Component parent, java.lang.String approveButtonText)
JFileChooser.showDialog(java.awt.Component, java.lang.String)
.
chooser
- the file chooser to display.parent
- the parent window.approveButtonText
- the text for the approve button.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |