org.norvelle.textcite.gui
Class GUIUtils
java.lang.Object
org.norvelle.textcite.gui.GUIUtils
public class GUIUtils
- extends java.lang.Object
GUIUtils Provides a number of utility methods for managing the GUI aspects of
the TextCite application. Utility functions for handling the data model are
found in the Utils class
- Author:
- Erik Norvelle
- See Also:
Utils
Method Summary |
static void |
centerWindow(javax.swing.JDialog dialog)
|
static void |
centerWindow(javax.swing.JFrame frame)
|
static boolean |
saveCurrentCitebook()
A handy method for asking the user whether or not the current CiteBook
should be saved before proceeding |
static void |
setUIFont(javax.swing.plaf.FontUIResource f)
sets the default font for all Swing components. ex. setUIFont (new
javax.swing.plaf.FontUIResource ("Serif",Font.ITALIC,12)); |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUIUtils
public GUIUtils()
centerWindow
public static void centerWindow(javax.swing.JFrame frame)
centerWindow
public static void centerWindow(javax.swing.JDialog dialog)
saveCurrentCitebook
public static boolean saveCurrentCitebook()
- A handy method for asking the user whether or not the current CiteBook
should be saved before proceeding
- Returns:
- True if the user wants to save the Citebook.
setUIFont
public static void setUIFont(javax.swing.plaf.FontUIResource f)
- sets the default font for all Swing components. ex. setUIFont (new
javax.swing.plaf.FontUIResource ("Serif",Font.ITALIC,12));