changeset 3678:9482471a7dfa

IdealGraphVisualizer: add a workaround to fix layouting of the QuickSearch combobar with the GTK look and feel
author Peter Hofer <peter.hofer@jku.at>
date Mon, 21 Nov 2011 15:54:32 +0100
parents 89d28dec0a25
children 6157f507b7df
files src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/EditorTopComponent.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/EditorTopComponent.java	Mon Nov 21 14:31:28 2011 +0100
+++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/EditorTopComponent.java	Mon Nov 21 15:54:32 2011 +0100
@@ -287,11 +287,12 @@
         interactionButtons.add(button);
         toolBar.add(button);
         selectionModeAction.addPropertyChangeListener(this);
-        
+
         toolBar.add(Box.createHorizontalGlue());
         Action action = Utilities.actionsForPath("QuickSearchShadow").get(0);
         Component quicksearch = ((Presenter.Toolbar) action).getToolbarPresenter();
-        toolBar.add(quicksearch, BorderLayout.CENTER);
+        quicksearch.setMinimumSize(quicksearch.getPreferredSize()); // necessary for GTK LAF
+        toolBar.add(quicksearch);
 
         centerPanel = new JPanel();
         this.add(centerPanel, BorderLayout.CENTER);