Hello,
unfortunately there seem to be bugs in the GUI of the hardware simulator, but maybe it's also a bug in fucking old AWT.
kuli@ares:~/tecs/projects/05$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
kuli@ares:~/tecs/projects/05$ Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.BufferStrategyPaintManager.flushAccumulatedRegion(BufferStrategyPaintManager.java:399)
at javax.swing.BufferStrategyPaintManager.endPaint(BufferStrategyPaintManager.java:363)
at javax.swing.RepaintManager.endPaint(RepaintManager.java:1288)
at javax.swing.JComponent._paintImmediately(JComponent.java:5078)
at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
... after running ComputerRect.test
I think the problem is that there is an invalid thread access to awt/swing components (swing is not thread save). See also:
http://www.mail-archive.com/java2d-interest@capra.eng.sun.com/msg05135.htmlbest regards,
uli