gionata-bisciari / seaglass

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

JTextPane and JEditorPane don't work: InvocationTargetException #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a JFrame with a JTextPane or JEditorPane in it.
2. Set "SeaglassLookAndFeel" as look and feel in the UIManager
3. Start application.

What is the expected output? What do you see instead?
I want to see the JTextPane/JEditorPane. They appear, but this error message 
goes with it:
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at com.seaglass.SeaGlassLookAndFeel$LazyPainter.createValue(SeaGlassLookAndFeel.java:1538)
        at com.seaglass.SeaGlassStyle.getPainter(SeaGlassStyle.java:681)
        at com.seaglass.SeaGlassStyle.init(SeaGlassStyle.java:659)
        at com.seaglass.SeaGlassStyle.validate(SeaGlassStyle.java:449)
        at com.seaglass.SeaGlassStyle.getValues(SeaGlassStyle.java:1075)
        at com.seaglass.SeaGlassStyle.getInsets(SeaGlassStyle.java:705)
        at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:914)
        at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:284)
        at javax.swing.plaf.synth.SynthEditorPaneUI.updateStyle(SynthEditorPaneUI.java:114)
        at javax.swing.plaf.synth.SynthEditorPaneUI.installDefaults(SynthEditorPaneUI.java:72)
        at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:782)
        at javax.swing.plaf.basic.BasicEditorPaneUI.installUI(BasicEditorPaneUI.java:89)
        at javax.swing.plaf.synth.SynthTextPaneUI.installUI(SynthTextPaneUI.java:73)
        at javax.swing.JComponent.setUI(JComponent.java:651)
        at javax.swing.text.JTextComponent.setUI(JTextComponent.java:336)
        at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:346)
        at javax.swing.text.JTextComponent.<init>(JTextComponent.java:320)
        at javax.swing.JEditorPane.<init>(JEditorPane.java:195)
        at javax.swing.JTextPane.<init>(JTextPane.java:90)
        at SeaglassBug.initComponents(SeaglassBug.java:42)
        at SeaglassBug.<init>(SeaglassBug.java:29)
        at SeaglassBug$1.run(SeaglassBug.java:76)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(ImageIcon.java:155)
        at com.seaglass.painter.AbstractImagePainter.getImage(AbstractImagePainter.java:71)
        at com.seaglass.painter.AbstractImagePainter.<init>(AbstractImagePainter.java:55)
        at com.seaglass.painter.EditorPanePainter.<init>(EditorPanePainter.java:42)
        ... 34 more

What version of the product are you using? On what operating system? What
JRE version?
Seaglass: Version 0.1 (how do i get a more detailed version number?)
OS: Linux (Ubuntu 10.10)
Platform: JDK 1.6
Source/Binary Format: JDK 5

Developed and tested in NetBeans IDE.

Please provide any additional information below.
Attached the file.

Original issue reported on code.google.com by martin.c...@gmail.com on 10 Feb 2011 at 1:51

Attachments:

GoogleCodeExporter commented 8 years ago
This is an ancient version. We won't fix anything in it. Try version 0.1.7.3, 
available at http://seaglass.googlecode.com/svn/doc/downloads.html

Original comment by kahuxtable on 11 Feb 2011 at 12:05

GoogleCodeExporter commented 8 years ago
Thanks :).
Now, it works :).

Original comment by martin.c...@gmail.com on 11 Feb 2011 at 4:21