protected void createTools(Panel palette) { super.createTools(palette); Tool tool = new TextTool(view(), new NodeFigure()); palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool)); tool = new CreationTool(view(), new NodeFigure()); palette.add(createToolButton(IMAGES + "RECT", "Create Org Unit", tool)); tool = new ConnectionTool(view(), new LineConnection()); palette.add(createToolButton(IMAGES + "CONN", "Connection Tool", tool)); }
public static void main(String[] args) { DrawApplication window = new NetApp(); window.open(); }