Display Applet in Application


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Display Applet in Application

  1. #1
    JCantrell Guest

    Display Applet in Application


    How can you display an applet inside of an application? Is it possible? I
    assume it is but I can't find any examples.

  2. #2
    MarkN Guest

    Re: Display Applet in Application


    "JCantrell" <albedawn2@hotmail.com> wrote:
    >
    >How can you display an applet inside of an application? Is it possible?

    I
    >assume it is but I can't find any examples.


    An existing Applet? If you have access to the code then you don't need the
    applet. An applet is just an application.

  3. #3
    JCantrell Guest

    Re: Display Applet in Application


    I actually posted the question for someone I work with who is building a Java
    web browser for a school project. The applet is an animation he wants to
    display inside of the browser. He does have access to the code in the applet.


    I told him he could change some of the code to make the animation a class
    object by itself that can be used in an applet or application (I haven't
    personaly seen the code so I don't know how hard this would be). Since I
    don't know if this approach would be feasible I thought I'd see if there
    are any Java controls that can display the applet as it is.

    One other possible hitch: the applet uses awt instead of swing.

    Thanks for the reply.


    "MarkN" <M@N.com> wrote:
    >
    >"JCantrell" <albedawn2@hotmail.com> wrote:
    >>
    >>How can you display an applet inside of an application? Is it possible?

    >I
    >>assume it is but I can't find any examples.

    >
    >An existing Applet? If you have access to the code then you don't need

    the
    >applet. An applet is just an application.



  4. #4
    MarkN Guest

    Re: Display Applet in Application


    The way you told him to do it is the right way and was what I was saying.
    AWT should not be a problem. If it uses applet specific code it might.


    "JCantrell" <java.@127.0.0.1> wrote:
    >
    >I actually posted the question for someone I work with who is building a

    Java
    >web browser for a school project. The applet is an animation he wants to
    >display inside of the browser. He does have access to the code in the applet.
    >
    >
    >I told him he could change some of the code to make the animation a class
    >object by itself that can be used in an applet or application (I haven't
    >personaly seen the code so I don't know how hard this would be). Since I
    >don't know if this approach would be feasible I thought I'd see if there
    >are any Java controls that can display the applet as it is.
    >
    >One other possible hitch: the applet uses awt instead of swing.
    >
    >Thanks for the reply.
    >
    >
    >"MarkN" <M@N.com> wrote:
    >>
    >>"JCantrell" <albedawn2@hotmail.com> wrote:
    >>>
    >>>How can you display an applet inside of an application? Is it possible?

    >>I
    >>>assume it is but I can't find any examples.

    >>
    >>An existing Applet? If you have access to the code then you don't need

    >the
    >>applet. An applet is just an application.

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center