make methods chooser smaller

This commit is contained in:
anna
2011-03-21 12:57:32 +01:00
parent 938868c348
commit 9b4452b58d
@@ -175,6 +175,7 @@ public class IntroduceParameterHandler extends IntroduceHandlerBase implements R
superMethod.setMnemonic('U');
panel.add(superMethod, BorderLayout.SOUTH);
final JBList list = new JBList(validEnclosingMethods.toArray());
list.setVisibleRowCount(5);
list.setCellRenderer(new MethodCellRenderer());
list.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
list.setSelectedIndex(0);