aspose file tools
The moose likes Java in General and the fly likes implementation of super class and sub class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "implementation of super class and sub class" Watch "implementation of super class and sub class" New topic
Author

implementation of super class and sub class

sony vijay
Ranch Hand

Joined: Jun 27, 2010
Posts: 32
Hi,

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?

Thanks,
Sony

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: implementation of super class and sub class
 
Similar Threads
How to print the Output
How to catch Runtime error
System Tray - double click icon to set visible
adding a save method
Cursor object not returning data properly.