This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am using a super class MenupopupAdapter and a subclass BackgroundContextMenu. I am using the constructor of super class to add a menu item - "Create new package" which is shared by other sub classes. I am using the constructor of the sub class to add a menu item - "New Root Entry".
As the constructor of the superclass is implemented before that of the sub class, the order of the menu items for Background context menu is: "Create new package" and "New Root Entry". But, only for this particular sub class I want the order to be reversed meaning I want "New Root Entry" as the first menu item. How do I achieve this?