?? withxml.java
字號:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class withXML {
public withXML(JFrame f) {
f.getContentPane().setLayout(new BorderLayout());
XMLComponent xmlC=new XMLComponent();
f.getContentPane().add("Center"xmlC.build("user.xml"));
f.setVisible(true);
}
public static void main(String[] args) {
JFrame f=new JFrame("With XML");
f.setSize(400,300);
f.addWindowFocusListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
withXML withXML1 = new withXML(f);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -