changeset 4671:4471ea791dc8

7130935: [macosx] Still, JSpinner 4656590 regression Reviewed-by: swingler
author alexp
date Mon, 23 Jan 2012 17:56:06 +0400
parents e4d37d63e6dd
children 69df1cdfa87f
files src/macosx/classes/com/apple/laf/AquaSpinnerUI.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/com/apple/laf/AquaSpinnerUI.java	Mon Jan 23 10:23:50 2012 +0000
+++ b/src/macosx/classes/com/apple/laf/AquaSpinnerUI.java	Mon Jan 23 17:56:06 2012 +0400
@@ -208,6 +208,9 @@
         }
 
         final JFormattedTextField editorTextField = ((DefaultEditor)editor).getTextField();
+        if (editorTextField.getFont() instanceof UIResource) {
+            editorTextField.setFont(spinner.getFont());
+        }
         final InputMap spinnerInputMap = getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
         final InputMap editorInputMap = editorTextField.getInputMap();
         final KeyStroke[] keys = spinnerInputMap.keys();