GridBagConstraints constraints = new GridBagConstraints();
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.insets = new Insets(2, 5, 2, 5);
searchComboBox = new WHComboBox(new Object[] {}) {
public Dimension getPreferredSize() {
return new Dimension(300, 20);
}
};
searchComboBox.setEditable(true);
searchComboBox.getEditor().addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
searchComboBox.setSelectedItem(e.getActionCommand());
}
});
replaceLabel = new JLabel("Replace with: ");
replaceComboBox = new WHComboBox(new Object[] {}) {
public Dimension getPreferredSize() {
return new Dimension(300, 20);
}
};
replaceComboBox.setEditable(true);