-
Bug
-
Resolution: Duplicate
-
P1
-
None
-
1.1.4
-
x86
-
windows_nt
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
}
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
}
- duplicates
-
JDK-4105323 ToolTips on Windows in browsers are just thin lines
-
- Closed
-