Hello
I'm trying to run OM under the Substance 5 LAF but I get the following
error:
org.jvnet.substance.api.UiThreadingViolationException: Component
creation must be done on Event Dispatch Thread
at
org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:2322)
at
org.jvnet.substance.SubstanceSeparatorUI.createUI(SubstanceSeparatorUI.java:53)
at sun.reflect.GeneratedMethodAccessor30.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:1012)
at javax.swing.JSeparator.updateUI(JSeparator.java:122)
at javax.swing.JSeparator.<init>(JSeparator.java:89)
at javax.swing.JSeparator.<init>(JSeparator.java:70)
at com.bbn.openmap.gui.LayersMenu.setLayers(LayersMenu.java:268)
at com.bbn.openmap.gui.LayersMenu.setLayers(LayersMenu.java:242)
at com.bbn.openmap.event.LayerSupport.fireLayer(LayerSupport.java:91)
at
com.bbn.openmap.event.LayerSupport$SetLayerRunnable.doIt(LayerSupport.java:176)
at
com.bbn.openmap.event.LayerSupport$SetLayerRunnable.run(LayerSupport.java:168)
at java.lang.Thread.run(Thread.java:619)
If I run with openmap.synchronousThreading=true the problem disappears.
Is there a way to make LayersMenu create the Swing comps. in the EDT and
still run openmap.synchronousThreading=false.
Also, I think it is a bug that the Swing comps can be created outside
the EDT?
BR
Carsten
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Feb 04 2009 - 03:36:10 EST