-
Bug
-
Resolution: Duplicate
-
P3
-
7
-
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
============== 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
- duplicates
-
JDK-6806217 implement synthetic focus model for MS Windows
- Closed
- relates to
-
JDK-6638103 JRE 5.0 Update 14 - checkbox within an applet is not updating properly
- Closed