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

MAWT: List is non focusable after mouse clicking, MToolkit, KDE

XMLWordPrintable

    • x86
    • linux

      I have a simple list. I click by mouse on the item of the list and try to change the selection of the list using arrow keys. But it's impossible since list looks like non focusable after the mouse clicking. If we try to do the selection changing using arrow keys after the focus changing using 'TAB' then the selection will be changed visibly.

      It's reproducible with jdk6.0 build42.
      ONLY on MToolkit, ONLY with KDE window manager.

      I have attach a simple test:

      import java.awt.*;
      import java.awt.event.*;

      public class ListTest2 extends Frame {

      List list = new List(4, false);

      public ListTest2 () {
      super ("ChoiceTest");
      list.add("111");
      list.add("222");
      list.add("333");
      list.add("444");

      add(list);
      this.setLayout(new FlowLayout());

      setSize(200, 200);
      setVisible(true);
      validate();

      }

      public static void main (String args[]) {
      ListTest2 test = new ListTest2();
      }
      }

      ###@###.### 2005-07-08 07:42:31 GMT

            denis Denis Fokin (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: