Class ClientDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
AbstractGameConnectionDialog, PlanetaryConditionsDialog

public class ClientDialog extends JDialog
A MegaMek Dialog box.
See Also:
  • Field Details

    • owner

      protected Window owner
  • Constructor Details

  • Method Details

    • center

      public void center()
      Center the dialog within the owner frame.
    • addOptionRow

      public void addOptionRow(JPanel targetP, GridBagConstraints c, JLabel label, Component secondC)
      Adds a row (line) with the two JComponents label, secondC to the given panel, using constraints c. The label will be right-aligned, the secondC left-aligned to bring them close together. Only useful for simple panels with GridBagLayout.