-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.2beta4
-
sparc
-
solaris_2.6
-
Verified
Stylepad text is broken on Solaris with JDK-1.2beta4-I. When you try to change text, either color or font, the exceptions below are thrown instead, and no text changes occur.
Steps to Reproduce:
0) Run Stylepad on Solaris with JDK-1.2beta4-I.
1) Hightlight some text.
2) Attempt to make it Red by selecting the red menu item.
RESULT: The text does not change color, and the following exceptions are thrown:
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: target must be JEditorPane
at com.sun.java.swing.text.StyledEditorKit$StyledTextAction.getEditor(Compiled Code)
at com.sun.java.swing.text.StyledEditorKit$ForegroundAction.actionPerformed(Compiled Code)
at com.sun.java.swing.AbstractButton.fireActionPerformed(Compiled Code)
at com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(Compiled Code)
at com.sun.java.swing.DefaultButtonModel.fireActionPerformed(Compiled Code)
at com.sun.java.swing.DefaultButtonModel.setPressed(Compiled Code)
at com.sun.java.swing.AbstractButton.doClick(Compiled Code)
at com.sun.java.swing.plaf.basic.BasicMenuItemUI$MenuDragMouseHandler.menuDragMouseReleased(Compiled Code)
at com.sun.java.swing.JMenuItem.fireMenuDragMouseReleased(Compiled Code)
at com.sun.java.swing.JMenuItem.processMenuDragMouseEvent(Compiled Code)
at com.sun.java.swing.JMenuItem.processMouseEvent(Compiled Code)
at com.sun.java.swing.MenuSelectionManager.processMouseEvent(Compiled Code)
at com.sun.java.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseReleased(Compiled Code)
at java.awt.AWTEventMulticaster.mouseReleased(Compiled Code)
at java.awt.Component.processMouseEvent(Compiled Code)
at java.awt.Component.processEvent(Compiled Code)
at java.awt.Container.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Window.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
Steps to Reproduce:
0) Run Stylepad on Solaris with JDK-1.2beta4-I.
1) Hightlight some text.
2) Attempt to make it Red by selecting the red menu item.
RESULT: The text does not change color, and the following exceptions are thrown:
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: target must be JEditorPane
at com.sun.java.swing.text.StyledEditorKit$StyledTextAction.getEditor(Compiled Code)
at com.sun.java.swing.text.StyledEditorKit$ForegroundAction.actionPerformed(Compiled Code)
at com.sun.java.swing.AbstractButton.fireActionPerformed(Compiled Code)
at com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(Compiled Code)
at com.sun.java.swing.DefaultButtonModel.fireActionPerformed(Compiled Code)
at com.sun.java.swing.DefaultButtonModel.setPressed(Compiled Code)
at com.sun.java.swing.AbstractButton.doClick(Compiled Code)
at com.sun.java.swing.plaf.basic.BasicMenuItemUI$MenuDragMouseHandler.menuDragMouseReleased(Compiled Code)
at com.sun.java.swing.JMenuItem.fireMenuDragMouseReleased(Compiled Code)
at com.sun.java.swing.JMenuItem.processMenuDragMouseEvent(Compiled Code)
at com.sun.java.swing.JMenuItem.processMouseEvent(Compiled Code)
at com.sun.java.swing.MenuSelectionManager.processMouseEvent(Compiled Code)
at com.sun.java.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseReleased(Compiled Code)
at java.awt.AWTEventMulticaster.mouseReleased(Compiled Code)
at java.awt.Component.processMouseEvent(Compiled Code)
at java.awt.Component.processEvent(Compiled Code)
at java.awt.Container.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Window.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)