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

Cannot press a button using the mouse in Windows L&F.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.0
    • client-libs



      Name: clC74495 Date: 10/09/99


      This bug appeared in JDK 1.3 H preFCS. It is still present in JDK 1.3 I preFCS.

      When using the Windows Look and Feel, you cannot use the mouse to press a button. Obviously, this is somewhat serious.

      A sample follows:
      -----

      package bugsample;

      import java.awt.*;
      import javax.swing.*;

      /**
       * synopsis : Cannot press a button using the mouse in Windows L&F.
       *
       * description : When using the Windows Look and Feel, you cannot
       * use the mouse to press a button.
       *
       * This bug is present on Windows NT 4.0, using JDK 1.3 I preFCS
       *
       * Mike Timbol
       * JBuilder R&D
       * Inprise Corporation
       */
      public class ButtonFrame extends JFrame {

        public ButtonFrame() {
          setTitle("Sample for unclickable buttons bug");
          getContentPane().add(new JButton("Click me!"));
        }

        public static void main(String[] args) {
          try {
            // Set look and feel to Windows on a Windows system.
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          }
          catch(Exception e) {
            e.printStackTrace();
          }

          ButtonFrame frame = new ButtonFrame();
          frame.setSize(100, 100);
          frame.setVisible(true);
        }
      }
      (Review ID: 96310)
      ======================================================================

            jeff Jeff Dinkins
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: