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

J2SE_Swing_Reg:the tooltip appears when moving mouse over the green area of the frame'Frame1'

    Details

    • Subcomponent:
    • Resolved In Build:
      b97
    • CPU:
      x86
    • OS:
      windows_vista
    • Verification:
      Verified

      Description

      Platform:VistaUltimate_64bit
      VistaUltimate_64bit
      build:1.7.0b64
      Case#: closed/javax/swing/ToolTipManager/4148057/bug4148057.java
      #steps to reproduce
      # Case description:
      Move mouse over the green area of the frame "Frame1" and wait for a few
      seconds,if the tooltip appears then test fails,Otherwise test passes
      # Expect behavior:
      The tooltip appears then test fails
      # Actual behavior:
      The tooltip appears when moving mouse over the green area of the frame "Frame1"
      # Exceptions:
      None
      # Steps to reproduce:
      1).do as the following code:
      ---------Begin code---------
      import javax.swing.*;
      import java.awt.*;
      import java.awt.event.*;
      public class bug4148057 extends JApplet {

          JFrame frame1, frame2;

          public void init() {
              frame1 = new JFrame("Frame 1");
              JPanel tooltipPanel = new JPanel();
              tooltipPanel.setToolTipText("Tool Tip");
              tooltipPanel.setBackground(Color.green);
              frame1.getContentPane().add(tooltipPanel);
              frame1.setBounds(50,50,200,200);
              frame1.setVisible(true);

              frame2 = new JFrame("Frame 2");
              frame2.setBounds(200,200,200,200);
              frame2.setVisible(true);

              frame2.addWindowListener(new WindowAdapter() {
                      public void windowOpened(WindowEvent e) {
                          System.out.println(frame2.isVisible());
                          frame2.toFront();
                      }
                  });
          }
      }
      ---------End code-----------
      2).compile the code:${JDK7_HOME}/bin/javac bug4148057.java
      compile successfully.
      3).run the class file:${JDK7_HOME}/bin/java bug4148057
      4).Tool tip can be shown
      5).in the code “tooltipPanel.setToolTipText("Tool Tip");” so the tool tip can be shown

      #validation
      the same issue happens to;
      Product: j2se
      OS: ubuntu9.04-i586
      JDK/JREBuildNo.: 1.7.0b66

        Attachments

          Activity

            People

            • Assignee:
              alexp Alexander Potochkin (Inactive)
              Reporter:
              tonyli Tony Li
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: