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

📄 showframe.java

📁 简单的书店管理系统,是课设期间教师指导完成的,希望会对大家有帮助!
💻 JAVA
字号:
package book;

import java.sql.SQLException;

public class ShowFrame {
	public ShowFrame(){
		
	}
	
	public void showBorrowBook(){
		if(!FrameVisible.getFrameVisible()){
			try {
			BorrowBook f=new BorrowBook("借书管理",600,550);
			} catch (SQLException e) {
				// TODO 自动生成 catch 块
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	
	public void showReturnBook(){
		if(!FrameVisible.getFrameVisible()){
			try {
			ReturnBook f=new ReturnBook("还书管理",600,400);
			} catch (SQLException e) {
				// TODO 自动生成 catch 块
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	public void showChaoTimeBook(){
		if(!FrameVisible.getFrameVisible()){
			try {
				ChaoTimeBook f=new ChaoTimeBook("超期图书",600,400);
			} catch (SQLException e) {
				// TODO 自动生成 catch 块
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	
	public void showPassword(){
		if(!FrameVisible.getFrameVisible()){
			User f=new User("密码修改",300,300);
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	
	public void showDataManage(){
		if(!FrameVisible.getFrameVisible()){
			DataManage f=new DataManage("数据管理",300,280);
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	public void showSystemManage(){
		if(!FrameVisible.getFrameVisible()){
			SystemManage f=new SystemManage("系统管理",360,210);
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	
    public void showUserManage(){
    	if(!FrameVisible.getFrameVisible()){
			try {
				UserManage f=new UserManage("用户管理",400,300);
				FrameVisible.setFrameVisible(true);
			} catch (SQLException e) {
				e.printStackTrace();
			}	
		}
	}
	
	public void showBookManage(){
		if(!FrameVisible.getFrameVisible()){
			try {
				BookManage f=new BookManage("书籍管理",750,560);
			} catch (SQLException e1) {
				e1.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	public void showReaderManage(){
		if(!FrameVisible.getFrameVisible()){
			try {
				ReaderManage f=new ReaderManage("读者信息",750,560);
			} catch (SQLException e1) {
				e1.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
	
    public void showPublishTypeManage(){
    	if(!FrameVisible.getFrameVisible()){
			try {
				PublishTypeManage f=new PublishTypeManage("出版社设置",400,380);
			} catch (SQLException e) {
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
	
	public void showReaderTypeManage(){
		if(!FrameVisible.getFrameVisible()){
			try {
				ReaderTypeManage f=new ReaderTypeManage("读者类型",400,380);
			} catch (SQLException e) {
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}	
		
	}
	
    public void showBookTypeManage(){
    	if(!FrameVisible.getFrameVisible()){
			try {
				BookTypeManage f=new BookTypeManage("图书类型",400,380);
			} catch (SQLException e) {
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}	
		
	}
    
    
    public void showLateFeeManage(){
    	if(!FrameVisible.getFrameVisible()){
			try {
				LateFeeManage f=new LateFeeManage("滞纳金管理",300,170);
			} catch (SQLException e) {
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}	
		
	}
    
    public void showRenewalwBook(){
		if(!FrameVisible.getFrameVisible()){
			try {
				RenewalBook f=new RenewalBook("续借图书",600,240);
			} catch (SQLException e) {
				// TODO 自动生成 catch 块
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
	
    
    public void showFakuanManage(){
		if(!FrameVisible.getFrameVisible()){
			try {
				FakuanManage f=new FakuanManage("罚款管理",600,400);
			} catch (SQLException e) {
				// TODO 自动生成 catch 块
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
    
    
    public void showQueryFrame(){
		if(!FrameVisible.getFrameVisible()){
				try {
					QueryFrame f=new QueryFrame("综合查询",715,560);
				} catch (SQLException e) {
					// TODO 自动生成 catch 块
					e.printStackTrace();
				}
			FrameVisible.setFrameVisible(true);
    	 }
	}
    
    public void showStatFrame(){
		if(!FrameVisible.getFrameVisible()){
			try {
				StatFrame f=new StatFrame("综合统计",500,350);
			} catch (SQLException e) {
				// TODO 自动生成 catch 块
				e.printStackTrace();
			}
			FrameVisible.setFrameVisible(true);
    	}
	}
}

⌨️ 快捷键说明

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