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

asynchronous activation by syntheric messages causes to focus problem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ant Anton Tarasov
                Reporter:
                dcherepanov Dmitry Cherepanov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: