My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 33: Demos are failing on Windows - Java 6
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  kenneth.orr
Closed:  Jan 2009
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by surendra.gade, Dec 05, 2008
Several demos are throwing exceptions on Windows XP and Vista. Java version
is 1.6.0_10.

I tried with the latest version - 0.9.3.1.

java -classpath forms-1.2.1.jar;mac_widgets.jar;.
com.expldingpixels.macwidgets.DPreferencesTabBar

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Widt
 (-1) and height (-1) cannot be <= 0
        at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unkno
n Source)
        at java.awt.image.BufferedImage.<init>(Unknown Source)
        at com.explodingpixels.macwidgets.plaf.UnifiedToolbarButtonUI.paintIcon
UnifiedToolbarButtonUI.java:47)
        at javax.swing.plaf.basic.BasicButtonUI.paint(Unknown Source)
        at com.explodingpixels.macwidgets.plaf.PreferencesTabBarButtonUI.paint(
referencesTabBarButtonUI.java:58)
        at javax.swing.plaf.ComponentUI.update(Unknown Source)
        at javax.swing.JComponent.paintComponent(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at javax.swing.JLayeredPane.paint(Unknown Source)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paintToOffscreen(Unknown Source)
        at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown
ource)
        at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
        at javax.swing.RepaintManager.paint(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
        at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
        at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
        at java.awt.Container.paint(Unknown Source)
        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
        at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unkno
n Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Widt
 (-1) and height (-1) cannot be <= 0
        at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unkno
n Source)
        at java.awt.image.BufferedImage.<init>(Unknown Source)
        at com.explodingpixels.macwidgets.plaf.UnifiedToolbarButtonUI.paintIcon
UnifiedToolbarButtonUI.java:47)
        at javax.swing.plaf.basic.BasicButtonUI.paint(Unknown Source)
        at com.explodingpixels.macwidgets.plaf.PreferencesTabBarButtonUI.paint(
referencesTabBarButtonUI.java:58)
        at javax.swing.plaf.ComponentUI.update(Unknown Source)
        at javax.swing.JComponent.paintComponent(Unknown Source)
Comment 1 by kenneth.orr, Dec 07, 2008
These demos are using icons specific to the Mac. I'll look at introducing icons to the code repository that can be 
used across platforms.
Status: Accepted
Comment 2 by kenneth.orr, Dec 31, 2008
(No comment was entered for this change.)
Owner: kenneth.orr
Comment 3 by list.rb, Jan 09, 2009
+1, have been looking for this fix for quite a while now. Anything I can do to help?
Comment 4 by kenneth.orr, Jan 09, 2009
I've removed all usages of NSImage://<image_name> from the demos. Please update your code via Subversion 
(or I can email you a jar) and verify the fix.
Status: Started
Comment 5 by kenneth.orr, Jan 12, 2009
I haven't heard back from anyone, so I'll assume that the latest tests are working across platforms.
Status: Fixed
Sign in to add a comment

Hosted by Google Code