IAmJordanX / seaglass

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

Theme is giving some exceptions #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.By just compiling it
2.Selecting any component of swing except menus(not menu items).

What is the expected output? What do you see instead?
The Windows borders should not be there.

What version of the product are you using? On what operating system?
version 0.1.6 on Windows 7

Please provide any additional information below.
It gives me this error 
java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

Original issue reported on code.google.com by vulture...@gmail.com on 7 Feb 2010 at 5:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
by stack trace it got these errors

java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
        at 
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.
java:
999)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:340)
        at 
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBIBackBuffer(Translu
centW
indowPainter.java:184)
        at 
sun.awt.windows.TranslucentWindowPainter$BIWindowPainter.getBackBuffer(Transluce
ntWin
dowPainter.java:192)
        at 
sun.awt.windows.TranslucentWindowPainter.updateWindow(TranslucentWindowPainter.j
ava:1
31)
        at sun.awt.windows.WWindowPeer.updateWindow(WWindowPeer.java:644)
        at sun.awt.windows.WWindowPeer.setOpaque(WWindowPeer.java:631)
        at java.awt.Window.applyOpaque(Window.java:3299)
        at java.awt.Window.addNotify(Window.java:652)
        at java.awt.Frame.addNotify(Frame.java:469)
        at java.awt.FileDialog.addNotify(FileDialog.java:262)
        at java.awt.Dialog.conditionalShow(Dialog.java:891)
        at java.awt.Dialog.show(Dialog.java:1035)
        at Musique.init(Musique.java:34)
        at TaskPanel.actionPerformed(TaskPanel.java:44)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:236
)
        at java.awt.Component.processMouseEvent(Component.java:6134)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5899)
        at java.awt.Container.processEvent(Container.java:2023)
        at java.awt.Component.dispatchEventImpl(Component.java:4501)
        at java.awt.Container.dispatchEventImpl(Container.java:2081)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4299)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3963)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3893)
        at java.awt.Container.dispatchEventImpl(Container.java:2067)
        at java.awt.Window.dispatchEventImpl(Window.java:2458)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284
)
        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)

Original comment by vulture...@gmail.com on 7 Feb 2010 at 6:07

GoogleCodeExporter commented 9 years ago
What version of Java are you using?

Original comment by kahuxtable on 7 Feb 2010 at 2:33

GoogleCodeExporter commented 9 years ago
Jdk version 6 update 11.

Original comment by vulture...@gmail.com on 8 Feb 2010 at 3:08

GoogleCodeExporter commented 9 years ago
should I update it to 17?

Original comment by vulture...@gmail.com on 8 Feb 2010 at 3:11

GoogleCodeExporter commented 9 years ago
Why don't you try that? I'd be very interested to know if we should update our 
minimum JRE requirements.

Original comment by kahuxtable on 8 Feb 2010 at 3:15

GoogleCodeExporter commented 9 years ago
ok

Original comment by vulture...@gmail.com on 8 Feb 2010 at 3:39

GoogleCodeExporter commented 9 years ago
Ok it has now stopped giving errors but it still doesn't look proper. Int the 
code I 
specified Windows to be undecorated and the manubar and toolbar are 
transparent. 
I get this:
http://img709.imageshack.us/img709/383/probz.jpg

Original comment by vulture...@gmail.com on 8 Feb 2010 at 4:09

GoogleCodeExporter commented 9 years ago
Well, if we draw our own title bar, and we do, the only way to do that is for 
Sea Glass to specify undecorated. 
So ours is essentially overriding yours. You might be able to get the behavior 
you want by using a JWindow 
instead of a JFrame.

I'm going to close the initial bug report and say that we require update 17.

Let me know via email or a comment on the Sea Glass threads on my blog (say, 
http://www.kathrynhuxtable.org/blog/2009/12/31/sea-glass-look-and-feel-0-1-3-is-
released/) what 
you find.

Original comment by kahuxtable on 8 Feb 2010 at 4:17

GoogleCodeExporter commented 9 years ago
It's actually 18 and can I add you in my Gtalk buddies?

Original comment by vulture...@gmail.com on 8 Feb 2010 at 4:20

GoogleCodeExporter commented 9 years ago
But the Menubar and the toolbar are still transperant.....

Original comment by vulture...@gmail.com on 8 Feb 2010 at 4:24

GoogleCodeExporter commented 9 years ago
Yes, we set them that way so that the root pane can show through. Set your own 
background color on them and 
they'll be fine.

Original comment by kahuxtable on 8 Feb 2010 at 4:25

GoogleCodeExporter commented 9 years ago
ok

Original comment by vulture...@gmail.com on 9 Feb 2010 at 4:27