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

📄 removepageaction.java

📁 定要上载质量高而定要上载质量高而定要上载质量高而定要上载质量高而定要上定要上载质量高而定要上载质量高而载质量高而
💻 JAVA
字号:
package net.sf.fjreport.control;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

import net.sf.fjreport.FJReport;
import net.sf.fjreport.util.StringResource;

public class RemovePageAction extends AbstractAction{
	FJReport report;
	public RemovePageAction(FJReport report){
		super("", new ImageIcon(FJReport.class.getResource("resources/removepage.gif")));
		putValue(SHORT_DESCRIPTION, StringResource.getString("removePageHint"));
		this.report = report;
	}
	public void actionPerformed(ActionEvent arg0) {
		if (JOptionPane.showConfirmDialog(JOptionPane.getFrameForComponent(report),
				StringResource.getString("confirmDeletePageMsg"), 
				StringResource.getString("confirmDeletePageDlgTitle"),
				JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)
			report.removePage(report.currentPage);
	}
}

⌨️ 快捷键说明

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