if i right click the swing jpopupmenu, all the 4 label actions will be default actions.
Not really. A "default" action is usually the action fired on specific triggers like double click or hitting return. e.g. In Windows explorer, if you right click on a drive (c:,d: etc) the "default" action is "explore". The visual clue associated with the default action, is that the text is bold.
how can I allow/view createFolderAction only.
1) Disable all other actions. 2) Don't add them to the popup. 3) If already added, remove them from the popup.