moizhb / seaglass

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

setBackgound fails on java 7 under mac os x #98

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1.Place some combobox element into a form
2.Try to change selected element in runtime

Exception occurs: 
java.awt.IllegalComponentStateException: The frame is decorated
    at java.awt.Frame.setBackground(Frame.java:986)
    at com.seaglasslookandfeel.util.WindowUtils.makeWindowNonOpaque(WindowUtils.java:67)
    at com.seaglasslookandfeel.ui.SeaGlassPopupMenuUI.updateStyle(SeaGlassPopupMenuUI.java:85)
    at com.seaglasslookandfeel.ui.SeaGlassPopupMenuUI.propertyChange(SeaGlassPopupMenuUI.java:226)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
    at java.awt.Component.firePropertyChange(Component.java:8382)
    at javax.swing.JComponent.addNotify(JComponent.java:4744)
    at java.awt.Container.addNotify(Container.java:2769)
    at javax.swing.JComponent.addNotify(JComponent.java:4743)
    at java.awt.Container.addImpl(Container.java:1114)
    at javax.swing.JLayeredPane.addImpl(JLayeredPane.java:230)
    at java.awt.Container.add(Container.java:998)
    at javax.swing.PopupFactory$LightWeightPopup.show(PopupFactory.java:760)
    at javax.swing.JPopupMenu.getPopup(JPopupMenu.java:837)
    at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:786)
    at javax.swing.JPopupMenu.show(JPopupMenu.java:956)
    at com.seaglasslookandfeel.component.SeaGlassComboPopup.show(SeaGlassComboPopup.java:246)
    at javax.swing.plaf.basic.BasicComboPopup.togglePopup(BasicComboPopup.java:1128)
    at javax.swing.plaf.basic.BasicComboPopup$Handler.mousePressed(BasicComboPopup.java:825)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
    at java.awt.Component.processMouseEvent(Component.java:6502)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
    at java.awt.EventQueue.access$000(EventQueue.java:102)
    at java.awt.EventQueue$3.run(EventQueue.java:662)
    at java.awt.EventQueue$3.run(EventQueue.java:660)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:676)
    at java.awt.EventQueue$4.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

version: 0.2
os: os x 10.8.2
jre: 1.7.0_05

Original issue reported on code.google.com by alex.v.i...@gmail.com on 17 Feb 2013 at 1:27

GoogleCodeExporter commented 9 years ago
The problem disappears after commenting out the mac-os specific code in 
WindowUtils.makeWindowNonOpaque

Original comment by alex.v.i...@gmail.com on 17 Feb 2013 at 1:29