for(int i=0;i<Integer.parseInt(temp);i++)
{
JTextField numChoose1 = new JTextField();
numChoose1.setBounds(new Rectangle(140, 25+((i+1)*22+2), 119, 22));
jContentPane.add(numChoose1, null);
}
Graphics g11=jContentPane.getGraphics(); //獲取Graphics
jContentPane.paintAll(g11); 重繪
g11.dispose();
posted on 2011-07-28 11:27
sanmao 閱讀(780)
評論(3) 編輯 收藏