📄 output.java.bak
字号:
package PL0;
public class OutPut{
public static void main(String[] args){
EventDo edo=new EventDo();
}
class OpenFile implements ActionListener{
public void actionPerformed(ActionEvent e){
JFileChooser chooser=new JFileChooser();
chooser.addChoosableFileFilter(new MyFileFilter("txt",".txt"));
chooser.addChoosableFileFilter(new MyFileFilter("pl0",".pl0"));
int choose=chooser.showOpenDialog(EventDo.this);
if(choose==JFileChooser.APPROVE_OPTION){
filename.setText(chooser.getSelectedFile().toString());
try{
openfile(chooser.getSelectedFile().toString());
}catch(IOException eb){
}
}
if(choose==JFileChooser.CANCEL_OPTION){
errorinfor.append("您取消了打开文件\n");
errorinfor.append("请您选择一个要编译的文件");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -