Java Doc for GUIUtils.java in  » Database-Client » executequery » org » underworldlabs » swing » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database Client » executequery » org.underworldlabs.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.underworldlabs.swing.GUIUtils

GUIUtils
public class GUIUtils (Code)
Simple of collection of GUI utility methods.
author:
   Takis Diakoumis
version:
   $Revision: 1.7 $




Method Summary
final public static  intdisplayConfirmCancelDialog(Component parent, String message)
    
final public static  intdisplayConfirmCancelErrorMessage(Component parent, String message)
    
final public static  intdisplayConfirmDialog(Component parent, String message)
    
final public static  voiddisplayErrorMessage(Component parent, String message)
    
public static  voiddisplayExceptionErrorDialog(Frame owner, String message, Throwable e)
     Displays the error dialog displaying the stack trace from a throws/caught exception.
final public static  voiddisplayInformationMessage(Component parent, String message)
    
final public static  StringdisplayInputMessage(Component parent, String title, String message)
    
final public static  voiddisplayWarningMessage(Component parent, String message)
    
final public static  intdisplayYesNoDialog(Component parent, String message, String title)
    
public static  ColorgetDefaultBorderColour()
     Convenience method for consistent border colour.
public static  PointgetLocationForDialog(Component component, Dimension dialogDim)
     Calculates and returns the centered position of a dialog with the specified size to be added to the desktop area.
public static  VectorgetSystemFonts()
     Returns the system font names within a collection.
public static  RectanglegetVisibleBoundsOnScreen(JComponent component)
     Returns the specified component's visible bounds within the screen.
public static  voidinvokeAndWait(Runnable runnable)
     Runs the specified runnable in the EDT using SwingUtilities.invokeAndWait(...).
public static  voidinvokeLater(Runnable runnable)
     Runs the specified runnable in the EDT using SwingUtilities.invokeLater(...).
public static  booleanisDefaultLookAndFeel()
     Returns whether the current applied look and feel is the EQ default look and feel (or the metal look with ocean theme).
public static  booleanisMetalLookAndFeel()
    
public static  voidrequestFocusInWindow(Component c)
     Executes requestFocusInWindow on the specified component using invokeLater.
public static  voidscheduleGC()
    
public static  voidshowNormalCursor(Component component)
     Sets the application cursor to the system normal cursor the specified component.
public static  voidshowWaitCursor(Component component)
     Sets the application cursor to the system wait cursor on the specified component.
public static  voidstartWorker(Runnable runnable)
     Executes the specified runnable using the SwingWorker.
public static  booleanusingOcean()
     Returns true if we're using the Ocean Theme under the MetalLookAndFeel.



Method Detail
displayConfirmCancelDialog
final public static int displayConfirmCancelDialog(Component parent, String message)(Code)



displayConfirmCancelErrorMessage
final public static int displayConfirmCancelErrorMessage(Component parent, String message)(Code)



displayConfirmDialog
final public static int displayConfirmDialog(Component parent, String message)(Code)



displayErrorMessage
final public static void displayErrorMessage(Component parent, String message)(Code)



displayExceptionErrorDialog
public static void displayExceptionErrorDialog(Frame owner, String message, Throwable e)(Code)
Displays the error dialog displaying the stack trace from a throws/caught exception.
Parameters:
  owner - - the owner of the dialog
Parameters:
  message - - the error message to display
Parameters:
  e - - the throwable



displayInformationMessage
final public static void displayInformationMessage(Component parent, String message)(Code)



displayInputMessage
final public static String displayInputMessage(Component parent, String title, String message)(Code)



displayWarningMessage
final public static void displayWarningMessage(Component parent, String message)(Code)



displayYesNoDialog
final public static int displayYesNoDialog(Component parent, String message, String title)(Code)



getDefaultBorderColour
public static Color getDefaultBorderColour()(Code)
Convenience method for consistent border colour. Actually aims to return the value from UIManager.getColor("controlShadow"). the system default border colour



getLocationForDialog
public static Point getLocationForDialog(Component component, Dimension dialogDim)(Code)
Calculates and returns the centered position of a dialog with the specified size to be added to the desktop area.
Parameters:
  the - component to center to
Parameters:
  the - size of the dialog to be added as aDimension object the Point at which to add the dialog



getSystemFonts
public static Vector getSystemFonts()(Code)
Returns the system font names within a collection. the system fonts names within a Vector object



getVisibleBoundsOnScreen
public static Rectangle getVisibleBoundsOnScreen(JComponent component)(Code)
Returns the specified component's visible bounds within the screen. the component's visible bounds as a Rectangle



invokeAndWait
public static void invokeAndWait(Runnable runnable)(Code)
Runs the specified runnable in the EDT using SwingUtilities.invokeAndWait(...). Note: This method 'supresses' the method's thrown exceptions - InvocationTargetException and InterruptedException.
Parameters:
  runnable - - the runnable to be executed



invokeLater
public static void invokeLater(Runnable runnable)(Code)
Runs the specified runnable in the EDT using SwingUtilities.invokeLater(...).
Parameters:
  runnable - - the runnable to be executed



isDefaultLookAndFeel
public static boolean isDefaultLookAndFeel()(Code)
Returns whether the current applied look and feel is the EQ default look and feel (or the metal look with ocean theme). true | false



isMetalLookAndFeel
public static boolean isMetalLookAndFeel()(Code)
Returns whether the current applied look and feel is the MetalLookAndFeel; true | false



requestFocusInWindow
public static void requestFocusInWindow(Component c)(Code)
Executes requestFocusInWindow on the specified component using invokeLater.
Parameters:
  c - - the component



scheduleGC
public static void scheduleGC()(Code)
Schedules the garbage collector to run



showNormalCursor
public static void showNormalCursor(Component component)(Code)
Sets the application cursor to the system normal cursor the specified component.
Parameters:
  component - - the component to set the cursor onto



showWaitCursor
public static void showWaitCursor(Component component)(Code)
Sets the application cursor to the system wait cursor on the specified component.
Parameters:
  component - - the component to set the cursor onto



startWorker
public static void startWorker(Runnable runnable)(Code)
Executes the specified runnable using the SwingWorker.
Parameters:
  runnable - - the runnable to be executed



usingOcean
public static boolean usingOcean()(Code)
Returns true if we're using the Ocean Theme under the MetalLookAndFeel.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.