eu.vexpro.editor.util
Class WindowUtilities

java.lang.Object
  extended by eu.vexpro.editor.util.WindowUtilities

public class WindowUtilities
extends java.lang.Object

A few utilities that simplify using windows in Swing. 1998-99 Marty Hall, http://www.apl.jhu.edu/~hall/java/ Modifikatsioon 2008-2010, Kristjan Kuusik, kristjn.k@gmail.com


Constructor Summary
WindowUtilities()
           
 
Method Summary
static javax.swing.border.Border getTextFieldBorder()
          Tagastab borderi, mida kasutatakse teksti väljade korral.
static javax.swing.JDialog openDialog(javax.swing.JFrame owner, java.lang.String title, java.awt.Container content)
          Dialoogi avamine.
static void setJavaLookAndFeel()
           
static void setMotifLookAndFeel()
           
static void setNativeLookAndFeel()
          Tell system to use native look and feel, as in previous releases.
static void startWaitCursor(javax.swing.JComponent component)
          Sets cursor for specified component to Wait cursor
static void stopWaitCursor(javax.swing.JComponent component)
          Sets cursor for specified component to normal cursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowUtilities

public WindowUtilities()
Method Detail

setNativeLookAndFeel

public static void setNativeLookAndFeel()
Tell system to use native look and feel, as in previous releases. Metal (Java) LAF is the default otherwise.


setJavaLookAndFeel

public static void setJavaLookAndFeel()

setMotifLookAndFeel

public static void setMotifLookAndFeel()

openDialog

public static javax.swing.JDialog openDialog(javax.swing.JFrame owner,
                                             java.lang.String title,
                                             java.awt.Container content)
Dialoogi avamine.

Parameters:
owner - JFrame, mis omab dialoogi
title - dialoogi tiitel
content - dialoogi sisu
Returns:

startWaitCursor

public static void startWaitCursor(javax.swing.JComponent component)
Sets cursor for specified component to Wait cursor


stopWaitCursor

public static void stopWaitCursor(javax.swing.JComponent component)
Sets cursor for specified component to normal cursor


getTextFieldBorder

public static javax.swing.border.Border getTextFieldBorder()
Tagastab borderi, mida kasutatakse teksti väljade korral.

Returns: