Closed brad-eric closed 12 years ago
This is a dup of issue #1. Note that it is fixed in version 6.2, and will not be fixed in version 6.0.
Thanks a lot for your answer Shemnon ... I will use version 6.2 now. Good luck with Insubstantial. I am happy the project is reopened again.
I am using Substance look and feel version 6.0 in my Java Swing application. The application works fine for me, but some of the application users especially those using Windows 7 are getting a substance exception :
java.lang.InternalError: Unable to instantiate org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.colorchooser.ColorPalettesChooser at org.pushingpixels.substance.internal.ui.SubstanceColorChooserUI.createDefaultChoosers(SubstanceColorChooserUI.java) at org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.Quaqua13ColorChooserUI.orgpushingpixelssubstanceinternalcontribrandelshoferquaquaQuaqua13ColorChooserUIinstallUI(Quaqua13ColorChooserUI.java) at org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.Quaqua13ColorChooserUI.installUI(Quaqua13ColorChooserUI.java) at org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.Quaqua14ColorChooserUI.orgpushingpixelssubstanceinternalcontribrandelshoferquaquaQuaqua14ColorChooserUIinstallUI(Quaqua14ColorChooserUI.java) at org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.Quaqua14ColorChooserUI.installUI(Quaqua14ColorChooserUI.java) at org.pushingpixels.substance.internal.ui.SubstanceColorChooserUI.orgpushingpixelssubstanceinternaluiSubstanceColorChooserUI__installUI(SubstanceColorChooserUI.java) at org.pushingpixels.substance.internal.ui.SubstanceColorChooserUI.installUI(SubstanceColorChooserUI.java) at javax.swing.JComponent.setUI(Unknown Source) at javax.swing.JColorChooser.setUI(Unknown Source) at javax.swing.JColorChooser.updateUI(Unknown Source) at javax.swing.JColorChooser.(Unknown Source) at javax.swing.JColorChooser.(Unknown Source) at javax.swing.JColorChooser.(Unknown Source) at org.jdesktop.swingx.JXColorSelectionButton.getChooser(JXColorSelectionButton.java) at org.jdesktop.swingx.JXColorSelectionButton$1.propertyChange(JXColorSelectionButton.java) at java.beans.PropertyChangeSupport.fire(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source) at java.awt.Component.firePropertyChange(Unknown Source) at java.awt.Component.setBackground(Unknown Source) at javax.swing.JComponent.setBackground(Unknown Source) This exception occurs in the last line in this code :
JXColorSelectionButton myColorSelectionButton = new JXColorSelectionButton();
myColorSelectionButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); myColorSelectionButton.setFocusPainted(false); contentPane.add(myColorSelectionButton, cc.xy(29, 19)); /**
Any idea why is that thrown (Sometimes) ?