1 50 package com.lowagie.tools; 51 52 import java.lang.reflect.Method ; 53 54 import javax.swing.JOptionPane ; 55 56 public class ToolboxAvailable { 57 58 63 public static void main(String [] args) { 64 try { 65 Class c = Class.forName("com.lowagie.tools.Toolbox"); 66 Method toolboxMain = c.getMethod("main", new Class [] {args.getClass()}); 67 toolboxMain.invoke(null, new Object [] {args} ); 68 } catch (Exception e) { 69 JOptionPane.showMessageDialog(null, 70 "You need the toolbox.jar with class com.lowagie.tools.Toolbox to use the iText Toolbox."); 71 } 72 } 73 } | Popular Tags |