1 2 3 4 5 6 7 8 9 10 11 12 13 | Buildfile: build.xml init: [mkdir] Created dir: D:\PDFViewer\dist compile-common: compile-module: [echo] Compiling ... [mkdir] Created dir: D:\PDFViewer\build [mkdir] Created dir: D:\PDFViewer\build\classes [javac] Compiling 5 source files to D:\PDFViewer\build\classes package-common: [jar] Building jar: D:\PDFViewer\dist\pdfviewer.jar default: BUILD SUCCESSFUL |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1 public class PDFViewer extendsApplicationWindow 2 { 3 private OleControlSite site; 4 private OleAutomation auto; 5 6 public PDFViewer() 7 { 8 super(null); 9 this.addMenuBar(); 10 } 11 12 protected ControlcreateContents(Composite parent) 13 { 14 Shell shell = this.getShell(); 15 shell.setText("PDFViewer"); 16 shell.setSize(500, 450); 17 18 OleFrame frame = new OleFrame(shell, SWT.NONE); 19 20 try 21 { 22 site = new OleControlSite(frame,SWT.NONE, "PDF.PdfCtrl.5"); 23 auto = new OleAutomation(site); 24 25 ... |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |