com.lowagie.tools

Class Toolbox

public class Toolbox extends JFrame implements ToolMenuItems, ActionListener

This is a utility that allows you to use a number of iText tools.
Nested Class Summary
classToolbox.Console
A Class that redirects output to System.out and System.err.
Field Summary
JScrollPaneconsole
The ConsolePane of the toolbox.
JDesktopPanedesktop
The DesktopPane of the toolbox.
intlocationX
x-coordinate of the location of a new internal frame.
intlocationY
y-coordinate of the location of a new internal frame.
static longserialVersionUID
Propertiestoolmap
The list of tools in the toolbox.
Constructor Summary
Toolbox()
Constructs the Toolbox object.
Method Summary
voidactionPerformed(ActionEvent evt)
static voidcenterFrame(JFrame f)
AbstractToolcreateFrame(String name)
Creates an Internal Frame.
JMenuBargetMenubar()
Gets the menubar.
static voidmain(String[] args)
Starts the Toolbox utility.

Field Detail

console

private JScrollPane console
The ConsolePane of the toolbox.

desktop

private JDesktopPane desktop
The DesktopPane of the toolbox.

locationX

private int locationX
x-coordinate of the location of a new internal frame.

locationY

private int locationY
y-coordinate of the location of a new internal frame.

serialVersionUID

private static final long serialVersionUID

toolmap

private Properties toolmap
The list of tools in the toolbox.

Constructor Detail

Toolbox

public Toolbox()
Constructs the Toolbox object.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent evt)

See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)

centerFrame

public static void centerFrame(JFrame f)

createFrame

public AbstractTool createFrame(String name)
Creates an Internal Frame.

Parameters: name the name of the app

Throws: ClassNotFoundException IllegalAccessException InstantiationException PropertyVetoException

getMenubar

private JMenuBar getMenubar()
Gets the menubar.

Returns: a menubar

main

public static void main(String[] args)
Starts the Toolbox utility.

Parameters: args no arguments needed