JAVA GUI学习 - JInternalFrame浮动窗口:可拖拽窗口(依赖于父窗口)

 1 public class JInternalFrameKnow extends JInternalFrame

 2 {

 3     public JInternalFrameKnow()

 4     {

 5         this.setBounds(200, 200, 300, 300);

 6         this.setTitle("子窗体                                                                 ");

 7         this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

 8         this.setClosable(true);

 9 //        this.getLayout();

10     }

11 }


1.窗体要点一:

2.窗体要点二:

你可能感兴趣的:(intern)