# HG changeset patch # User Peter Hofer # Date 1321887272 -3600 # Node ID 9482471a7dfaa8288d857c1a140639be3dc04650 # Parent 89d28dec0a255b4fe37cbd052f002d0b516c3a4c IdealGraphVisualizer: add a workaround to fix layouting of the QuickSearch combobar with the GTK look and feel diff -r 89d28dec0a25 -r 9482471a7dfa src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/EditorTopComponent.java --- 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);