Skip to content
Snippets Groups Projects

handle "bring to font" and "send to back" + links between the clone components itself and sub components

Merged Minh Hiep Pham requested to merge minh-issue_82 into master
2 files
+ 13
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -2408,7 +2408,13 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
JOptionPane.showMessageDialog(mgui.getFrame(), "Clone creation failed", "Exception", JOptionPane.INFORMATION_MESSAGE);
}
//bringToBack(_tgc);
bringToBack(_tgc);
for (int i = 0; i < componentList.size(); i ++){
if (componentList.get(i) instanceof TGConnector) {
TGComponent t = componentList.get(i);
bringToFront(t);
}
}
mgui.changeMade(this, NEW_COMPONENT);
repaint();
}
Loading