-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.2.0
-
generic
-
generic
import java.awt.*;
import javax.swing.*;
When run with Swing 1.1.1 beta 2, the tool tip panel is not wide enough to contain all of the tool tip text. The last character is truncated.
Below is a test case:
public class TruncatedToolTip extends JFrame {
JButton jb;
public TruncatedToolTip() {
super("TruncatedToolTip");
setSize(500, 500);
jb = new JButton("Button");
jb.setToolTipText("Tooltip Text");
getContentPane().setLayout(new BorderLayout());
getContentPane().add("Center", jb);
setVisible(true);
}
public static void main(String args[]) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {}
TruncatedToolTip ttt = new TruncatedToolTip();
}
}
import javax.swing.*;
When run with Swing 1.1.1 beta 2, the tool tip panel is not wide enough to contain all of the tool tip text. The last character is truncated.
Below is a test case:
public class TruncatedToolTip extends JFrame {
JButton jb;
public TruncatedToolTip() {
super("TruncatedToolTip");
setSize(500, 500);
jb = new JButton("Button");
jb.setToolTipText("Tooltip Text");
getContentPane().setLayout(new BorderLayout());
getContentPane().add("Center", jb);
setVisible(true);
}
public static void main(String args[]) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {}
TruncatedToolTip ttt = new TruncatedToolTip();
}
}
- duplicates
-
JDK-4218495 As of 1.2.xH tooltips are too narrow in all L&Fs - losing half the last characte
-
- Resolved
-