1 30 31 package com.jgoodies.looks.windows; 32 33 import javax.swing.JTextField ; 34 import javax.swing.UIManager ; 35 import javax.swing.plaf.basic.BasicComboBoxEditor ; 36 37 47 class WindowsComboBoxEditor extends BasicComboBoxEditor { 48 49 WindowsComboBoxEditor() { 50 editor = new JTextField ("", UIManager.getInt("ComboBox.editorColumns")); 51 editor.setBorder(UIManager.getBorder("ComboBox.editorBorder")); 52 } 53 54 public void setItem(Object item) { 55 super.setItem(item); 56 editor.selectAll(); 57 } 58 59 65 static final class UIResource extends WindowsComboBoxEditor implements 66 javax.swing.plaf.UIResource { 67 } 69 } | Popular Tags |