Calling an applet from an applet??


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Calling an applet from an applet??

  1. #1
    the java fool Guest

    Calling an applet from an applet??


    I'm new to java so please excuse the ignorance. I have an applet with tabbed
    pages. On one tab
    I need an image map with zoom-in capabilities. I have an applet that will
    do this but how can I call
    an applet from within an apple? Any help appreciated.

  2. #2
    Paul Clapham Guest

    Re: Calling an applet from an applet??

    You need a class that can do what you want. Then you can access that class
    from as many applets as you like.

    To do this, just extract the relevant code from the applet that contains it
    now and design a class that you can call. Change the old applet to call it,
    and make your new applet call it too. This will complicate your life
    somewhat, because you'll have to create jar files containing your applets
    plus the new imagemap class and change your html to use the jar files.

    the java fool <chris.h.etgen@lmco.com> wrote in message
    news:39529027$1@news.devx.com...
    >
    > I'm new to java so please excuse the ignorance. I have an applet with

    tabbed
    > pages. On one tab
    > I need an image map with zoom-in capabilities. I have an applet that will
    > do this but how can I call
    > an applet from within an apple? Any help appreciated.




  3. #3
    Adam Guest

    Re: Calling an applet from an applet??


    "the java fool" <chris.h.etgen@lmco.com> wrote:
    >
    >I'm new to java so please excuse the ignorance. I have an applet with tabbed
    >pages. On one tab
    >I need an image map with zoom-in capabilities. I have an applet that will
    >do this but how can I call
    >an applet from within an apple? Any help appreciated.


    Another way to do this is to create a JavaBean out of the internal applet,
    then you can use it sort of like an ActiveX control. I don't know too much
    about the structure of JavaBeans, just the theory. If you do some researdh
    on the Web i'm sure you'll find something


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