Ver código fonte

update UI in GUI

dominik.rieder 7 anos atrás
pai
commit
c9df3f2030
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      src/ui/view/GUI.java

+ 5 - 0
src/ui/view/GUI.java

@@ -766,6 +766,7 @@ public class GUI<E> implements CategoryListener {
 						updCon.refreshTableHolonElement(model.getMultiTable(), model.getSingleTable());
 						updCon.refreshTableProperties(model.getPropertyTable());
 						controller.calculateStateForTimeStep(model.getCurIteration());
+						contentPane.updateUI();
 					}
 				}
 			}
@@ -785,6 +786,7 @@ public class GUI<E> implements CategoryListener {
 							updCon.refreshTableHolonElement(model.getMultiTable(), model.getSingleTable());
 							updCon.refreshTableProperties(model.getPropertyTable());
 							controller.calculateStateForTimeStep(model.getCurIteration());
+							contentPane.updateUI();
 							// Names displayed in graph are not updated
 						}
 						model.getEleToDelete().clear();
@@ -950,6 +952,7 @@ public class GUI<E> implements CategoryListener {
 					updCon.refreshTableProperties(model.getPropertyTable());
 					model.getSingleTable().fireTableDataChanged();
 					controller.calculateStateForTimeStep(model.getCurIteration());
+					contentPane.updateUI();
 					unitGraph.repaint();
 				} catch (Exception e) {
 
@@ -1150,6 +1153,7 @@ public class GUI<E> implements CategoryListener {
 							canvas.repaint();
 						}
 						controller.calculateStateForCurrentTimeStep();
+						contentPane.updateUI();
 						dragging = false;
 					}
 				} catch (Exception eex) {
@@ -1610,6 +1614,7 @@ public class GUI<E> implements CategoryListener {
 			public void stateChanged(ChangeEvent e) {
 				int i = model.getCurIteration();
 				controller.calculateStateForTimeStep(i);
+				contentPane.updateUI();
 				unitGraph.repaint();
 				statSplitPane.repaintGraphs();
 			}