1
我需要使用forloop和text_fields实例变量来实例化每个 文本字段,使其成为侦听器并将其添加到小程序。 的text_fields变量是具有2在for循环中实例化数组创建JTextFields
Container c = getContentPane();
c.setLayout(new FlowLayout());
int i = 0;
for (i = 0; i < FIELDS; i++)
{
THIS IS WHERE I DON'T KNOW WHAT TO WRITE.
i need to instantiate the arrays, make them listeners and
add them to the applet.
}
任何你已经尝试过的示例代码? – eldris 2013-04-24 14:51:52