Loading swing applet over another swing applet, how?

hi
My problem is that i have to load an applet in a browser. Then i have to load another applet over it. But that does not happen. The applet is loaded on its side, and the earlier applet is not unloaded and is still visible. And i am calling both the applets from a JSP page. So What can i do to unload the earlier applet.
Thanks

Hi
Actually, i got two partitions in my browser(with help of <table> tag). In one i have all the hyperlinks, and by clicking on these hyperlinks the corresponding applets are to be displayed in the second part. So what is the way by which i can do that. Note that for this i m not loading a new jsp page.

Similar Messages

  • How to call a swing form from another swing form by clicking a button

    i created a swing frame , this frame have a form and an internal form. in this form have 3 buttons OK , CANCEL , NEW. i created some other forms i.e OKFORM, CForm,NForm. i want to invoke the OkForm when i click OK Button, Similar implimentation for other buttons too. i want the button logic to invoke other form. please send reply ASAP.

    A great resource that has helped me and will probably help you is an article entitled [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html] . It will tell you how to formulate your questions so that the folks here will be better able to answer them.
    For instance, just what is a form?
    I notice that you've posted twice before and that both posts stimulated responses like mine, responses that asked for clarification, and that you never replied in either of the previous threads. Again, I urge you to read the link above ASAP, else you will find fewer and fewer people interested in helping you.
    Good luck.

  • Loading 1 movieClip OVER another

    Hey,
    So I have a project were I'd like to load different movie
    clips into a section. each movie clip represents a page of my
    website. How can I call each one internally so that the new movie
    clip (page) builds while the last movie clip (page) is still
    underneath? Example:
    Btn_1 = page 1
    Btn_2 = page 2
    Btn_3 = page 3
    If I click btn_1 page apears on my stage when I click btn_2
    or 3 that page loads on top (not replaces) the other movie. If I
    hit btn_1 again page 1 will then load ontop(not inplace) of the
    existing page.
    Hope that make sense and thanks for any help anyone can
    provide.

    When you load into the same emptyMovieClip it will unload the
    existing movieClip.
    So if you want to avoid that just load you movieClips on a
    different emptyMovieClip and place them in different layers.

  • How to load an applet in a swing frame?

    Hi All,
    Can any one tell how to load a HTML applet in a Swing frame, I have a requirement where in the swing frame must contain a HTML applet.
    Thanks in advance...
    Panneer.

    Panneerselvam wrote:
    Can any one tell how to load a HTML applet in a Swing frame, I have a requirement where in the swing frame must contain a HTML applet.You don't. The requirement reeks of the ridiculous.
    Also, what is an "HTML" applet and how is it different from a regular applet or JApplet? I feel a case of jargonitis coming on.

  • Please give me an exemple of an applet using a swing object.

    Please give me an exemple of an applet using a swing object.thank you.

    My problen is that the swing object do not appear in
    my applet. They appear only if i invoque the repaint
    methode.use JApplet, since awt components are heavyweight, and swing components are lightwieght, then your swing components get over painted with aplets background or something.
    anyhow, in your applet you may create JFrame, that would be swing component and if you set it visible, then it will be even visible.
    they say that mixing swing and awt is not good idea, especially when you don't know what you're doing (which might be true in your case)
    so try to migrate your app from AWT based stuff to SWING based stuff, or write your own AWT components that do the job whih you needed swing component for at the first place.
    but if you need to mix awt and swing, then i thing that you should not paint the fole area of applet in applets paint method -- but here i'm not sure, never mixed 'em.
    so you might try to create an applet which paint() method you leave empty and to which you add some JComponent*.
    and see what happens, maybe this JComponent will be visible.
    * -- JComponent is most likely just gray, you might want to add some subclass of it -- JButton, JTextField, JSomethingElse.

  • How to "Load" Applet class to current Applet?

    I have to write a simple Applet to detect the JVM version of the browser, and the flow is:
    1.Detector.class (Applet) load in a html page, its class version is 1.5
    2.It checks whether the JVM version of the browser is 1.5 / 1.6.
    3.If it is 1.5, a new browser window popup and links to jre download page.
    4.If it is 1.6, it loads a Main.class (Applet), which class version is 1.6
    My question is, if the codes inside the Detector.class detects the JVM version is 1.6, HOW can I LOAD the Main.class (Applet) to the current scene?
    Thanks for any suggestion and help.

    roamer wrote:
    ..My question is, if the codes inside the Detector.class detects the JVM version is 1.6, HOW can I LOAD the Main.class (Applet) to the current scene?
    Thanks for any suggestion and help.I suggest you change the flow.
    1. Go to the applet page with both the Main.class *&* the version check applet.
    2. If <1.6 is detected, have the version check applet redirect to the the 'download Java' page.
    Alternately:
    1. Go to the version check page.
    2. If 1.6+ is detected, redirect to the Main.class page, else redirect to 'download Java' page.
    I developed the [Version Check|http://pscode.org/jre.html] applet that can handle either of those alternatives.
    Another approach is to use the deployJava.js that checks Java versions before launching the applet.
    I also offer Wrapplet to do both the version checking and load 'child' applets. But note:
    1) With the other better alternatives, I have not looked closely at the code in a long while.
    2) Loading one applet in another is possible, but not easy.
    3) I half expect that each new Java micro-version will ruin it.

  • Applets-NoClassDefFound:javax/swing/JApplet

    Does the jar,class,HTML files have to be on a server to run on the Web? They now reside
    on my C: drive and I get this message when I launch my HTML. Do I load the JAVA plug-in
    HTML converter here also? If it is possible to have the Web access the applets on my C: drive
    how do I point it to this location?

    Hi,
    Yes, your jar, class and HTML files need to reside on a server if you want them to be available for the web.
    Yes, you'll need to load the Java plug-in HTML converter here also. Normally, it will install only once but the code is required to let the browser know it needs to use another java plugin than the browser's default.
    I don't think you can point the applets from the server to your local drive. You can perhaps try to assign a drive letter on the server to your local drive and create a virtual directory pointing to this drive. If this works, the rest should also work (although this is not recommended).
    Kurt.

  • Applet 2d games swing or not swing?

    I saw this in the java applet tutorials:
    "An applet may extend java.applet.Applet when it makes no use of Swing's GUI components. This may be the case if the applet does all its own rendering using the Java graphics libraries (such as with graphing or gaming) and/or uses only AWT components. "
    I�m newbie to Java Applet programming and would like to learn program a 2D game in java, a simple adventure game in which you move around a figure on the screen with the keyboard. What is the best way to go about, with or without swing or another way? Is there a new way to do things perhaps?
    Yah I know I need to learn the basics first but always good to know what to learn further ahead :-)

    If I were you I wouldn't program this as an applet at all. Make it a standalone app. Making it an applet will just make testing more difficult. You can always refactor it later to turn it into an applet (or more likely, write an applet that's just a wrapper around your game).
    Swing is basically a set of GUI tools. Are you planning extensive use of GUI widgets in your game?
    Edited by: paulcw on Feb 28, 2008 12:23 PM

  • Java applet using the Swing API

    write a Java applet using the Swing API to manage a PC repair shop. When a PC is brought in for repair, a member of staff will use this applet to log it into the system as a repair job. They will also be able to use the applet to manage the job e.g. allocate a person to carry out the repair and enter costs.
    You must not use a tool such as JBuilder to generate Java code. If you use code from elsewhere e.g. a text book, you must highlight the code and state the reference clearly and include a photocopy of the relevant pages from the text book or other source.
    You should hard-code some initial data into your applet. You should not store any data in a file or database.
    Level of functionality you should attempt to implement:
    Level 1 � Your applet should:
    a.     As a minimum, your program should store (in memory) at least 10 repair jobs. For each repair job, you need to store:
    �     The name and phone number of the customer bringing the PC in for repair;
    �     A brief textual description of the problem;
    �     Whether the PC is under warranty or not.
    b.     Your program must allocate and display a unique number for the job once it is accepted.
    c.     The user must be able to view the details of jobs. They should be able to select either:
    �     All the jobs in the system; or
    �     Jobs being carried out under warranty.
    Level 2 � Your applet must meet the requirements for level 1. In addition it should:
    a.     You should carry out appropriate validation checks on input data e.g. the phone number contains all digits.
    b.     System should cope with an unlimited number of jobs.
    c.     The user should be able to select a job and then allocate a repairer to that job.
    d.     The user should be able to display a list of jobs for each repairer.
    Level 3 - Your applet must meet the requirements for level 1 and 2. In addition it should allow the user to:
    a.     Select a job and input the cost of repair for:
    �     the number of hours labour;
    �     parts.
    b.     Select a job and present the user with a cost for the labour (hard code an hourly labour cost) and parts, plus a total for that job. For jobs under warranty the total will be zero, however the cost of labour and parts will be shown.
    c.     Be able to inform the business of the total expected income from the all the jobs in the system that are not under warranty.
    Level 4 � Your applet must meet the requirements for level 1 to 3. In addition:
    a.     The user should be able to enter a job priority which can be identified as high, medium or low.
    b.     Each repairer should be able to view a list of their jobs in order of priority.

    Done, what next ?
    Noah

  • Load applet within another applet?

    Let's say I have two applets, A1, and A2. I'd like to load A1 on my HTML page, and I'd like A1 to load A2 within itself (i.e. not load it as another separate applet on the HTML page).
    Basically, A2 takes some parameters I would like to pass to it through A1, so I'd like to know if this is possible.
    Thanks for any help!
    James

    Totally possible. You just have to provide it an applet context
    see http://java.sun.com/j2se/1.4.2/docs/api/java/applet/AppletContext.html

  • How to open the same applet over multiple clients.

    hi all,
    i am making a applet application .The same applet has to be opened at the same time at different client and the changes in the information upon the applet page must be reflected at all the clients how can i do that plz sujjest me.
    Thanks in advance.

    You would have to have all of the applets connect to a "server applet" on one of the computers. When the applet starts, you could give the choice to host or connect to another host using an ip address and port, using the ServerSocket and the Socket classes. However, this requires multiple threads running, but is quite possible. The server would need threads to accept clients, receive information, and send information (plus the built-in gui and event threads). The clients would need a thread to receive information from the server and update the applet page.

  • Applet to another applet

    Hi
    How do I change my applet interface to another on some event (say, initially I show the frame to take user data and on its authenticity I need to give him another interface to enter some other data).
    Thanx

    public class Starter extends javax.swing.JApplet {
         public javax.swing.JPanel jp;
         public Menu menu;
    public void init(){
    jp = new javax.swing.JPanel();
              jp.setLayout(new java.awt.BorderLayout());
              getContentPane().setLayout(new java.awt.BorderLayout());
              menu = new Menu(this);
              jp.setDoubleBuffered(true);
              jp.add(menu.getContentPane());
              getContentPane().add(jp, "Center");
    Once in menu you choose an option that will change the menu screen to another by doing this:
    parent.jp.remove(parent.menu.getContentPane());
              DifferentFrame fb = new DifferentFrame(this);
              parent.jp.add(fb.getContentPane(), "Center");
              fb.setVisible(true);
              fb.hide();
              parent.jp.repaint();
              parent.repaint();
              repaint();
    Note the above is dealing with JFrames(DifferentFrame and Menu are JFrames), with a JPanel or other components you do not need to use the getContentPane() method.

  • How to pass first applet value to second applet

    please help ,
    can anyone knows how to send first applet parameter to second applet,
    here is the code
    //<applet code="firstapplet.class" height="200" width="300"></applet>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class firstapplet extends JApplet
    JPanel pn;JTextField txt;JButton btn;
    public void init()
    pn = new JPanel();
    getContentPane().add(pn);
    txt = new JTextField(20);
    pn.add(txt);
    btn = new JButton("submit");
    pn.add(btn);
    on the click of button i want to pass the textfield value to second applet

    I don't know what exactly you mean by "sending first
    parameter", but using Applet.getContext() you can
    gain access to the other applets on that page, if
    that's what you need. Refer to the API docs for more
    info.thanks for the reply,
    but i want to get the first applet textfield value and show on second applet
    can you help me on this

  • Running a Swing program from another program

    I'm having what is most likely newbie problems since I'm relatively new to Swing programming. Basically my situation is this: I've got a program that looks at its command line parameters and either runs through a series of actions or presents a Swing GUI to allow the user to step through the actions one by one.
    My problem is that I bascially don't know how to call (instantiate, declare, etc.) the GUI from my Java code. I tried implementing the GUI class with a runnable interface, but evertime I try to invoke the start on the interface I'm getting an error. I have a feeling I'm just missing something. The Swing GUI works fine if I call it on its own so it's the code the invokes it from the small command line processor that I'm goofing up somehow.
    So to recap, I have a small Java app that I'm trying to call a GUI that I've built and can't seem to get the code right.
    Any pointers to examples or explanation on how to accomplish the above are welcome.
    Thanks,
    Ed

    That the "2" is printed out immediately is as expected, but I don't understand why the JVM exits. The following is, AFAIK, a trimmed down version of what you are doing, and if you run it you'll see that the frame remains until you close it manually:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class ShowFrame {
        public static void main(String[] args) {
            AppFrame gui = new AppFrame();
            gui.run();
        private static class AppFrame extends JFrame implements Runnable {
            public AppFrame() {
                setDefaultCloseOperation(EXIT_ON_CLOSE);
                JButton btn = new JButton("Close");
                btn.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        AppFrame.this.dispose();
                getContentPane().add(btn);
                pack();
                setLocationRelativeTo(null);
            public void run() {
                System.out.println("1");
                this.setVisible(true);
                System.out.println("2");
    }Maybe someone else can shed some light over your problem...

  • Hope u will send me the details of calling an applet from another

    hai to all
    i am trying to do an applet ,and it corrct in jdev ide,but trying to run in explorer
    i cant connect the database,
    but in applet viewer also i cant call another
    applet throught a button or any thing
    i hope u will send me details
    and thanks a lot to Joe silva
    thanks in advance
    anas
    null

    I've not done it myself but I think you must have a name for the second applet specified in the html tag. That is how the first applet will be able to identify the second applet.
    maybe..
    <APPLET CODE="FirstApplet.class"></APPLET>
    <APPLET CODE="SecondApplet.class" NAME="ReceiverName"></APPLET>
    then in your java code
    SecondApplet app = (SecondApplet) getAppletContext().getApplet("ReceiverName");
    if (app != null)
    <execute code>
    But I've not done it, so its only a suggestion...

Maybe you are looking for

  • Why am I recieving someone else's email on my iCloud email?

    I set up an iCloud account back when my partner and I purchased our iPad 2.  We recently purchased me a new Retina Macbook Pro and when I set up my mail the icloud account was automatically filled in due to my Apple ID account info. However after it

  • PremierePro CC Wish List

    I have just send this list to Adobe in hope that some of those requests will be implemented in a future upgrade. What do you think about it? Here is a list of features I really would like to see in a future upgrade of Premiere Pro CC: 1- Add a keyboa

  • FNDLOAD with error

    Hi. I have created the inlrule.lct file and want to test it. The LCT file has one entity "INL_ENTITIES" (see the lct file below). When running FNDLOAD I get the error: A syntax error occurred at line 133 in file inlrule.lct A configuration item was e

  • Audigy SPDIF feature loss - didn't answer the question really, did you Creati

    Feature Loss Why is SPDIF passthrough not working with Windows Vista 64-bit's Will it ever? SPDIF passthrough is available in the latest X-Fi update. For the Audigy Series, we cannot support this feature in Windows Vista 64-bit. And the answer as to

  • My Premier Pro CS6 not opening after OS upgrade to 10.9.3 Maverics

    Is there any compatibility issue?