how to instantiate the inner class.



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

}



.



Relevant Pages

  • RE: how to instantiate the inner class.
    ... Instant VB: C# to VB.NET Converter ... > extends from Frame. ... The class which I inherited from the Frame class becomes ... > the inner class of the class extended from the Applet. ...
    (microsoft.public.dotnet.vjsharp)
  • Re: calling action function of the inner class in main function
    ... I have created the two classes one extends from Applet, ... The class which I inherited from the Frame class becomes ... call the functions of the class extended from Frame class - MenuBarFrame ...
    (microsoft.public.dotnet.vjsharp)
  • Re: Converting from AWT to Swing - Compile Error
    ... > I am converting an application from using AWT to swing. ... all I did was change Component to JComponent and Frame to ... Because an object of type JComonent can never be an instance of JFrame. ... JFrame extends Frame which extents Window which extends Container which ...
    (comp.lang.java.gui)
  • calling functions of the inner class- parameters of action functio
    ... I have created the two classes one extends from Applet, ... The class which I inherited from the Frame class becomes ... call the functions of the class extended from Frame class - MenuBarFrame ...
    (microsoft.public.dotnet.vjsharp)
  • Re: Proper way to handle window closing and program shutdown
    ... Converts a Applet into an Application. ... @param applicationWidth width of frame, ... public void windowClosing(WindowEvent e) ...
    (comp.lang.java.gui)