1
0
Ответвление 0

Resize path panel correctly when removing a path.

Этот коммит содержится в:
Holt59 2018-03-03 22:44:30 +01:00
родитель 1653558f94
коммит 2f1fa81a58

Просмотреть файл

@ -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);