Results 1 to 3 of 3

Thread: Applets

  1. #1
    rdjava's Avatar
    rdjava is offline Member
    Join Date
    Jan 2011
    Posts
    38
    Rep Power
    0

    Default Applets

    I just have curious question, are you able to make an applet, place that online and have the applet open new windows? example

    Main menu - applet
    [Open calculator] - button in main menu (action: open a new JFrame)
    [Open temp converter] - button in main menu (action: open a new JFrame)

    Assuming that the JFrame class files are located where the applet class files are and the applet program is the main program running in the browser, the JFrames open as a separate window not browser window. Can this be done?

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    The best way of answering questions like this is to try it and see. It's as simple as putting "new JFrame().setVisible(true);" in the applet's start() method and seeing what happens.

  3. #3
    rdjava's Avatar
    rdjava is offline Member
    Join Date
    Jan 2011
    Posts
    38
    Rep Power
    0

    Default

    Quote Originally Posted by pbrockway2 View Post
    The best way of answering questions like this is to try it and see. It's as simple as putting "new JFrame().setVisible(true);" in the applet's start() method and seeing what happens.
    Ok. Ya i was just thinking about that but i wanted a second opinion, I dont see why it wont work.

Similar Threads

  1. New to Applets
    By Psyclone in forum Java Applets
    Replies: 8
    Last Post: 02-28-2010, 05:00 AM
  2. I need help with Applets
    By ProgrammingPup in forum Advanced Java
    Replies: 1
    Last Post: 12-22-2009, 09:07 PM
  3. Can't see any Applets
    By pyr0chem in forum Java Applets
    Replies: 9
    Last Post: 12-17-2008, 05:24 AM
  4. applets on mac what´s going on?
    By willemjav in forum Java Applets
    Replies: 6
    Last Post: 04-19-2008, 08:03 PM
  5. Applets and dll
    By peiceonly in forum Java Applets
    Replies: 1
    Last Post: 04-01-2007, 11:16 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
  •