MASON-INTEREST-L Archives

September 2006

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ryan Kadomoto <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Fri, 22 Sep 2006 14:43:24 -1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (94 lines)
Sean,
I'm not entirely sure, but I think I saw my image, once or twice when I ran
it the other way (with the ImagePortrayal3D).  But it looked like the width
was set to 1.  That, along with the error message below leads me to believe
the image width is not set correctly.  I'm not sure how to fix that.

I put in the code to do the setBackdrop.  The error message is below:

=====================================================================
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
Width (-1) and height (200) cannot be <= 0
        at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorMo
del.java:999)

        at
sun.awt.Win32GraphicsConfig.createCompatibleImage(Win32GraphicsConfig.java:1
29)
        at
sim.display3d.Display3D.rebuildAuxillarySwitch(Display3D.java:642)
        at sim.display3d.Display3D.createSceneGraph(Display3D.java:901)
        at
com.referentia.mauve.MauveModelwithUI.setupPortrayals(MauveModelwithUI.java:
107)
        at
com.referentia.mauve.MauveModelwithUI.start(MauveModelwithUI.java:94)
        at sim.display.Console.startSimulation(Console.java:1296)
        at sim.display.Console.pressPlay(Console.java:2056)
        at sim.display.Console$2.actionPerformed(Console.java:305)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
20)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
.java:234)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



-----Original Message-----
From: MASON Multiagent Simulation Toolkit
[mailto:[log in to unmask]] On Behalf Of Sean Luke
Sent: Friday, September 22, 2006 2:26 PM
To: [log in to unmask]
Subject: Re: MASON-INTEREST-L Digest - 17 Sep 2006 to 21 Sep 2006 (#2006-56)

On Sep 22, 2006, at 5:14 PM, Ryan Kadomoto wrote:

> I tried the setBackdrop on the Display3D, but it didn't work quite  
> right.
> If I use setBackdrop(image, true), it renders the graphic as a sphere.
> If I use setBackdrop(image, false), it gives me an error.
> (java.lang.IllegalArgumentException: Width (-1) and height (200)  
> cannot be
> <= 0)

Ryan, this last statement is the one of particular concern to me.   
I've just tested again and have no problems with setBackdrop.  Can  
you provide the full backtrace that came with this exception?

Sean

ATOM RSS1 RSS2