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

ToolTipText does not appear in an applet, horizontal line in its place

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.1.4
    • client-libs

      The applet included in this description shows a small line running horizontally on the screen where the tooltip ought to be when running in the latest version of Netscape for Solaris. The same code and class file runs correctly with appletviewer. The customer reporting this problem has indicated that Netscape and HotJava are not displaying the text for tooltips under Windows.

      elizabeth.mezias@Eng 1998-01-26

      _________________________________________________
      import java.awt.*;
      import java.awt.event.*;
      import com.sun.java.swing.*;
      import com.sun.java.swing.event.*;

      public class TTApplet extends JApplet {
      JButton tip1, tip2;
      JPanel test;

      public TTApplet() {
      super();
      }

      public void init() {
      // this applet tests tool tip text

        tip1 = new JButton("Tip One");
      tip1.setToolTipText("Tip Text One");
        tip2 = new JButton("Tip Two");
      tip2.setToolTipText("Tip Text Two");
      // space and test make the applet a little prettier
      test = new JPanel();
        test.add( tip1 );
      Canvas spacer = new Canvas();
      spacer.setSize(50,50);
      test.add( spacer );
              test.add( tip2 );
              this.getContentPane().setLayout( new BorderLayout() );
              this.getContentPane().add( "Center", test );
      this.setVisible(true);

          } //end init

      }

            rschiavisunw Richard Schiavi (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: