From 2d8875178de7777fbf030a929e239e16c0806e8c Mon Sep 17 00:00:00 2001 From: Dominique Blouin <dominique.blouin@telecom-paristech.fr> Date: Wed, 12 Oct 2016 16:45:05 +0000 Subject: [PATCH] Provide API to limit dialog boxes sizes to the size of the screen + cleanup --- src/ui/tmlcompd/TMLCPrimitivePort.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui/tmlcompd/TMLCPrimitivePort.java b/src/ui/tmlcompd/TMLCPrimitivePort.java index 8cc7d564f4..be1cbd4453 100755 --- a/src/ui/tmlcompd/TMLCPrimitivePort.java +++ b/src/ui/tmlcompd/TMLCPrimitivePort.java @@ -521,9 +521,10 @@ public abstract class TMLCPrimitivePort extends TGCScalableWithInternalComponent otherTypes = tgc.getAllRecords(); } JDialogTMLCompositePort jda = new JDialogTMLCompositePort(commName, typep, list[0], list[1], list[2], list[3], list[4], isOrigin, isFinite, isBlocking, ""+maxSamples, ""+widthSamples, isLossy, lossPercentage, maxNbOfLoss, frame, "Port properties", otherTypes, dataFlowType, associatedEvent, isPrex, isPostex, checkConf, checkAuth); - jda.setSize(350, 700); - GraphicLib.centerOnParent(jda); - jda.show(); // blocked until dialog has been closed + // jda.setSize(350, 700); + GraphicLib.centerOnParent(jda, 350, 700 ); + // jda.show(); // blocked until dialog has been closed + jda.setVisible( true ); dataFlowType = jda.getDataFlowType(); associatedEvent = jda.getAssociatedEvent(); isPrex = jda.isChannelPrex(); -- GitLab