Skip to content
Snippets Groups Projects
Commit f70ed1cc authored by Matej Kovár's avatar Matej Kovár
Browse files

added selection of the primary face in 1:1

parent 6183290e
No related branches found
No related tags found
No related merge requests found
......@@ -344,8 +344,25 @@ public class ProjectPanel extends JPanel {
if (project.getFaceByName(name2) == null) {
project.addFace(face2);
}
Object[] options = {face1.getShortName(), face2.getShortName()};
int choice = JOptionPane.showOptionDialog(this,
"Faces: ",
"Select primary face",
JOptionPane.DEFAULT_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[0]);
createFaceToFaceTab(face1, face2, name1 + ":" + name2, false);
if (choice == 0) {
createFaceToFaceTab(face1, face2, name1 + ":" + name2, false);
} else {
createFaceToFaceTab(face2, face1, name2 + ":" + name1, false);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment