Image1Designer Overview

Designer Overview

Designer (a.k.a. Couch Coder) is a visual designer and Java GUI generator. Walk through the Screen Shots to see how easily Designer works.

Screen Shot Index

BasicLine
Overview                                 (back to index)

Designer's GUI representation generates a Java Applet, Application, or Dialog for customization with Grinder or any other Java IDE.

For the class you are creating there are a set of class properties that you can edit and a list of components. Each component also has a set of properties. When you have specified your class properties, components, and component properties, you can generate most of the code for your Java Applet or Application.

BasicLine
Designer Work Space         (back to index)

Here is Designer's main window called the Designer Work Space. The window is empty when you first run designer, unless the class selected in Grinder has a workspace file (.dws) in the source location.

BasicLine
Default Tool Palettes           (back to index)

In addition to the workspace, there are two default tool palettes; the component tools and the alignment tools. These tool palettes appear unless you uncheck the corresponding items in the View Menu.

 

 

To add a component to your workspace, click on a tool in the toolbar and then click anywhere on the grid. You can also press the left mouse button and drag the corner to add components of a specific size. You can easily resize a component by dragging one of the corner handles.

BasicLine
Properties                               (back to index)

Many aspects of the Java Class you are creating or editing are specified in the Class Properties dialog, available from the File menu or by double-clicking on the grid background.

Properties:  General

The first page, the General properties, is where you specify the class name you are creating. You also specify the superclass. You may choose a different superclass depending on whether you want to generate an Applet, Application, or Dialog. Any interface names you enter in the interfaces field will be generated with an "implements" keyword when your class is defined. You also specify your layout class here. By default, GridBag Layout is assumed, but you may specify any layout class. If you choose Other.., you must specify the layout class name. Any arguments are generated as parameters to the constructor of the layout class in the generated code.

 

 

BasicLine
Properties:  Imports                         (back to index)

The second page, the Imports page, lets you specify the list of import statements to generate.  You may specify a different list for Applets, Application, or Dialogs.  By default, every list includes java.awt.*.  You may also specify a class comment on this page.

 

 

BasicLine
Properties:  Attributes         (back to index)

The Attributes page lets you specify the scope for your class (whether it is public, private, or protected) and the final and abstract attributes.  A class may not be both abstract and final.  You may also specify a window title or background color for your class.

BasicLine
Properties:  Methods           (back to index)

The Methods page lets you choose methods to include in your class.  Methods come from existing classes using the Import from Source menu item on the file menu.  At first you will not have many methods, but over time you can create template files with methods you commonly use and then include them in newly created classes.  Your library of available methods will grow as you use Designer.

 

 

BasicLine
Properties:  Events            (back to index)

Events form the core of Java programming.  Many program actions are triggered by interactions with screen components that generate events.  For example, a button that is clicked by the user will generate an event that you can use to provide whatever action you wish to occur when that button is clicked.  Designer supports both 1.0 and 1.1 Java events.

 

 

BasicLine
Properties:  Menu Bar         (back to index)

The Menu page allows you to specify menus and menu items for your application. Applets and Dialogs do not support menu bars.

 

 

BasicLine
Properties:  Directories         (back to index)

The directories page allows you to choose a location to save your source and workspace files. Note that the file names are the same as the class name.
 

 

 

BasicLine
Component Properties            (back to index)

Every component you add to your class has properties of its own. Here is the first page of the Component Properties Dialog.

 

Here you specify the component name, label, and class name. The components have defaults for these values, but using the Other components, you can specify any component. The Initializer is used when the component is instantiated. If the component is not visible, it will not appear on the grid of the workspace, but you can still select and edit it using the Select menu item of the Tools menu. If the component you have chosen has other properties, the Other Properties button will be enabled.

BasicLine
For components having their own layout manager,  the Panel page is next. For other components, the next page is the Attributes page.

 

BasicLine The Attributes page lets you specify the Component scope, background color, foreground color, font, and other attributes that effect how the components are displayed or used.

 

 

BasicLine
The Events page lets you specify events for your component. The type of events supported is determined by the Events page of the Class Properties.

 

BasicLine
The Grid Layout properties lets you to specify the origin, width, and height of the component in grid units.  The values will change if you move or resize the component.

 


The Advanced properties specify how your component is laid out in the parent panel or class. They are used in generating constraint objects.

 

BasicLine
Related Pages:

top of page
 


For information or questions send e-mail to info@tpex.com
 Send to
webmaster@tpex.com for questions about this site

 

 Copyright 1996-2000 © The Paradigm Exchange  All rights reserved