Project - the root folder
subfolders - under project folder
endfolders - under subfolders folder
i created dynamic JMenus(initialize in the constructor) from a subfolders of Project(this is the root folder), i made it dynamically because the folders are not permanent, it could be deleted, and also under subfolders is i created a JMenuItem which are the endfolders, now i am confused on how to add an actionlistener to the JMenu/JMenuItem because the initialization of the components are in my constructor,
that is how i initialize the JMenu dynamically, my problem is how to add an action listener to that style.
Runs smoothly? No actionPerformed? What do you mean by runs smoothly then?
Impossible to say whats going wrong at your end without seeing the code.
Post some SSCCE which demonstrates the problem and which we can try out on our machines.
@maneesh: i mean it run before, without the actionperformed, after i insert the code, it still run but no action when i click the JMenu, and yes i will post the code snippet but i have to make another because the original code is very long.. i will just make it short, regarding only to the topic..
@michael: it can be but theres an endfolders after subfolders, i will just show you the code..