Module java.desktop
Package javax.swing

Class JSpinner.ListEditor

    • Constructor Detail

      • ListEditor

        public ListEditor​(JSpinner spinner)
        Construct a JSpinner editor that supports displaying and editing the value of a SpinnerListModel with a JFormattedTextField. ThisListEditor becomes both a ChangeListener on the spinner and a PropertyChangeListener on the new JFormattedTextField.
        Parameters:
        spinner - the spinner whose model this editor will monitor
        Throws:
        IllegalArgumentException - if the spinners model is not an instance of SpinnerListModel
        See Also:
        getModel(), SpinnerListModel

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部