e631. adjusting the size of a component in a gridbadlayout using internal padding.txt
来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 11 行
TXT
11 行
With internal padding, you can increase or decrease the minimum size of a component. For example, if the minimum width of a component is 10 and ipadx is 2, the minimum width of the component within the gridbag layout becomes 14.
See e622 Creating a GridBagLayout for an example on how to use a gridbag layout with gridbag constraints.
GridBagConstraints gbc = new GridBagConstraints();
gbc.ipadx = 2;
gbc.ipady = 4;
Related Examples
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?