2007-05-25 テキストボックスのサイズを変更 Java JTextField text = new JTextField("sample"); text.setPreferredSize(new Dimension(150, 30));