Changing type of calculation
This page describes the procedure of changing the type of calculation to global matrix calculation
Initializing
- By using the menu, the user calls the changeTypeOfCalculation method of the MainGUI_Frame with global matrix (as an item of the enumerator EtypesOfCalculations) as the parameter
- This method also calls the createTable method and passes the global matrix parameter for creating the needed child of JTable. In this case JTableGM
- After returning of the createTable method a new instance of GlobalMatrixBean is created. Now the new bean creates a new TableModelGM, which later is used by the JTableGM.
- Additonally the createEmptyData method is called and creates a new two dimensional Object array, called 'data' and fills it with descriptions for the rows of the table and the associated default values.
- In the last step this Object array is given to the TableModelGM by the setData method.

Setting
Now there are only missing some get and set operations.
- The MainGUI_Frame calls the setDataBean method of the JTableGM and passes the bean (GlobalMatrixBean), created in the begining.
- In the next step the MainGUI_Frame takes the table model, created in the bean, and passes it to the JTableGM calling the setModel method. After returning the changing of the type of calculation is finished.
