This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi Preeti, Only Frames can contain MenuBars, this is true....as for PopupMenus, there is a add(PopupMenu p) method in Component class, so PopupMenus can be added to all components, this method is inherited by all components(Button, CheckBox etc) and containers. Correct me if I am wrong. Nandini