GUI啊?用swing包
参考 Trail: Creating a GUI with JFC/Swing
http://java.sun.com/docs/books/tutorial/uiswing/index.html
参考 Trail: Creating a GUI with JFC/Swing
http://java.sun.com/docs/books/tutorial/uiswing/index.html
public class text extends JFrame
{
JTextArea text;
text()
{
super("classjava(测试窗口)"); //调用基类构造函数
text=new JTextArea(100,100);
getContentPane().add(text);
text.setLineWrap(true);//设置自动换行
text.setWrapStyleWord(true);
setSize(400,100);
}
public static void main(String[] args)
{
text t=new text();
t.setVisible(true);
}
}
[email protected]谢谢各位指教哦!^_^