⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notepad_treenewfile.java

📁 java 编写的代码
💻 JAVA
字号:
/**
 * 
 */
package com.edu.sccp.snail.notepad.view;

import java.io.File;
import java.io.IOException;

import com.edu.sccp.snail.notepad.interfaces.Notepad_File;

/**
 * @author 小豆包
 * @velue  文本的接口属性   
 * @time 2008-1-8
 */
import javax.swing.*;
import java.io.*;
public class Notepad_TreeNewFile implements Notepad_File{
/**
 * 获得一个节点
 * 然后在这下面新建一个文件
 */
	Notepad_Main parent_frame = null;   //可访问到的类
	Notepad_newFile nf = null;   // 新建文件的类
	File file = null;                  //要打开的文件 	
	
	public Notepad_TreeNewFile(Notepad_Main notepad_main,File file){
		this.file = file;
		this.parent_frame = notepad_main;
		nf = new Notepad_newFile("");
		try {
			Notepad_File_TreeNewFile(parent_frame,nf,file);
		} catch (IOException e) {			
			e.printStackTrace();
		}
		
	}
	public void Notepad_File_TreeNewFile(Notepad_Main notepad_main, Notepad_newFile nf, File file) throws IOException {
		String filePath = file.getPath();
		System.out.println(filePath);
		nf.setTitle("未命名文档---"+filePath);		
		notepad_main.jp1.add(nf);
		
		
	}

	public void Notepad_FileSave(Notepad_Main notepad_main, File file) throws IOException {
	
		
	}

	public void Notepad_FileOpen(Notepad_newFile nnf, File file) throws IOException {
		
		
	}

	public void Notepad_File_OrtherSave(Notepad_Main notepad_main, File file) throws IOException {
		
		
	}

	public void Notepad_File_TreeOpenFile(Notepad_Main notepad_main, Notepad_newFile nnf, File file) throws IOException {
		
		
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -