当在具有 GTK 外观的 Linux 上运行 UGS 平台时,我得到了这个堆栈跟踪并且没有显示 Jog 面板。使用选项 -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel 运行 WidgetPreview 时也可能重现该错误
Exception in thread "main" java.lang.StackOverflowError
at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:216)
at java.awt.Component.hasFocus(Component.java:8033)
at java.awt.Component.isFocusOwner(Component.java:8046)
at javax.swing.plaf.synth.SynthLookAndFeel.getComponentState(SynthLookAndFeel.java:217)
at javax.swing.plaf.synth.SynthSpinnerUI.getContext(SynthSpinnerUI.java:277)
at javax.swing.plaf.synth.SynthDefaultLookup.getDefault(SynthDefaultLookup.java:42)
at sun.swing.DefaultLookup.get(DefaultLookup.java:125)
at sun.swing.DefaultLookup.getBoolean(DefaultLookup.java:161)
at javax.swing.plaf.basic.BasicSpinnerUI$Handler.stateChanged(BasicSpinnerUI.java:1053)
at javax.swing.JSpinner.fireStateChanged(JSpinner.java:458)
at javax.swing.JSpinner$ModelListener.stateChanged(JSpinner.java:386)
at javax.swing.AbstractSpinnerModel.fireStateChanged(AbstractSpinnerModel.java:119)
at javax.swing.SpinnerNumberModel.setStepSize(SpinnerNumberModel.java:302)
at com.willwinder.universalgcodesender.uielements.jog.StepSizeSpinnerModel.getNextValue(StepSizeSpinnerModel.java:46)
at javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:497)
at javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:481)
at javax.swing.plaf.basic.BasicSpinnerUI.access$200(BasicSpinnerUI.java:50)
at javax.swing.plaf.basic.BasicSpinnerUI$Handler.stateChanged(BasicSpinnerUI.java:1057)
at javax.swing.JSpinner.fireStateChanged(JSpinner.java:458)
at javax.swing.JSpinner$ModelListener.stateChanged(JSpinner.java:386)
at javax.swing.AbstractSpinnerModel.fireStateChanged(AbstractSpinnerModel.java:119)
at javax.swing.SpinnerNumberModel.setStepSize(SpinnerNumberModel.java:302)
at com.willwinder.universalgcodesender.uielements.jog.StepSizeSpinnerModel.getPreviousValue(StepSizeSpinnerModel.java:61)
at javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:501)
at javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:481)
at javax.swing.plaf.basic.BasicSpinnerUI.access$200(BasicSpinnerUI.java:50)
at javax.swing.plaf.basic.BasicSpinnerUI$Handler.stateChanged(BasicSpinnerUI.java:1057)
at javax.swing.JSpinner.fireStateChanged(JSpinner.java:458)
at javax.swing.JSpinner$ModelListener.stateChanged(JSpinner.java:386)
at javax.swing.AbstractSpinnerModel.fireStateChanged(AbstractSpinnerModel.java:119)
at javax.swing.SpinnerNumberModel.setStepSize(SpinnerNumberModel.java:302)
at com.willwinder.universalgcodesender.uielements.jog.StepSizeSpinnerModel.getNextValue(StepSizeSpinnerModel.java:46)
at javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:497)
at javax.swing.plaf.basic.BasicSpinnerUI.updateEnabledState(BasicSpinnerUI.java:481)
当在具有 GTK 外观的 Linux 上运行 UGS 平台时,我得到了这个堆栈跟踪并且没有显示 Jog 面板。使用选项 -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel 运行 WidgetPreview 时也可能重现该错误