| java.lang.Object de.fho.jump.pirol.utilities.apiTools.ToolToMakeYourLifeEasier de.fho.jump.pirol.ui.tools.DialogTools
DialogTools | public class DialogTools extends ToolToMakeYourLifeEasier (Code) | | author: Ole Rahn, Stefan Ostermann, Carsten Schulze author:
author: FH Osnabrück - University of Applied Sciences Osnabrück author: Project PIROL 2005 author: Daten- und Wissensmanagement since: 1.2: changed by Stefan Ostermann at 2005-04-26: added method to return localized since: string of a double value. since: 1.3 changed by Carsten Schulze at 2005-05-22: added a method to since: center a given AWT-Window (or subclasses) on the screen. version: $Rev: 856 $ |
centerOnScreen | public static void centerOnScreen(Window window)(Code) | | This method centers the window (or subclasses of it) on the screen.
Parameters: window - the java.awt.Window (or a subclass of it) that should be displayed in the middle of the screen. |
getPanelWithLabels | public static JPanel getPanelWithLabels(String text, int charsPerLine)(Code) | | This method creates a JPanel with several JLabels on it. For another
method to display multiline bold text, have a look at the
{javax.swing.JTextArea} and the
java.awt.Font object.
Parameters: text - the text to split up into some JLabels. Parameters: charsPerLine - the maximum number of characters per line text. the panel with the labels on it. |
setMaximumHeight | public static void setMaximumHeight(JComponent component, int height)(Code) | | |
setMaximumWidth | public static void setMaximumWidth(JComponent component, int width)(Code) | | |
setPreferedHeight | public static void setPreferedHeight(JComponent component, int height)(Code) | | Sets the prefered height of an JComponent and keeps it prefered height.
Parameters: component - the component to alter Parameters: height - the new prefered width |
setPreferedWidth | public static void setPreferedWidth(JComponent component, int width)(Code) | | Sets the prefered width of an JComponent and keeps it prefered height.
Parameters: component - the component to alter Parameters: width - the new prefered width |
|
|