Class TabScrollPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class TabScrollPane extends JScrollPane
This JScrollPane is used for the tabs (Structure, Fluff etc) of the various unit UIs. It is a standard JScrollPane that sets the Scrollbars to "as needed", removes the border and sets the mouse wheel scroll speed to a sensible value.
See Also:
  • Constructor Details

    • TabScrollPane

      public TabScrollPane(Component view)
      Creates a standardized borderless scroll pane with suitable scroll increment for one of the main tabs in MML (BMBuildTab etc).
      Parameters:
      view - The tab component (BMBuildTab etc) to show in the scroll pane
    • TabScrollPane

      public TabScrollPane()
      Creates a standardized borderless scroll pane with suitable scroll increment for one of the main tabs in MML (BMBuildTab etc).
    • TabScrollPane

      public TabScrollPane(Component view, ComponentListener componentListener)
      Creates a tab scroll pane with the given ComponentListener attached to it. The ComponentListener can be used, e.g., to update the tab when it is activated, ComponentListener.componentShown(ComponentEvent). (When a tab is clicked, the "Shown" event is fired for the component directly attached as the tab, but not any subcomponents.)
      Parameters:
      view - The tab component (BMBuildTab etc) to show in the scroll pane
      componentListener - The ComponentListener to attach to the scroll pane