public class AplotPdfPrintLocal extends ApplicationWindow {
private String userSelectedFile;
public AplotPdfPrintLocal(String pdfFilePath) {
super(null);
this.userSelectedFile = pdfFilePath;
}
public void run() {
setBlockOnOpen(true);
open();
Display.getCurrent().dispose();
}
etc........
クラスBから上記のクラスを実行したい
メソッドはクラス B - 以下
public void startPDFPrint() throws Exception {
AplotPdfPrintLocal pdfPrint = new AplotPdfPrintLocal(getPDFFileName()).run();
}
run の戻り値の型を void から plotPdfPrintLocal に変更する必要があるというエラーが表示されます
クラスを間違って呼び出すつもりですか?