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

📄 actioncommandsmw.java

📁 这是一个小旅馆运行程序,很实用也很全面.希望对大家有所启发.
💻 JAVA
字号:
/** * Copyright 2004, Martin Jungowski * *	This file is part of JHotel. * *	JHotel is free software; you can redistribute it and/or modify *	it under the terms of the GNU General Public License as published by *	the Free Software Foundation; either version 2 of the License, or *	(at your option) any later version. * *	JHotel is distributed in the hope that it will be useful, *	but WITHOUT ANY WARRANTY; without even the implied warranty of *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *	GNU General Public License for more details. * *	You should have received a copy of the GNU General Public License *	along with JHotel; if not, write to the Free Software *	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * ***/public class ActionCommandsMW {MainWindow mw;String command;String[] language;public ActionCommandsMW(MainWindow mw, String command) {	this.mw = mw;	this.command = command;		Language lang = new Language();	language = lang.getLanguage();				if (command.equals(language[0])) {		mw.newGuest();	}	else if (command.equals(language[1])) {		mw.searchGuest();	}	else if (command.equals(language[2])) {		mw.saveGuest();		}	else if (command.equals(language[4])) {		ImportWindow iw = new ImportWindow();		iw.setVisible(true);		//mw.importDB();	}	else if (command.equals(language[3])) {		ExportWindow ew = new ExportWindow();		ew.setVisible(true);		//mw.exportDB();	}	else if (command.equals(language[6])) {		OptionsWindow ow = new OptionsWindow(mw);		ow.setVisible(true);	}	else if (command.equals(language[24])) {		System.exit(0);	}	else if (command.equals(language[87])) {		AboutWindow aw = new AboutWindow();		aw.setVisible(true);	}}}

⌨️ 快捷键说明

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