/**
* @(#)TestSwing.java
*
* TestSwing application
*
* @author
* @version 1.00 2007/1/21
*/
import javax.swing.*;
public class TestSwing extends JFrame
{
public TestSwing()
{
JTextArea jta=new JTextArea(50,50);
JScrollPane jsp=new JScrollPane();
jsp.getViewport().add(jta);
this.getContentPane().add(jsp);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String[] args)
{
// TODO, add your application code
System.out.println("Hello World!");
TestSwing mainFrame=new TestSwing();
mainFrame.setTitle("TestSwing");
mainFrame.setBounds(300,200,400,400);
mainFrame.setVisible(true);
}
}