GUI啊?用swing包
参考 Trail: Creating a GUI with JFC/Swing
http://java.sun.com/docs/books/tutorial/uiswing/index.html

解决方案 »

  1.   

    你的EMAIL或者给我发消息,我给你一个例子看看吧,可以访问数据库的~~~~~
      

  2.   

    //用swing包或awt包,不过现在提倡用swing包import javax.swing.*;
     
    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);
    }
    }
      

  3.   

    我的电子邮件:
    [email protected]谢谢各位指教哦!^_^