浏览代码

Fixes Panel not being painted on start

Andreas T. Meyer-Berg 6 年之前
父节点
当前提交
8b0bbf7f5d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/de/tu_darmstadt/tk/SmartHomeNetworkSim/view/VisualisationPanel.java

+ 3 - 0
src/main/java/de/tu_darmstadt/tk/SmartHomeNetworkSim/view/VisualisationPanel.java

@@ -81,6 +81,9 @@ public class VisualisationPanel extends JPanel implements Observer {
 			public void componentHidden(ComponentEvent e) {
 			}
 		});
+		control.setDimension(getWidth(), getHeight(), model.getDepth(),
+				true);
+		repaint();
 	}
 
 	@Override