christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

Demos are failing on Windows - Java 6 #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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)

Original issue reported on code.google.com by surendra...@gmail.com on 6 Dec 2008 at 3:08

GoogleCodeExporter commented 8 years ago
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.

Original comment by kenneth....@gmail.com on 7 Dec 2008 at 3:21

GoogleCodeExporter commented 8 years ago

Original comment by kenneth....@gmail.com on 31 Dec 2008 at 6:12

GoogleCodeExporter commented 8 years ago
+1, have been looking for this fix for quite a while now. Anything I can do to 
help?

Original comment by list...@gmail.com on 9 Jan 2009 at 8:00

GoogleCodeExporter commented 8 years ago
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.

Original comment by kenneth....@gmail.com on 9 Jan 2009 at 11:07

GoogleCodeExporter commented 8 years ago
I haven't heard back from anyone, so I'll assume that the latest tests are 
working across platforms.

Original comment by kenneth....@gmail.com on 13 Jan 2009 at 12:35