Resize path panel correctly when removing a path.
This commit is contained in:
		
							parent
							
								
									1653558f94
								
							
						
					
					
						commit
						2f1fa81a58
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -166,11 +166,12 @@ public class PathsPanel extends JPanel implements DrawingChangeListener, GraphCh | |||
|         this.add(new PathPanel(path)); | ||||
|         this.setVisible(true); | ||||
|         this.revalidate(); | ||||
|         this.repaint(); | ||||
|     } | ||||
| 
 | ||||
|     protected void removePath(PathPanel panel) { | ||||
|         PathsPanel.this.remove(panel); | ||||
|         PathsPanel.this.validate(); | ||||
|         PathsPanel.this.revalidate(); | ||||
|         PathsPanel.this.repaint(); | ||||
|         if (this.getComponentCount() == 0) { | ||||
|             this.setVisible(false); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue