Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4185645

Focus problems in applets while switching from combo box->toolbar button

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0, 1.3.0
    • client-libs
    • 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();
          }
      }
      ---------------------------------------------------------
      ###@###.###

      ======================================================================

            svioletsunw Scott Violet (Inactive)
            rpremkumsunw Raj Premkumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: