使用substance皮肤出现的异常 org.pushingpixels.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:1921) at org.pushingpixels.substance.internal.ui.SubstancePanelUI.createUI(SubstancePanelUI.java:57) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createGlassPane(JRootPane.java:527) at javax.swing.JRootPane.<init>(JRootPane.java:347) at javax.swing.JFrame.createRootPane(JFrame.java:260) at javax.swing.JFrame.frameInit(JFrame.java:241) at javax.swing.JFrame.<init>(JFrame.java:164) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:23) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) UIDefaults.getUI() failed: createUI() failed for javax.swing.JPanel[,0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] java.lang.reflect.InvocationTargetException java.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createGlassPane(JRootPane.java:527) at javax.swing.JRootPane.<init>(JRootPane.java:347) at javax.swing.JFrame.createRootPane(JFrame.java:260) at javax.swing.JFrame.frameInit(JFrame.java:241) at javax.swing.JFrame.<init>(JFrame.java:164) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:23) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) org.pushingpixels.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:1921) at org.pushingpixels.substance.internal.ui.SubstancePanelUI.createUI(SubstancePanelUI.java:57) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createContentPane(JRootPane.java:502) at javax.swing.JRootPane.<init>(JRootPane.java:349) at javax.swing.JFrame.createRootPane(JFrame.java:260) at javax.swing.JFrame.frameInit(JFrame.java:241) at javax.swing.JFrame.<init>(JFrame.java:164) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:23) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) UIDefaults.getUI() failed: createUI() failed for javax.swing.JPanel[,0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] java.lang.reflect.InvocationTargetException java.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at javax.swing.JRootPane.createContentPane(JRootPane.java:502) at javax.swing.JRootPane.<init>(JRootPane.java:349) at javax.swing.JFrame.createRootPane(JFrame.java:260) at javax.swing.JFrame.frameInit(JFrame.java:241) at javax.swing.JFrame.<init>(JFrame.java:164) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:23) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) org.pushingpixels.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:1921) at org.pushingpixels.substance.internal.ui.SubstanceRootPaneUI.createUI(SubstanceRootPaneUI.java:202) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JRootPane.updateUI(JRootPane.java:465) at javax.swing.JRootPane.<init>(JRootPane.java:352) at javax.swing.JFrame.createRootPane(JFrame.java:260) at javax.swing.JFrame.frameInit(JFrame.java:241) at javax.swing.JFrame.<init>(JFrame.java:164) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:23) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) UIDefaults.getUI() failed: createUI() failed for javax.swing.JRootPane[,0,0,0x0,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=1,maximumSize=,minimumSize=,preferredSize=] java.lang.reflect.InvocationTargetException java.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JRootPane.updateUI(JRootPane.java:465) at javax.swing.JRootPane.<init>(JRootPane.java:352) at javax.swing.JFrame.createRootPane(JFrame.java:260) at javax.swing.JFrame.frameInit(JFrame.java:241) at javax.swing.JFrame.<init>(JFrame.java:164) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:23) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) org.pushingpixels.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:1921) at org.pushingpixels.substance.internal.ui.SubstanceButtonUI.createUI(SubstanceButtonUI.java:139) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243) at javax.swing.UIDefaults.getUI(UIDefaults.java:751) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JButton.updateUI(JButton.java:128) at javax.swing.AbstractButton.init(AbstractButton.java:2149) at javax.swing.JButton.<init>(JButton.java:118) at javax.swing.JButton.<init>(JButton.java:91) at com.org.xcs.safeTool.main.Demo.initComponets(Demo.java:48) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:27) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) UIDefaults.getUI() failed: createUI() failed for javax.swing.JButton[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=null,paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=测试,defaultCapable=true] java.lang.reflect.InvocationTargetException java.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:711) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:133) at javax.swing.UIDefaults.getUI(UIDefaults.java:757) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JButton.updateUI(JButton.java:128) at javax.swing.AbstractButton.init(AbstractButton.java:2149) at javax.swing.JButton.<init>(JButton.java:118) at javax.swing.JButton.<init>(JButton.java:91) at com.org.xcs.safeTool.main.Demo.initComponets(Demo.java:48) at com.org.xcs.safeTool.main.Demo.<init>(Demo.java:27) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:716) at com.org.xcs.safeTool.main.PanelOfPrivate$Task.doInBackground(PanelOfPrivate.java:1) at javax.swing.SwingWorker$1.call(SwingWorker.java:278) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:317) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)