how to instantiate the inner class.
- From: "anoop" <anoop@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Jul 2005 10:36:05 -0700
Hello,
I created a .java code file in Visual J#.Net and converted it into
the application by adding the "public static void main(String args[])"
function.
I have created the two classes one extends from Applet, and the other
extends from Frame. The class which I inherited from the Frame class becomes
the inner class of the class extended from the Applet. Now How do I
instantiate the class extended from Frame class. the outline code is
public class menu_show extends Applet
{
------init , paint action function---------
}
public class MenuBarFrame extends Frame
{
paint,action function for Menu
}
public static void main(String args[])
{
applet class instance is created
instance of frame is created
MenuBarframe Instance ? - How to create here? - : An explicit enclosing
instance of class 'menu_show' is needed to instantiate inner class
'MenuBarFrame'
Menu , MenuBar, MenuItem instance is created
}
.
- Follow-Ups:
- Re: how to instantiate the inner class.
- From: David Anton
- RE: how to instantiate the inner class.
- From: David Anton
- Re: how to instantiate the inner class.
- Prev by Date: Re: Microsoft J# Browser Controls Question
- Next by Date: RE: how to instantiate the inner class.
- Previous by thread: Microsoft J# Browser Controls Question
- Next by thread: RE: how to instantiate the inner class.
- Index(es):
Relevant Pages
|