#java Why
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type VirtualBinding
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type VirtualBinding
Exception in thread "main" java.lang.NullPointerException
at Why.<init>(Why.java:17)
at Why.main(Why.java:28)
소스임다 ..
import java.awt.*;
public class Why
{
TextField tf<>;
Frame f;
Panel p;
public Why()
{
f = new Frame("Temp");
p = new Panel();
String s<>={"1","2","3","4"};
for(int i=0;i<s.length;i++)
{
tf[i] = new TextField(s[i]);
p.add(tf[i]);
}
f.add(p,BorderLayout.CENTER);
f.setSize(400,400);
f.setVisible(true);
}
public static void main(String args<>)
{
Why w = new Why();
}
}--이 곳에 서명을 적어주십시오.
그날이 오면...