From ca5b57eeab12805bac67a25d6fe4d9fd00272e0e Mon Sep 17 00:00:00 2001 From: "kh5325.kim" Date: Fri, 14 Sep 2012 16:50:45 +0900 Subject: [PATCH] [Title] Added TreeColumn#pack() in tree selection listener [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- .../src/org/tizen/common/connection/ui/TizenRemoteFileDialog.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.tizen.common.connection/src/org/tizen/common/connection/ui/TizenRemoteFileDialog.java b/org.tizen.common.connection/src/org/tizen/common/connection/ui/TizenRemoteFileDialog.java index b098c87..e5a830d 100755 --- a/org.tizen.common.connection/src/org/tizen/common/connection/ui/TizenRemoteFileDialog.java +++ b/org.tizen.common.connection/src/org/tizen/common/connection/ui/TizenRemoteFileDialog.java @@ -160,6 +160,8 @@ public class TizenRemoteFileDialog { path.setText(selectedDir.getFullPath()); } } + for (TreeColumn column : pathTree.getColumns()) + column.pack(); } }); } @@ -224,16 +226,14 @@ public class TizenRemoteFileDialog { // table is getting smaller so make the columns // smaller first and then resize the table to // match the client area width - //nameColumn.setWidth(width); - nameColumn.pack(); + nameColumn.setWidth(width); pathTree.setSize(area.width, area.height); } else { // table is getting bigger so make the table // bigger first and then make the columns wider // to match the client area width pathTree.setSize(area.width, area.height); - //nameColumn.setWidth(width); - nameColumn.pack(); + nameColumn.setWidth(width); } } }); -- 2.7.4