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

asynchronous activation by syntheric messages causes to focus problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 7
    • client-libs
    • x86
    • windows

      the testcase to reproduce the focus problem:

      ============== App.html ======================
      <HTML>
      <HEAD>
      <APPLET CODE="App1.class" WIDTH=100 HEIGHT=100></APPLET>
      </HTML>
      ==============================================

      =============== App1.java ====================
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;

      public class App1 extends JApplet {

          public void start() {
              Container c = getParent();
              while (!(c instanceof Window)) {
                  c = c.getParent();
              }
              Frame eframe = (Frame)c;

              JWindow window = new JWindow(eframe);
      window.setLayout(new FlowLayout());
              window.setBounds(300, 0, 100, 100);
              window.add(new JCheckBox("check"));
              window.setVisible(true);
          }
      }
      ================================================

      Just run the testcase and try to click on the checkbox,
      sometimes the checkbox will not change its state.

      platforms:
      Windows Vista|XP, reproducible using jdk5 u14, latest jdk7

      the same problem described in http://monaco.sfbay/detail.jsf?cr=6638103
      the 6638103 bug includes the Starwood's testcase

            ant Anton Tarasov (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: