Class ScenarioTable

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ScenarioTable extends JPanel implements ActionListener
CLASS TO GATHER CONTENT FOR TABLE TO DEFINE POLICY SCENARIO
See Also:
  • Constructor Details

    • ScenarioTable

      public ScenarioTable(String tableText, String[] columnNames, Object[][] data)
      CONSTRUCTOR TO INITIATE TABLE
      Parameters:
      columnNames -
      data -
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      TODO: PROBLEM WITH LISTENER - DOESN'T CAPTURE LAST EDIT IN TABLE
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event -
    • createAndShowGUI

      public static JFrame createAndShowGUI(String title, String text, String[] columnNames, Object[][] data)
      Create the GUI and show it. For thread safety, this method should be invoked from the event-dispatching thread.
    • create

      public static void create(String title, String text, String[] columnNames, Object[][] data)