Why I should use a JPanel?

后端 未结 6 1753
你的背包
你的背包 2021-01-13 15:32

What\'s the difference between:

public class Test {

    public static void main(String[] args) {
        JButton button= new JButton(\"1\");
        button.         


        
6条回答
  •  自闭症患者
    2021-01-13 15:46

    You can put more than one JPanel in the JFrame. JPanel is a conainer for you other components and can grouping it by logical features.

提交回复
热议问题