Class SwingUtil


  • public class SwingUtil
    extends java.lang.Object
    Description: Misc. functions to make swing programming easier.
    • Constructor Summary

      Constructors 
      Constructor Description
      SwingUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addField​(int x, int y, java.util.ResourceBundle res, java.awt.Container cont, java.lang.String labelKey, java.awt.Component component)  
      static void fadeIn​(com.moneydance.apps.md.view.gui.SecondaryDialog dialog, int milliseconds)  
      static void fadeOut​(java.awt.Window window, int milliseconds)  
      static float getOpacity​(java.awt.Window window)  
      static javax.swing.JRootPane getRootPane​(java.awt.Container comp)
      Find the top level JRootPane of the given JComponent (or other Container)
      static void setOpacity​(java.awt.Window window, float opacity)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hudBorderColor

        public static java.awt.Color hudBorderColor
      • hudFGColor

        public static java.awt.Color hudFGColor
      • hudBorderStroke

        public static java.awt.Stroke hudBorderStroke
    • Constructor Detail

      • SwingUtil

        public SwingUtil()
    • Method Detail

      • addField

        public static final void addField​(int x,
                                          int y,
                                          java.util.ResourceBundle res,
                                          java.awt.Container cont,
                                          java.lang.String labelKey,
                                          java.awt.Component component)
      • getRootPane

        public static javax.swing.JRootPane getRootPane​(java.awt.Container comp)
        Find the top level JRootPane of the given JComponent (or other Container)
      • fadeIn

        public static void fadeIn​(com.moneydance.apps.md.view.gui.SecondaryDialog dialog,
                                  int milliseconds)
      • fadeOut

        public static void fadeOut​(java.awt.Window window,
                                   int milliseconds)
      • setOpacity

        public static void setOpacity​(java.awt.Window window,
                                      float opacity)
      • getOpacity

        public static float getOpacity​(java.awt.Window window)