org.acm.seguin.uml.refactor
Class PackageList

java.lang.Object
  extended by org.acm.seguin.uml.refactor.PackageList

public class PackageList
extends java.lang.Object

Creates a label and a jcombo box and adds it into the JDialog. The combo box contains a list of all the packages that have been created so far. This assumes that the dialog box has used a GridBagLayout, and makes the label fill one column and the combo box fill 2 columns.

The usage:

PackageList pl = new PackageList();
JComboBox save = pl.add(this);

Author:
Chris Seguin

Constructor Summary
PackageList()
           
 
Method Summary
 javax.swing.JComboBox add(javax.swing.JDialog dialog)
          Adds a label and the combo box to the designated dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageList

public PackageList()
Method Detail

add

public javax.swing.JComboBox add(javax.swing.JDialog dialog)
Adds a label and the combo box to the designated dialog

Parameters:
dialog - the dialog window
Returns:
the combo box that was added