Re: calling action function of the inner class in main function
- From: "anoop" <anoop@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Jul 2005 23:20:02 -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
call the functions of the class extended from Frame class - MenuBarFrame
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
Menu , MenuBar, MenuItem instance is created
and all these objects added
I have Created MenuBarFrame class instance as
Object x= new menu_show().new MenuBarFrame
????? How to call the functions -- action of MenuBarFrame class - what
should be its parameters??????
}
"Lars-Inge Tønnessen [VJ# MVP]" wrote:
>
> Hi,
>
> Could you please give us more information what you want to do.
> A few lines of code that is not working is very welcome.
>
>
> Regards,
> Lars-Inge Tønnessen
>
>
>
.
- Follow-Ups:
- Re: calling action function of the inner class in main function
- From: Lars-Inge Tønnessen [VJ# MVP]
- Re: calling action function of the inner class in main function
- From: Lars-Inge Tønnessen [VJ# MVP]
- Re: calling action function of the inner class in main function
- References:
- calling action function of the inner class in main function
- From: anoop
- Re: calling action function of the inner class in main function
- From: Lars-Inge Tønnessen [VJ# MVP]
- calling action function of the inner class in main function
- Prev by Date: Re: java.text.DecimalFormat
- Next by Date: Re: calling action function of the inner class in main function
- Previous by thread: Re: calling action function of the inner class in main function
- Next by thread: Re: calling action function of the inner class in main function
- Index(es):
Relevant Pages
|