Results 1 to 12 of 12
  1. #1
    sahildave1991 Guest

    Default Connecting two Applets/JApplets

    Is there a way to connect two java applets i.e. i want to call another applet program from one.
    IT GOES LIKE THIS !!!

    i made a JApplet program in which there are few buttons and whenever a user clicks a button, the related JApplet program should open. How should i do it....

    Pls help:(

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    sahildave1991 Guest

    Default

    the second programs are really big....i cant configure them....is there any other way ???

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,332
    Rep Power
    25

    Default

    whenever a user clicks a button, the related JApplet program should open.
    Look at what class the JApplet extends. Can that class be added to a container? And that container put in a window of some kind to display?
    You'd need to call the applet methods(init(), etc) to get the applet to work properly.

    Or do you want to send an HTTP GET request to the server for another HTML page with the new applet in it?

  5. #5
    sahildave1991 Guest

    Default

    @norm :: i got NOTHING !!!!!!!!!!!!! pls explain in simple lang...i am new to all this...

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,458
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by sahildave1991 View Post
    @norm :: i got NOTHING !!!!!!!!!!!!! pls explain in simple lang...i am new to all this...
    Then don't even try to go there because your solution will be miserable at best. Start with the tutorials and simple (one class) programs and work your way through. What you want to do now is going to be a miserable failure because you don't know what you're doing; forget about it.

    kind regards,

    Jos

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,332
    Rep Power
    25

    Default

    connect two java applets
    What do you mean by "connect"?
    To run them both at the same time in the same browser invocation.
    Or to have one applet have the browser call the server and ask it to load an HTML page with the second applet. Read the AppletContext and Applet API doc for methods to do that.

  8. #8
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,458
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Norm View Post
    What do you mean by "connect"?
    To run them both at the same time in the same browser invocation.
    Or to have one applet have the browser call the server and ask it to load an HTML page with the second applet. Read the AppletContext and Applet API doc for methods to do that.
    My advice to the OP is: forget about it; if you don't know what you're doing and you don't understand the terminology needed for such a project, the project is going to fail miserably. Or some loony passes by and feeds the boilerplate code to the OP ...

    kind regards,

    Jos

  9. #9
    sahildave1991 Guest

    Default

    guys pls use simple words..... AppletContext, API doc, boilerplate code....wat are all these :( :mad:

  10. #10
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by sahildave1991 View Post
    the second programs are really big....i cant configure them....is there any other way ???
    Why not? Is this your code or found code from the internet? I second Jos's suggestion regarding gaining the knowledge to adapt and extend your programs for in this path lies success.

  11. #11
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,332
    Rep Power
    25

    Default

    pls use simple words..... AppletContext, API doc,
    These are things you MUST understand if you are to do what you want.

    is there any other way ??
    Yes, there is. Hire a java programmer.

  12. #12
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,458
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by sahildave1991 View Post
    guys pls use simple words..... AppletContext, API doc, boilerplate code....wat are all these :( :mad:
    Let me put it this way: if you come here asking how to multiply 3x1024 and you don't know what 'multiplication' is we can't even say to you "add 3 to itself 1024 times" because the simple word "times" implies multiplication. Face it: you can't do what you're asking for and we are not going to do it for you (hint: rentacoder). I'd say forget about it and start where everybody is supposed to start: install a JDK, write, compile and run your first "Hello World!" program and try to understand what you have done along the way. That way you save the world from a lot of crap, a lot of unnecessary threads in forums and you'll learn something. For now: forget about what you are attempting to do because you are not (yet) up to it.

    kind regards,

    Jos

Similar Threads

  1. connecting to a database
    By mxb7642 in forum JDBC
    Replies: 5
    Last Post: 09-08-2009, 08:39 AM
  2. Connecting JSP with database
    By ramachandran in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-13-2009, 06:15 AM
  3. Help connecting
    By xcallmejudasx in forum JDBC
    Replies: 3
    Last Post: 04-16-2009, 07:09 PM
  4. Connecting To SQL Server
    By rmaadil in forum JDBC
    Replies: 7
    Last Post: 08-20-2008, 05:53 PM
  5. Eclipse with JApplets
    By fred in forum Eclipse
    Replies: 1
    Last Post: 08-06-2007, 03:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •