How can I make my columns different sizes using GridLayout in swing?

前端 未结 0 928
日久生厌
日久生厌 2021-02-11 15:32

I\'m using a GridLayout and my code is as follows:

int changingVar = 1;

JPanel panel = new JPanel(new GridLayout(changingVar, 2));
panel.add(new JButton(\"BUTTO         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题