public class TestSwing extends JFrame {public TestSwing() {setTitle("test--jpanel");setSize(400,300);JPanel p = new JPanel();p.setLayout(null);p.setBounds(10, 10, 380, 280);p.setBackground(Color.RED);JPanel pp = new JPanel();pp.setBounds(105, 70, 190, 140);pp.setBackground(Color....
|