Class MMMainMenuRandomArmyDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MMMainMenuRandomArmyDialog extends AbstractRandomArmyDialog
This Random Army Dialog is shown in MM's main menu. It allows generating armies and saving the chosen units to a MUL file. It can be used in other places.
See Also:
  • Constructor Details

    • MMMainMenuRandomArmyDialog

      public MMMainMenuRandomArmyDialog(JFrame parent)
      Creates a random army dialog for the given parent frame. It has a button that allows saving the chosen units to a MUL file.
      Parameters:
      parent - A parent frame for the dialog
  • Method Details

    • createButtonsPanel

      protected JComponent createButtonsPanel()
      Description copied from class: AbstractRandomArmyDialog
      Override to add buttons or other components to the bottom of the dialog. The returned component is added when setVisible(true) is called for the first time; it is added as BorderLayout.SOUTH and is therefore stretched to the width of the dialog.
      Specified by:
      createButtonsPanel in class AbstractRandomArmyDialog
      Returns:
      A button panel for the dialog