类 JYearChooser

    • 字段详细资料

      • oldYear

        protected int oldYear
      • startYear

        protected int startYear
      • endYear

        protected int endYear
    • 构造器详细资料

      • JYearChooser

        public JYearChooser()
        Default JCalendar constructor.
    • 方法详细资料

      • setYear

        public void setYear​(int y)
        Sets the year. This is a bound property.
        参数:
        y - the new year
        另请参阅:
        getYear()
      • getYear

        public int getYear()
        Returns the year.
        返回:
        the year
      • setDayChooser

        public void setDayChooser​(JDayChooser dayChooser)
        Convenience method set a day chooser that might be updated directly.
        参数:
        dayChooser - the day chooser
      • getEndYear

        public int getEndYear()
        Returns the endy ear.
        返回:
        the end year
      • setEndYear

        public void setEndYear​(int endYear)
        Sets the end ear.
        参数:
        endYear - the end year
      • getStartYear

        public int getStartYear()
        Returns the start year.
        返回:
        the start year.
      • setStartYear

        public void setStartYear​(int startYear)
        Sets the start year.
        参数:
        startYear - the start year
      • main

        public static void main​(String[] s)
        Creates a JFrame with a JYearChooser inside and can be used for testing.
        参数:
        s - command line arguments