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();
}
}
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();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货