| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
編集の要約なし
==Swing レイアウト 2==
[[Swing]]
*FlowLayout
c.gridwidth = 2; // ↓ 列数設定
for (int i=0; i<&lt;10; i++) {
c.gridx = buttonPos[i][0];
c.gridy = buttonPos[i][1];
final GridLayout gridLayout = new GridLayout(3,3);
final JPanel gridPanel = new JPanel(gridLayout);
for (int i=0; i<&lt;9; i++) {
gridPanel.add(new JButton(String.valueOf(i)));
}

案内メニュー