-
Bug
-
Resolution: Fixed
-
P4
-
1.1.5, 1.2.0
-
1.0.2
-
x86, sparc
-
solaris_2.4, windows_nt
Adding double-buffered JPanel into a Box causes drawing problem. Run the following code to reproduce:
('button in a panel' was drawed 2 times in different location)
import java.awt.*;
import com.sun.java.swing.*;
public class BoxTest
{
public static void main(String[] args){
JFrame frame = new JFrame();
Box box = new Box(BoxLayout.Y_AXIS);
box.add(new JLabel("I am a label"));
box.add(new JButton("I am a button"));
JPanel panel = new JPanel();
panel.add(new JButton("button in a panel"));
box.add(panel);
frame.getContentPane().add(box);
frame.pack();
frame.setVisible(true);
}
}
bae-chul.kim@Eng 1998-03-09
('button in a panel' was drawed 2 times in different location)
import java.awt.*;
import com.sun.java.swing.*;
public class BoxTest
{
public static void main(String[] args){
JFrame frame = new JFrame();
Box box = new Box(BoxLayout.Y_AXIS);
box.add(new JLabel("I am a label"));
box.add(new JButton("I am a button"));
JPanel panel = new JPanel();
panel.add(new JButton("button in a panel"));
box.add(panel);
frame.getContentPane().add(box);
frame.pack();
frame.setVisible(true);
}
}
bae-chul.kim@Eng 1998-03-09
- duplicates
-
JDK-4114032 JComponent repaint problem
-
- Closed
-