Skip to content
Snippets Groups Projects
Commit 02eb22e4 authored by dblouin's avatar dblouin
Browse files

Issue #17: Limit the size of opening dialogs to the size of the screen

parent 91155aa3
No related branches found
No related tags found
No related merge requests found
......@@ -195,8 +195,8 @@ public abstract class TGCAttributeBox extends TGCWithoutInternalComponent {
String oldValue = value;
JDialogAttribute jda = new JDialogAttribute(myAttributes, forbiddenNames, frame, "Setting " + attributeText + "s of " + father.getValue(), attributeText);
setJDialogOptions(jda);
jda.setSize(650, 375);
GraphicLib.centerOnParent(jda);
// jda.setSize(650, 375);
GraphicLib.centerOnParent(jda, 650, 375);
jda.setVisible(true); // blocked until dialog has been closed
makeValue();
if (oldValue.equals(value)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment