Name: dk106046 Date: 07/11/2002
Found on Turbo 7 - in ja_JP locale
1.4.1-rc-b16
Testcase:
---Start of AWTTest.java
import java.awt.*;
import java.awt.event.*;
public class AWTTest extends Frame {
AWTTest(){
MenuBar mb = new MenuBar();
Menu m1 = new Menu("Menu1");
mb.add(m1);
MenuItem mi1 = new MenuItem("Item 1");
m1.add(mi1);
TextArea ta = new TextArea(3, 20);
add(ta);
ta.addKeyListener(new KeyListener()
{
public void keyPressed(KeyEvent e)
{ System.out.println("Pressed: Char code & mods = "
+ e.getKeyChar() + " " + e.getKeyCode() + " " + e.getModifiers());}
public void keyTyped(KeyEvent e)
{ System.out.println("Typed: Char code & mods = "
+ e.getKeyChar() + " " + e.getKeyCode() + " " + e.getModifiers());}
public void keyReleased(KeyEvent e)
{ System.out.println("Released: Char code & mods = "
+ e.getKeyChar() + " " + e.getKeyCode() + " " + e.getModifiers());}
});
setMenuBar(mb);
pack();
show();
}
public static void main(String [] args) {
AWTTest mt = new AWTTest();
}
}
---end of AWTTest.java
1. Compile & run the above test case AWTTest.java:
2. Check focus is in the TextArea
3. Click blank portion(right side) of menubar
-> Focus is lost from the TextArea. Cursor blink stops,
and black borders around the TextArea disappear.
4. Click TextArea again
-> Focus cannot be moved to the TextArea. Cursor blink
still stops, and black borders don't appear. ---> Problem!
Though any single byte chars can be input in the TextArea,
IME cannot be activated because the focus is lost.
<< Expected result >>
Focus should move back to the TextArea even after clicking the blank portion of menubar.
======================================================================
Name: dmR10075 Date: 08/21/2003
Not reproducible with XAWT. Reproducible with Motif Toolkit, on Linux, using 1.5.0.b15
###@###.### 2003-8-21
======================================================================
Found on Turbo 7 - in ja_JP locale
1.4.1-rc-b16
Testcase:
---Start of AWTTest.java
import java.awt.*;
import java.awt.event.*;
public class AWTTest extends Frame {
AWTTest(){
MenuBar mb = new MenuBar();
Menu m1 = new Menu("Menu1");
mb.add(m1);
MenuItem mi1 = new MenuItem("Item 1");
m1.add(mi1);
TextArea ta = new TextArea(3, 20);
add(ta);
ta.addKeyListener(new KeyListener()
{
public void keyPressed(KeyEvent e)
{ System.out.println("Pressed: Char code & mods = "
+ e.getKeyChar() + " " + e.getKeyCode() + " " + e.getModifiers());}
public void keyTyped(KeyEvent e)
{ System.out.println("Typed: Char code & mods = "
+ e.getKeyChar() + " " + e.getKeyCode() + " " + e.getModifiers());}
public void keyReleased(KeyEvent e)
{ System.out.println("Released: Char code & mods = "
+ e.getKeyChar() + " " + e.getKeyCode() + " " + e.getModifiers());}
});
setMenuBar(mb);
pack();
show();
}
public static void main(String [] args) {
AWTTest mt = new AWTTest();
}
}
---end of AWTTest.java
1. Compile & run the above test case AWTTest.java:
2. Check focus is in the TextArea
3. Click blank portion(right side) of menubar
-> Focus is lost from the TextArea. Cursor blink stops,
and black borders around the TextArea disappear.
4. Click TextArea again
-> Focus cannot be moved to the TextArea. Cursor blink
still stops, and black borders don't appear. ---> Problem!
Though any single byte chars can be input in the TextArea,
IME cannot be activated because the focus is lost.
<< Expected result >>
Focus should move back to the TextArea even after clicking the blank portion of menubar.
======================================================================
Name: dmR10075 Date: 08/21/2003
Not reproducible with XAWT. Reproducible with Motif Toolkit, on Linux, using 1.5.0.b15
###@###.### 2003-8-21
======================================================================