开源改变世界!!

在 Ubuntu 上运行 GTK 外观时的 StackOverflow #637

推推 grbl 2年前 (2023-01-26) 176次浏览
关闭
布雷勒 打开了这个问题 2017 年 5 月 1 日 · 0 条评论
关闭

在 Ubuntu 上运行 GTK 外观时的 StackOverflow#637

布雷勒 打开了这个问题 2017 年 5 月 1 日 · 0 条评论

注释

在 Ubuntu 上运行 GTK 外观时的 StackOverflow #637
合作者

当在具有 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)