public PropertyCellEditorWithEllipsis() { setLayout( new BorderLayout() ); this.eventListenerList = new EventListenerList(); ellipsisButton = new EllipsisButton( "..." ); ellipsisButton.addActionListener( new ExtendedEditorAction() ); textField = new JTextField(); textField.getInputMap().put ( Messages.getInstance().getKeyStroke( "PropertyCellEditorWithEllipsis.PopupEditor.Accelerator" ), POPUP_EDITOR ); textField.getActionMap().put( POPUP_EDITOR, new ExtendedEditorAction() ); textField.setBorder( BorderFactory.createEmptyBorder() ); add( textField, BorderLayout.CENTER ); add( ellipsisButton, BorderLayout.EAST ); nullable = false; }
public ArrayCellEditor() { setLayout( new BorderLayout() ); this.eventListenerList = new EventListenerList(); ellipsisButton = new EllipsisButton( "..." ); ellipsisButton.setDefaultCapable( false ); ellipsisButton.addActionListener( new ExtendedEditorAction() ); textField = new JTextField(); textField.setDocument( new NonFilteringPlainDocument() ); textField.getInputMap().put( Messages.getInstance().getKeyStroke ( "PropertyCellEditorWithEllipsis.PopupEditor.Accelerator" ), POPUP_EDITOR ); textField.getActionMap().put( POPUP_EDITOR, new ExtendedEditorAction() ); textField.setBorder( BorderFactory.createEmptyBorder() ); textField.setEditable( false ); add( textField, BorderLayout.CENTER ); add( ellipsisButton, BorderLayout.EAST ); nullable = false; }