「GridLayout」でグリルを作成した後:
supper(new GridLayout(rows, column));
各セルのコンテンツを需要に追加します。
public void addButton(String name) {
buttons = new JButton(name);
add(buttons);
}
加算と削除のカウンターを保持するために使用されているセルの現在の数を知ることができますか?
ありがとう。
「GridLayout」でグリルを作成した後:
supper(new GridLayout(rows, column));
各セルのコンテンツを需要に追加します。
public void addButton(String name) {
buttons = new JButton(name);
add(buttons);
}
加算と削除のカウンターを保持するために使用されているセルの現在の数を知ることができますか?
ありがとう。