Class SwingUtil

java.lang.Object
com.moneydance.awt.SwingUtil

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

    Fields 
    Modifier and Type Field Description
    static java.awt.Color hudBorderColor  
    static java.awt.Stroke hudBorderStroke  
    static java.awt.Color hudFGColor  
  • Constructor Summary

    Constructors 
    Constructor Description
    SwingUtil()  
  • Method Summary

    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 Details

  • Constructor Details

  • Method Details

    • 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)