Skip to content
Snippets Groups Projects
Commit 5f7bd438 authored by dblouin's avatar dblouin
Browse files

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

parent 4a9b7c29
No related branches found
No related tags found
No related merge requests found
......@@ -137,9 +137,9 @@ public class TADArrayGetState extends TGCWithoutInternalComponent implements Bas
String oldValue = value;
JDialogArrayGet jdag = new JDialogArrayGet(frame, variable, array, index, "Getting value from an array");
jdag.setSize(350, 300);
GraphicLib.centerOnParent(jdag);
jdag.show(); // blocked until dialog has been closed
// jdag.setSize(350, 300);
GraphicLib.centerOnParent(jdag, 350, 300);
jdag.setVisible( true ); // blocked until dialog has been closed
if (jdag.hasNewData() && jdag.hasValidData()) {
variable = jdag.getVariableName();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment