0
public class Try_Grow_01 {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setLayout(new MigLayout("fill, debug", "[fill]5[5]"));
frame.add(new JButton("one"), "");
frame.add(new JButton("two"), "");
frame.add(new JButton("three"), "");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
}
результат
то есть два правых клетки также растут, в то время как я хочу, чтобы они не.
Как это сделать?