Java 类javax.swing.plaf.basic.BasicSpinnerUI 实例源码

项目:Java-Planetarium    文件:TimeMenu.java   
void disableArrows(JSpinner spinner){
    spinner.setUI(new BasicSpinnerUI() {
        protected Component createNextButton() {
            return null;
        }

        protected Component createPreviousButton() {
            return null;
        }
    });
}
项目:Java-Planetarium    文件:TimeMenu.java   
void disableArrows(JSpinner spinner){
    spinner.setUI(new BasicSpinnerUI() {
        protected Component createNextButton() {
            return null;
        }

        protected Component createPreviousButton() {
            return null;
        }
    });
}
项目:java-swing-tips    文件:MainPanel.java   
@Override public void updateUI() {
    super.updateUI();
    setUI(new BasicSpinnerUI() {
        @Override protected LayoutManager createLayout() {
            return new SpinnerLayout();
        }
    });
}