i have a public class named as clsbanking using JFrame, and then this frame has a menubar, that has FILE menuitem in it. the FILE menu has an Exit option which will actually close the whole frame for termination, unfortunately my codes doesnt work, what should be my code then. i hope u could help me guys :(

merci

It'd help if we saw your code so we'd know what you did wrong. If your menu is set up correctly, then to exit you can use this: System.exit(0);

Make sure you have the correct action listener for the exit menu. It'll be action performed.

thanks a lot guys for the help, i will post my code right away. :) thanks again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.