-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.2.0
-
generic
-
generic
Name: krT82822 Date: 01/18/99
This is probably an addendum to bug # 4162043. JTabbedPane
will not accept an EmptyBorder(0,0,0,0).
Also, if you put a BevelBorder around it, you get a double
BevelBorder.
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
public class tabbedPaneBug extends JFrame{
public tabbedPaneBug(){
getContentPane().setLayout(null);
JTabbedPane tp = new JTabbedPane();
tp.setBorder(new EmptyBorder(0,0,0,0));
//tp.setBorder(new BevelBorder(0));
tp.setSize(100,100);
tp.setLocation(20,20);
getContentPane().add(tp);
setSize(300,300);
show();
}
public static void main(String ags[]) {
new tabbedPaneBug();
}
}
(Review ID: 52465)
======================================================================