JAVA2的卷II SWING书上有个实例
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Test extends JFrame{
public Test(){
Container contentpane=getContentPane();
JPanel panel =new JPanel();
panel.setBorder(BorderFactory.createEtchedBorder());
contentpane.add(panel,BorderLayout.CENTER);
contentpane.add(GJApp.getStatusArea(),BorderLayout.SOUTH);
GJApp.showStatus(GJApp.getResource("statusAreaText"));
}
public static void main(){
GJApp.launch(new Test(),"Status Area",300,300,450,300);
}
}
但是说GJApp没有
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Test extends JFrame{
public Test(){
Container contentpane=getContentPane();
JPanel panel =new JPanel();
panel.setBorder(BorderFactory.createEtchedBorder());
contentpane.add(panel,BorderLayout.CENTER);
contentpane.add(GJApp.getStatusArea(),BorderLayout.SOUTH);
GJApp.showStatus(GJApp.getResource("statusAreaText"));
}
public static void main(){
GJApp.launch(new Test(),"Status Area",300,300,450,300);
}
}
但是说GJApp没有
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货