question: private ScrollableJPopupMenu createContentAssistPopup ( final JFormattedTextField field , final List < String > possibleValues , final boolean multipleValuesAllowed , final Class < ? extends CellType > cellClass ) { final ScrollableJPopupMenu popupMenu = new ScrollableJPopupMenu ( ScrollableJPopupMenu . SIZE_SMALL ) ; popupMenu . setBackground ( Color . WHITE ) ; popupMenu . setCustomWidth ( field . getWidth ( ) ) ; if ( possibleValues == null || possibleValues . size ( ) <= 0 ) { JMenuItem emptyItem = new JMenuItem ( I18N . getMessage ( I18N . getGUIBundle ( ) , "gui.label.table_panel.no_content_assist_items.title" ) ) ; emptyItem . setToolTipText ( I18N . getMessage ( I18N . getGUIBundle ( ) , "gui.label.table_panel.no_content_assist_items.tip" ) ) ; emptyItem . setOpaque ( false ) ; popupMenu . add ( emptyItem ) ; return popupMenu ; } if ( multipleValuesAllowed ) { fillMultipleValuesSelectionPopup ( field , possibleValues , popupMenu , cellClass ) ; } else { fillSingleValueSelectionPopup ( field , possibleValues , popupMenu , cellClass ) ; } return popupMenu ; }
target:  Creates the content assist popup.