JButton 크기변경 질문
싴흐한세여니
소스코드는 아래와 같구요아래의 빨간글씨로 JButton을 크게 했는데 안되네요....버튼을 크게 하고 싶은데 어떻게 해야 되나요???
package posgui;import java.awt.*;import java.awt.event.*;
import javax.swing.*;
public class TableGUI extends JFrame implements ActionListener{ private FlowLayout fwlayout; private JButton tableBtn[]; private String name; public TableGUI(){ int i=10; setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); fwlayout = new FlowLayout(); tableBtn = new JButton[i]; Container container = getContentPane(); container.setLayout(fwlayout); for(int j=1;ji+1;j++){ name=Integer.toString(j); tableBtn[j-1] = new JButton(name); tableBtn[j-1].setSize(new Dimension(100, 100)); tableBtn[j-1].addActionListener(this); container.add(tableBtn[j-1]); } pack(); setVisible(true); } public static void main(String[] args) { new TableGUI(); } @Override public void actionPerformed(ActionEvent arg0) { // TODO Auto-generated method stub } }