From: kh5325.kim Date: Fri, 14 Sep 2012 07:50:45 +0000 (+0900) Subject: [Title] Added TreeColumn#pack() in tree selection listener X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca5b57eeab12805bac67a25d6fe4d9fd00272e0e;p=sdk%2Fide%2Fcommon-eplugin.git [Title] Added TreeColumn#pack() in tree selection listener [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- 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); } } });