From dcda2c5fa15e63daad67f5720a2f726e34f8cd71 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Thu, 20 Dec 2018 20:11:57 -0500 Subject: [PATCH] Fix out of memory crash with TimeUnit. --- timeflow/app/ui/ComponentCluster.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/timeflow/app/ui/ComponentCluster.java b/timeflow/app/ui/ComponentCluster.java index d32b3b6..057f2dd 100755 --- a/timeflow/app/ui/ComponentCluster.java +++ b/timeflow/app/ui/ComponentCluster.java @@ -8,7 +8,7 @@ int numComps=0; int x1=80; int width=200; - int compH=30; + int compH=20; DottedLine line=new DottedLine(); public ComponentCluster(String name) @@ -25,9 +25,9 @@ { add(c); c.setBorder(null); - c.setBounds(x1,10+numComps*compH, c.getPreferredSize().width, c.getPreferredSize().height); + c.setBounds(x1,numComps*compH, c.getPreferredSize().width, c.getPreferredSize().height); numComps++; - line.setBounds(x1-10,10,1,numComps*compH-5); + line.setBounds(x1-10,10,0,numComps*compH); } public Dimension getPreferredSize() -- Gitblit v1.6.2