Class FactoryPanel<T>

Type Parameters:
T - the class of thing to create.
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FactoryPanel<T> extends JPanel
FactoryPanel allows a user to select from a list of things that can be created by a given Factory.
See Also:
  • Constructor Details

    • FactoryPanel

      public FactoryPanel(Factory<T> factory)
  • Method Details

    • getResult

      public int getResult()
      Returns:
      either JOptionPane.OK_OPTION or JOptionPane.CANCEL_OPTION
    • getSelectedNode

      public String getSelectedNode()