import javax.swing.*;
import java.awt.*;
import java.awt.event.*;public class Test 
{
public static void main(String args[])
{
test3();
}
public static void test1()
{
JFrame frm=new JFrame();
frm.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent we){
System.exit(0);
}
});

JTextArea jtf=new JTextArea();
jtf.setFont(new Font("ËÎÌå",Font.PLAIN,16));
JScrollPane scroll=new JScrollPane(jtf);
frm.getContentPane().add(scroll,"Center");

frm.setSize(800,600);
frm.validate();
// frm.pack();
frm.show();
}
public static void test2()
{
JFrame frm=new JFrame();
frm.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent we){
System.exit(0);
}
});

JTextArea jtf=new JTextArea();
jtf.setFont(new Font("ËÎÌå",Font.PLAIN,16));
JScrollPane scroll=new JScrollPane(jtf);
frm.getContentPane().add(scroll,"Center");

// frm.pack();
frm.show();
frm.setSize(800,600);
frm.validate();
}
public static void test3()
{
JFrame frm=new JFrame();
frm.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent we){
System.exit(0);
}
});

JTextArea jtf=new JTextArea();
jtf.setFont(new Font("ËÎÌå",Font.PLAIN,16));
JScrollPane scroll=new JScrollPane(jtf);
frm.getContentPane().add(scroll,"Center");

Dimension dim =Toolkit.getDefaultToolkit().getScreenSize();
frm.setSize(dim);
frm.validate();
frm.show();
}
}