-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.2.0, 1.3.0
-
x86
-
windows_95, windows_nt
Run WordApplet:
http://javaweb.eng/~mukundm/BrowserSuite/BrowserSuiteVerP/Suite/QLhtml/7/6.html
Type something in it
Select a portion of the text
Use the combo box to change font
Hit the Bold or italic buttons on the toolbar. Nothing changes. Only happens to toolbar buttons with a direct action. Color chooser brings up a dialog hence there's no problem there.
Reselecting the same selection and hitting the Bold button works.
Test Applet UPDATE: The WordApplet test case can now be run by clicking the "BrowserSuite Kestrel L" link on Nancy Schorr's homepage, http://javaweb.eng/~nancys. Afterwards select "Quicklook tests", then pick "WordApplet".
raj.premkumar@eng 1999-07-26
Name: apR10133 Date: 11/13/2000
I have a short testcase:
------------------------- Test.java --------------------
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;
public class Test extends JFrame {
public Test() {
JButton btn = new JButton("Button");
getContentPane().add(btn, BorderLayout.NORTH);
btn.addActionListener(new StyledEditorKit.BoldAction());
JEditorPane editor = new JEditorPane();
editor.setEditorKit(new StyledEditorKit());
getContentPane().add(editor);
setSize(200,200);
setVisible(true);
}
public static void main(String[] argv) {
new Test();
}
}
---------------------------------------------------------
###@###.###
======================================================================
http://javaweb.eng/~mukundm/BrowserSuite/BrowserSuiteVerP/Suite/QLhtml/7/6.html
Type something in it
Select a portion of the text
Use the combo box to change font
Hit the Bold or italic buttons on the toolbar. Nothing changes. Only happens to toolbar buttons with a direct action. Color chooser brings up a dialog hence there's no problem there.
Reselecting the same selection and hitting the Bold button works.
Test Applet UPDATE: The WordApplet test case can now be run by clicking the "BrowserSuite Kestrel L" link on Nancy Schorr's homepage, http://javaweb.eng/~nancys. Afterwards select "Quicklook tests", then pick "WordApplet".
raj.premkumar@eng 1999-07-26
Name: apR10133 Date: 11/13/2000
I have a short testcase:
------------------------- Test.java --------------------
import javax.swing.*;
import javax.swing.text.*;
import java.awt.*;
public class Test extends JFrame {
public Test() {
JButton btn = new JButton("Button");
getContentPane().add(btn, BorderLayout.NORTH);
btn.addActionListener(new StyledEditorKit.BoldAction());
JEditorPane editor = new JEditorPane();
editor.setEditorKit(new StyledEditorKit());
getContentPane().add(editor);
setSize(200,200);
setVisible(true);
}
public static void main(String[] argv) {
new Test();
}
}
---------------------------------------------------------
###@###.###
======================================================================
- duplicates
-
JDK-4379623 Behavior of TextAction.getFocusedComponent has compatibility problems
- Closed