Class CommandGenerationStandardPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
mekhq.gui.commandGeneration.components.CommandGenerationStandardPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CommandGenerationStandardPanel extends JPanel
A specialized JPanel used to group related controls inside Command Generation tabs.

Mirrors CampaignOptionsStandardPanel: an optional rounded titled border whose title text comes from the mekhq.resources.CommandGenerationDialog bundle. The layout itself is left to the caller — pair this with CampaignOptionsGridBagConstraints the same way the Campaign Options sub-panels do.

See Also:
  • Constructor Details

    • CommandGenerationStandardPanel

      public CommandGenerationStandardPanel(String name)
      Borderless panel; just a named JPanel with the pnl<name> component name.
    • CommandGenerationStandardPanel

      public CommandGenerationStandardPanel(String name, boolean includeBorder)
      Optional untitled rounded border.
      Parameters:
      name - the bundle-key suffix (used for the component name)
      includeBorder - when true, a rounded line border is applied
    • CommandGenerationStandardPanel

      public CommandGenerationStandardPanel(String name, boolean includeBorder, String borderTitle)
      Optional titled rounded border.
      Parameters:
      name - the bundle-key suffix (used for the component name)
      includeBorder - when true, a rounded line border is applied
      borderTitle - bundle-key suffix for the border title; final key is lbl<borderTitle>.text. Empty string yields an untitled border (when includeBorder is true).