Roman Kennke wrote:
I removed the start dialog from the Swing demo and replaced it with a new
menu, called 'Themes' which allows the user to switch themes. ATM
there are only 2 themes (the 2 official ones: the DefaultMetalTheme, or
'Steel', and the JDK5 OceanTheme).
Great! I wanted to try this out, but the Demo currently gives me this
exception before I see the main window come up:
[EMAIL PROTECTED] ~/classpath-cvs/classpath/examples $ jamvm -classpath
examples.zip gnu.classpath.examples.swing.Demo
Exception during event dispatch:
java.lang.NullPointerException
at
javax.swing.plaf.basic.BasicToolBarUI$PropertyListener.propertyChange
(BasicToolBarUI.java:1233)
at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:388)
at java.beans.PropertyChangeSupport.firePropertyChange
(PropertyChangeSupport.java:366)
at java.awt.Component.firePropertyChange (Component.java:4476)
at javax.swing.JComponent.firePropertyChange (JComponent.java:805)
at javax.swing.JToolBar.setRollover (JToolBar.java:510)
at javax.swing.plaf.metal.MetalToolBarUI.installUI
(MetalToolBarUI.java:243)
at javax.swing.JComponent.setUI (JComponent.java:2580)
at javax.swing.JToolBar.setUI (JToolBar.java:476)
at javax.swing.JToolBar.updateUI (JToolBar.java:484)
at javax.swing.SwingUtilities.updateComponentTreeUIImpl
(SwingUtilities.java:629)
at javax.swing.SwingUtilities.updateComponentTreeUIImpl
(SwingUtilities.java:640)
at javax.swing.SwingUtilities.updateComponentTreeUIImpl
(SwingUtilities.java:640)
at javax.swing.SwingUtilities.updateComponentTreeUIImpl
(SwingUtilities.java:640)
at javax.swing.SwingUtilities.updateComponentTreeUIImpl
(SwingUtilities.java:640)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:603)
at gnu.classpath.examples.swing.Demo.<init> (Demo.java:697)
at gnu.classpath.examples.swing.Demo$LaterMain.run (Demo.java:706)
at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:200)
at java.awt.EventQueue.dispatchEvent (EventQueue.java:465)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)
Regards,
Dave