< prev index next >

src/java.desktop/macosx/classes/com/apple/laf/AquaSpinnerUI.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 22,47 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package com.apple.laf; ! import java.awt.*; ! import java.awt.event.*; ! import java.beans.*; ! import java.text.*; import java.text.AttributedCharacterIterator.Attribute; import java.text.Format.Field; ! import java.util.*; ! ! import javax.swing.*; import javax.swing.JSpinner.DefaultEditor; ! import javax.swing.plaf.*; import javax.swing.text.InternationalFormatter; ! import apple.laf.*; ! import apple.laf.JRSUIConstants.*; ! import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingletonFromDefaultConstructor; /** * This is originally derived from BasicSpinnerUI, but they made everything --- 22,87 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package com.apple.laf; ! import java.awt.AWTEvent; ! import java.awt.Component; ! import java.awt.ComponentOrientation; ! import java.awt.Container; ! import java.awt.Dimension; ! import java.awt.FocusTraversalPolicy; ! import java.awt.Font; ! import java.awt.Graphics; ! import java.awt.Insets; ! import java.awt.KeyboardFocusManager; ! import java.awt.LayoutManager; ! import java.awt.Rectangle; ! import java.awt.event.ActionEvent; ! import java.awt.event.MouseEvent; ! import java.awt.event.MouseListener; ! import java.beans.PropertyChangeEvent; ! import java.beans.PropertyChangeListener; ! import java.text.AttributedCharacterIterator; import java.text.AttributedCharacterIterator.Attribute; + import java.text.CharacterIterator; + import java.text.DateFormat; + import java.text.Format; import java.text.Format.Field; ! import java.text.ParseException; ! import java.util.Calendar; ! import java.util.Map; ! ! import javax.swing.AbstractAction; ! import javax.swing.AbstractButton; ! import javax.swing.ActionMap; ! import javax.swing.ButtonModel; ! import javax.swing.InputMap; ! import javax.swing.JButton; ! import javax.swing.JComponent; ! import javax.swing.JFormattedTextField; ! import javax.swing.JSpinner; import javax.swing.JSpinner.DefaultEditor; ! import javax.swing.JTextField; ! import javax.swing.KeyStroke; ! import javax.swing.LookAndFeel; ! import javax.swing.SpinnerDateModel; ! import javax.swing.SwingConstants; ! import javax.swing.SwingUtilities; ! import javax.swing.UIManager; ! import javax.swing.plaf.ActionMapUIResource; ! import javax.swing.plaf.ComponentUI; ! import javax.swing.plaf.FontUIResource; ! import javax.swing.plaf.SpinnerUI; ! import javax.swing.plaf.UIResource; import javax.swing.text.InternationalFormatter; ! import apple.laf.JRSUIConstants.BooleanValue; ! import apple.laf.JRSUIConstants.Size; ! import apple.laf.JRSUIConstants.State; ! import apple.laf.JRSUIState; ! import apple.laf.JRSUIStateFactory; import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingletonFromDefaultConstructor; /** * This is originally derived from BasicSpinnerUI, but they made everything
*** 548,557 **** --- 588,599 ---- } if (bottom != null) { fBottomModel = bottom.getModel(); } + + setFocusable(false); } @Override public void paint(final Graphics g) { if (spinner.isOpaque()) {
< prev index next >