Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setBackgound fails on java 7 under mac os x #98

Open
GoogleCodeExporter opened this issue Jul 12, 2015 · 1 comment
Open

setBackgound fails on java 7 under mac os x #98

GoogleCodeExporter opened this issue Jul 12, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 17 Feb 2013 at 1:27

@GoogleCodeExporter
Copy link
Author

The problem disappears after commenting out the mac-os specific code in 
WindowUtils.makeWindowNonOpaque

Original comment by [email protected] on 17 Feb 2013 at 1:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant