public void clearPalette(){
  currentPaletteList.removeAllElements();
}

public void clearPalette ( ) { currentPaletteList . removeAllElements ( ) ; }
sets the number of elements in the current palette widget list to zero .
