Java的AWT和Swing的8大布局

2023-12-15 20:52:47

javax.swing.JFrame jFrame = new javax.swing.JFrame("test_ok");
? ? ? ? java.awt.BorderLayout borderLayout = new java.awt.BorderLayout();
? ? ? ? java.awt.CardLayout cardLayout = new java.awt.CardLayout();
? ? ? ? java.awt.FlowLayout flowLayout = new java.awt.FlowLayout();
? ? ? ? java.awt.GridBagLayout gridBagLayout = new java.awt.GridBagLayout();
? ? ? ? java.awt.GridLayout gridLayout = new java.awt.GridLayout();
? ? ? ? javax.swing.BoxLayout boxLayout = new javax.swing.BoxLayout(jFrame, 0);
? ? ? ? javax.swing.GroupLayout groupLayout = new javax.swing.GroupLayout(jFrame);
? ? ? ? javax.swing.SpringLayout springLayout = new javax.swing.SpringLayout();

文章来源:https://blog.csdn.net/HardProgrammer/article/details/134952577
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。