-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
beta
-
x86
-
windows_nt
Name: krT82822 Date: 06/20/99
This is still an issue as of Swing 1.1.1 beta2 (with JDK 1.1.8) and JDK 1.2.2 RC1. It appears that it's one of the issues that was to be resolved
in bug # 4166246, but the problem is definitely still present, so filing a new bug. --kevin.ryan@eng, 6/20/99
-------------------------------
The rollover feature in MetalToolBarUI assign its own version
of borders, without regard for the default border properties
in the LookAndFeel. Furthermore, it only does this for JButtons.
This cause a JToggleButton in a toolbar to use the LookAndFeel
border and a JButton to the border defined in MetalTooBarUI.
Since the two borders have different sizes the effect is,
that a JToggleButton is larger than a JButton.
This little program demonstrate the problem.
import java.awt.*;
import javax.swing.*;
public class tst {
public static void main(String[] args) {
JFrame f = new JFrame();
f.setBounds(new Rectangle(50, 50, 200, 300));
JToolBar t = new JToolBar();
t.add(new JButton("Button1"));
t.add(new JToggleButton("Button2"));
f.getContentPane().add("North", t);
f.setVisible(true);
}
}
(Review ID: 52528)
======================================================================
- relates to
-
JDK-4383435 Some buttons became too wide in Java2Demo
-
- Resolved
-