📄 e853. laying out components in a grid.txt
字号:
When components are added to the container, they fill the grid left-to-right, top-to-bottom.
int rows = 2;
int cols = 2;
JPanel panel = new JPanel(new GridLayout(rows, cols));
panel.add(component1);
panel.add(component2);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -