{
createNewGroup.setEnabled(false);
- String searchString = searchBox.getEditor().getItem().toString().trim();
+ String searchString = searchBox.getUserInput().trim();
if (isInvalidSearchString(searchString))
{
@Override
public void actionPerformed(ActionEvent e)
{
- System.out.println(">>>>> Clear cache items");
+ // System.out.println(">>>>> Clear cache items");
setSelectedItem("");
appCache.deleteCacheItems(cacheKey);
updateCache();
public void textfield_caretUpdate(CaretEvent e)
{
- if (searchBox.getEditor().getItem().toString().indexOf(">") > -1)
+ if (searchBox.getUserInput().indexOf(">") > -1)
{
SwingUtilities.invokeLater(new Runnable()
{
@Override
public void run()
{
- String str = searchBox.getEditor().getItem().toString();
+ String str = searchBox.getUserInput();
AlignmentI al = null;
try
{
jalview.util.Comparison.GapChars, al.getSequenceAt(0)
.getSequenceAsString());
- searchBox.setSelectedItem(str);
}
}
});