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

Focus disappears after deiconifying frame

    XMLWordPrintable

Details

    • beta
    • x86
    • windows_nt

    Backports

      Description



        Name: pzR10082 Date: 10/19/2000



        Run the program below and pass focus to the button.
        Minimize the frame and then restore it. The button
        now is not focused.

        ---------------------------------------------
        import javax.swing.*;

        public class Test extends JFrame {

            public Test() {
                JButton button = new JButton("focused");
                getContentPane().add(button);
            }

            public static void main(String args[]) {
                Test frame = new Test();
                frame.pack();
                frame.setVisible(true);
            }
        }
        ---------------------------------------------

        This bug cannot be reproduced on Solaris using window
        managers with focus-follows-mouse policy. It can be
        easily reproduced on Windows, however.

        This bug appeared in Merlin after focus changes.
        It didn't exist in 1.3 or 1.2.2.

        ======================================================================

        Attachments

          Issue Links

            Activity

              People

                son Oleg Sukhodolsky (Inactive)
                peterz Peter Zhelezniakov
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: