Class WindowPrefs


  • public class WindowPrefs
    extends java.lang.Object
    A class to save windows position and size in preference using java Preference API.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String KEY  
      private java.util.prefs.Preferences pref  
    • Constructor Summary

      Constructors 
      Constructor Description
      WindowPrefs​(java.lang.Class className)  
    • Field Detail

      • pref

        private final java.util.prefs.Preferences pref
    • Constructor Detail

      • WindowPrefs

        public WindowPrefs​(java.lang.Class className)
    • Method Detail

      • setBounds

        public void setBounds​(java.awt.Rectangle rect)
      • getBounds

        public java.awt.Rectangle getBounds()
      • setDividerLocation

        public void setDividerLocation​(int divider)
      • getDividerLocation

        public int getDividerLocation()
      • setExtendedState

        public void setExtendedState​(int extendedState)
      • getExtendedState

        public int getExtendedState()