Class MainPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MainPanel extends JMCHWizardPanel
Main Panel of the MainWizard. This panel offers the possibility of choosing between a JTeach Model or Markov chain.
Author:
Lorenzo Torri Date: 29-mar-2024 Time: 15.04
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • initGUI

      public void initGUI()
    • selectedRender

      public ListCellRenderer<String> selectedRender(int i)
      To set the look of each element inside the JList.
      Parameters:
      i - index of the element of the JList that needs to be rendered
      Returns:
      ListCellRenderer, a class that is encharge of changing the look of the cell
    • createSubMenus

      public JPopupMenu[] createSubMenus()
      To create all the subMenus for each element of the JList
      Returns:
      the array of subMenus
    • getName

      public String getName()
      Overrides:
      getName in class JMCHWizardPanel
      Returns:
      the panel's name
    • createMenu

      public void createMenu()
      Creates a menu to be displayed in the MainWizard
    • createToolBar

      public void createToolBar()
      Creates a toolbar to be displayed in the MainWizard.
    • gotFocus

      public void gotFocus()
      Description copied from class: WizardPanel
      called by the Wizard when the panel becomes active
      Overrides:
      gotFocus in class WizardPanel
    • setLastPanel

      public void setLastPanel()
      Overrides:
      setLastPanel in class JMCHWizardPanel
    • lostFocus

      public void lostFocus()
      Description copied from class: WizardPanel
      called by the Wizard before when switching to another panel
      Overrides:
      lostFocus in class WizardPanel