Skip to content
Snippets Groups Projects
Commit 197342d7 authored by dblouin's avatar dblouin
Browse files

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

parent c162e0b5
No related branches found
No related tags found
No related merge requests found
......@@ -140,9 +140,9 @@ public class TGCTimeDelay extends TGCWithoutInternalComponent{
array[0] = getMinDelay(); array[1] = getMaxDelay(); array[2] = getUnit();
JDialogTimeIntervalUnit jdti = new JDialogTimeIntervalUnit(frame, array, hasMaxDelay, "Setting time parameters", ind, "max");
jdti.setSize(350, 250);
GraphicLib.centerOnParent(jdti);
jdti.show(); // blocked until dialog has been closed
//jdti.setSize(350, 250);
GraphicLib.centerOnParent(jdti, 350, 250);
jdti.setVisible( true ); // blocked until dialog has been closed
minDelay = array[0]; maxDelay = array[1]; unit = array[2];
......
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