📄 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 + -