How run my swing applet in ie

hi master
sir how run my swing applet in ie
i have java2platform
please give me idea
thank
aamir

This is a forum dedicated to the use of the JDBC API for the Oracle DBMS. Please post your question in a pure Swing/Java forum (e.g. newsgroup or Sun's website)
This is the wrong place

Similar Messages

  • How to run a swing applet in IE?

    Hi, All!
    there has a little program written using swing can run perfectly right by appletviewer
    but when runned throught IE there has always an error shows: can't be instantiated.
    why? do i need download some plug-ins from microsoft? or sth else misconfiguration?
    thanx

    There are several things you need to ensure before an applet using swing will display in IE. First, you must ensure the browser (in this case IE) has the Java 2 Run-Time Environment plug-in. This can be downlaoded from sun, though if you have a full version of the java sdk on your computer it should already be there.
    Secondly, you must inform the browser where it can find the extra files required to use swing components. My understanding is this can be done several ways, one is to package the applet in a jar file and they download the whole jar file, but what I've found useful is to get the HTMLConverter from sun. This will take a HTML page with the <applet> tags and modify that file to use <object> or <embed> tags, not sure which, and adds in other little bits to make it run for you. Then just distribute that web page with your class files. Works for me. The HTMLConverter can also be downloaded from sun.

  • How to run swing applets in a browser??

    I understand it is a typical question and there lot of articles on it. I tried but am confused. I installed JRE1.3 which has java plug-in along with it which supports swing applets in a browser.Once i got that plug in i also downloaded html converter but am confused how should i run my swing applet.Can anyone please explain in simple steps as to how to achieve this objective..Thanks much in advance..an example would be of real big help
    Thanks

    The below links will help you.
    http://java.sun.com/products/plugin//1.3/docs/index.docs.html
    http://java.sun.com/products/plugin/1.3/plugin.faq.html

  • How to run swing applets???

    I already posed this question yesterday but i got no replies.please help me out.
    I understand it is a typical question and there lot of articles on it. I tried but am confused. I installed JRE1.3 which has java plug-in along with it which supports swing applets in a browser.Once i got that plug in i also downloaded html converter but am confused how should i run my swing applet.Can anyone please explain in simple steps as to how to achieve this objective..Thanks much in advance..an example would be of real big help
    Thanks

    u need to convert ur html-page with the applet-tags with the htmlconverter.

  • Run swing applet without installed plug-in

    Is any possible way to run swing applet without installed java plug-in? Does exist way how to load swing classes from server?

    Is any possible way to run swing applet without
    installed java plug-in? Does exist way how to load
    swing classes from server?It is impossible to run a swing applet without the plug-in.
    There may be a solution : include the swing library in your applet,
    so you don't need the plugin anymore (personnaly i prefer having
    the plugin downloaded once and the use it as needed).
    For the load from a server you will need to be more specific, but
    don't forget : the applet don't run on the server, so it won't request
    Swing classes from the server.

  • JFC Swing Applet

    Hai Friends,
    I am using jdk1.3.1 and all my applications using JSwing run well. But if i make an applet using Swing, it could be compiled well, but my browser IE5.5 does not run my Swing Applet, instead it displays javax.swing.JApplet not found. I don't know how to make my Swing Applet work.
    Please kindly help me. Thank u.

    Well, have you converted your html, with applet tag, with Java Plug-in HTML Converter? If not, you should try. You can download it from sun's web site.
    lala

  • Swing Applets

    I am new to Swing,
    Can I run a swing applet i.e. extended from JApplet into browser?
    if yes then how, and if no then why?
    Thanks in advance.

    Check this url:
    http://java.sun.com/docs/books/tutorial/uiswing/start/swingApplet.html

  • Swing Applet - doesnt work

    Hi,
    I'm trying to get a swing applet to work on windows 9x/2000 platform with Internet Explorer 5.
    I need the applet to show some text boxes and buttons. all simple stuff.
    I'm using j2sdk1.4.1 to compile the applet. And i've read on the net that i need java plugin 1.2 to run the swing applet.
    The articles say to use this HTML code which is supposed to download the new plug-in if IE can't run it but it never does. any ideas?
    <HTML>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="120" height="160" align="middle"
    codebase="http://java.sun.com/products/plugin/1.2/
    jinstall-12-win32.cab#Version=1,2,0,0">
    <PARAM NAME="code" VALUE="AppletGreeting1.class">
    </OBJECT>
    <HTML>
    I've also read that i can have swing.jar in my classes path and that will fix my problems but all i have is swingapplet.jar and that doesn't work. I've excluded the archive parameter from the object tags because i'm running the html file in the same folder.
    Does anyone have any ideas please because this isn't as straight forward as i would have liked it to be.??
    cheers

    The plugin you are attempting to download from Sun ("http://java.sun.com/products/plugin/1.2/
    jinstall-12-win32.cab#Version=1,2,0,0")
    is an old version. I have had problems downloading this before, so I modified my html to serve the plugin from a local system. That may be your problem. If you have installed j2sdk1.4.1, I think you have the plugin. You may want to check. Verify plugin is enabled
    On IE its under
    Tools-Internet Options-Advanced (Use Java 2 v1.4....
    On Netscape, plugins are listed under
    Help-About Plugins
    You can download the plugin directly from Sun @
    http://java.sun.com/getjava
    Pete

  • Best IDE and how-to create HTML for a swing Applet

    Can you help me out? I've been using, and teaching with the old Symantec VisualCafe product from long, long, ago. It still works fine & I can even use it to build JFC/Swing Applets etc. But a few things have occurred. For one, a way back, Symantec sold VisualCafe to WEBGAIN - who now has gone out of business and sold it to a company called TOGETHERSOFT - who doesn't support it any longer.
    This isn't really a big deal to me, because I can still build and deploy applets that are pre-swing easily enough. (as can my students)
    HOWEVER... I'd like to be running with the LATEST Java (I think it's 1.4.01) and I'd LIKE to use whatever is the best development environment I can use - especially one I can recommend to my students. Do you know what that should be?
    What's more, I'd still like to take some JFC/Swing created applets (even if compiled with the older VisualCafe IDE) and generate the HTML to allow 1.4 enabled browsers to run them (this is the case for the schools versions of Explorer and Netscape). Now, the HTML I have INSTALLED for the students used the HTML converter - back in 1.2 to produce the HTML at the bottom of this. This code no longer works now with current browsers. Do you know HOW one makes a jfc/swing compiled applet run on the latest browsers?
    Any help or direction you can give would be appreciated.
    thanks,
    Bobby Berns
    [email protected]
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 756 HEIGHT = 396 codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0">
    <PARAM NAME = CODE VALUE = "lottery.class" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.2" java_CODE = "lottery.class" WIDTH = 756 HEIGHT = 396 pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "lottery.class" WIDTH = 756 HEIGHT = 396 >
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->

    Bobby,
    It's been a while since I've used the HTML Converter, but if I had to guess I'd say you need a newer version than what you have. Also, doesn't the converter allow you to choose which JDK you want to use (in which case you could select 1.4)? Again it's been a while so bear with me. Another option would be to put all the Swing classes into a .jar file (typically called swingall.jar) on your server and include that file as an attribute in your applet tag like this:
    <APPLET CODE="yourApplet.class" ARCHIVE="swingall.jar">
    This way you don't have to use the Java Plug-in, however the initial download time of the .jar file can be significant.
    As for an IDE, I've always been happy using a text editor like UltraEdit. However, I've heard good things about Forte, and hey, it's free!
    Regarding Christina's post, that solution will only work if the Applet does not use Swing components (and Bobby specifically said it does). By using the <OBJECT> and <EMBED> tags, rather than the <APPLET> tag, you force the browser to use the Java Plug-in (rather than the browser's default JVM).
    Hope that helps,
    - Sheepy

  • How to use Flash buttons/animation in a Swing/Applet?

    Hello,
    I want to use flash button as like as JButton that we use in Swing/ Applet. How can I do So?
    Please help me.
    Thanks-

    [http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html]
    Or maybe just...
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class Blinky {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    URL url = null;
                    try {
                        url = new URL("http://www.gifanimations.com/GA/image/animations/bodyparts/eyes/eye-01.gif");
                    } catch (MalformedURLException e) {
                        throw new RuntimeException(e);
                    JFrame f = new JFrame("Blinky");
                    f.getContentPane().add(new JButton(new ImageIcon(url)));
                    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    f.pack();
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • Which command i use to run SWING APPLET

    Hi friends,
    i m a new in swing technology i got and problem when i run swing applet .
    i make a file and complie it with -deprecation it work and make a .class file but how can i run this applet [i use jview command , appletviewer command but it can't work]
    i hope that someone hellp me.

    Just as a matter of interest and i know its a stupid question, but did you create a html file to access the class file/jar
    Here is some example code of an applet html page
    Hope it helps...
    Also have you put it in a Jar file?
    <html>
    <head>
    <title>(Whatever title youu want)</title>
    <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000">
    <TR>
    <APPLET CODE = "ClassName.class" ARCHIVE = "JarName.jar" WIDTH = "800" HEIGHT = "600"></XMP>
    <PARAM NAME = CODE VALUE = "ClassName.class" >
    <PARAM NAME = ARCHIVE VALUE = "JarName.jar" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="scriptable" VALUE="false">
    <dont worry about this>(they just variables for my applet)
    <PARAM NAME = SERVER_IP VALUE ="192.1.1.209">
    <PARAM NAME = SERVER_PORT VALUE =8701>
    <PARAM NAME = DEBUG VALUE =true>
    <PARAM NAME = REFRESH VALUE =10000>
    <PARAM NAME = TAIL_REFRESH VALUE =2500>
    <PARAM NAME = MESSAGE_TIMEOUT VALUE =60>
    </dont worry about this>
    </APPLET>
    </body>
    </html>

  • Swing Applet won't run

    Hi,
    I am unable to run swing applets on my pc. When I view swing applets on this site in the tutorial section the applets run fine, but when I download them and try to run them locally I get a java.lang.ClassNotFoundException. All the files are compiled and in the correct directories.
    Any ideas?
    Thanks

    OK, I get your point, let me rephrase my question:
    I'm trying to run a java application,
    which does not have any syntactical errors since it compiles and runs on my development computer without any errors or warnings.
    The application is built in NetBeans IDE 5.0 (on a winXP) and uses components from the javax.swing package.
    On my other computer (winXP) I get ClassNotFoundExceptions on the swing classes.
    So I assume, I either don't have the swing classes on that computer,
    or I have them, but the java engine can't find them anyway.
    And now my new question:
    Is the javax.swing package not include in the "Java Runtime Environment Version 5.0 Update 8"?
    If it is not, where do I find them and how do I install them?
    It seems strange to have to install a development kit just to be able to run a java application.

  • How run a JEE swing application client ?

    I'm making Jee tests, using NetBeans 6.8 and GlassFish v3.
    I have an application that has an EJB module and two interface clients (jar app-client and war web-client).
    Each client uses same ejb module.
    For test the web module, I made this:
    1) I set the client module for the project:
    - Right click on the project (JeeTest) -> Properties -> Run
    - Select JeeTest-war as client module
    2) When Run the project from NetBeans, it works fine
    3) Test the project directly in the web browser and also works fine.
    For test the swing application, I made this:
    1) I set the client module:
    - Right click on the project (JeeTest) -> Properties -> Run
    - Select JeeTest-app-client as client module
    2) Run the project from NetBeans, it works fine
    3) But, When I try test the jar file, outside NetBeans, not working
    The question:
    How test the swing application outside netbeans?
    [Here I put the project code for NetBeans|http://www.blueboxmicrosystems.com/JeeTest.zip]

    Hi ! gimbal2
    I Launched from the command prompt: java -jar jeetest-app-client.jar
    Opened the form, but when I press the button to call the ejb, returns this error:
    01/02/2010 11:05:00 PM forms.MainForm btnSayMessageActionPerformed
    GRAVE: null
    javax.naming.NoInitialContextException: Need to specify class name in environment or
    system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at forms.MainForm.btnSayMessageActionPerformed(MainForm.java:90)
    at forms.MainForm.access$000(MainForm.java:25)
    at forms.MainForm$1.actionPerformed(MainForm.java:53)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    The JeeTest-ejb module, have 2 classes:
    Message.java
    package ejb;
    import javax.ejb.Stateless;
    @Stateless
    public class Message implements MessageRemote {
        public String sayHello() {
            return "Hello, from EJB !!!";
    MessageRemote.java
    package ejb;
    import javax.ejb.Remote;
    @Remote
    public interface MessageRemote {
        String sayHello();
    }In the JeeTest-app-client, I am trying call the ejb from a Jbutton in the form, and pass the value to a JTextField, like this:
            String message="";
            try {
                Context context = new InitialContext();
                MessageRemote messageRemote = (MessageRemote) context.lookup(MessageRemote.class.getName());
                message=messageRemote.sayHello();
            } catch (NamingException ex) {
                Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);
            this.txtMessage.setText(message);I put the code for the project HERE
    Edited by: m_ilio on 01/03/2010 03:24 AM
    Edited by: m_ilio on 01/03/2010 03:25 AM

  • Swing applets how?

    I have no probs writing Swing Applications or AWT applets
    but I dont know how to have a swing applet
    I think you can install a plug in to IE so it can view Java 1.3. I am not too keen on this idea as it still means that people without the plug in will not be able to view the swing applet.
    How do people without the plugin view the swing applet?
    Simon

    I am not too keen on this idea as it still means that
    people without the plug in will not be able to view the
    swing applet.That's just too bad... Didn't you know that M$ is dropping built-in "support" for Java altogether, so that you will need to download the ultra-modern plugin just like you need a plugin for movie clips, flash animations, sound, virtual reality, and other cool things?
    There's more: the JRE is installed with the plugin so that the poor users will be able to run also other Java programs, not just applets. The whole world(*) will get a proper runtime environment! No more of these "how do I compile a .java to .exe" questions!
    How do people without the plugin view the swing applet?Simple: convert the HTML code with the HTMLConverter app so that it will use the plugin. If a user that doesn't yet have the plugin enters your page he/she will be advised to download one...
    (*) The whole world, or 'everywhere' in "write once, run everywhere" doesn't seem to incude *BSD? When will this be fixed???                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to run java signed applet in vista with changing IE security options

    how to run java signed applet in vista with changing IE security options. If i change the IE security settings to low. it works.
    without changing the security setting, how to run.

    j_nanaji9 wrote:
    how to run java signed applet in vista with changing IE security options. If i change the IE security settings to low. it works.
    without changing the security setting, how to run.Can't be done without changing the security setting.

Maybe you are looking for

  • Problem with uploading pictures

    i just got my ipod classic 160gigs and i tried to upload pictures with my laptop (hp windows vista), it loads a while but then it suddenly shut off my laptop, i tried it many times but still the same problem...what will i do??im afraid my laptop migh

  • BAPI's for creation of sub Contract with reference to main contract

    Hi, Can any body tell me the available bapi for the creation zlsl contract with reference to main contract zgsl Regards Rajkumar

  • Defining a context in Tomcat 5.5.4

    I've just setup tomcat 5.5.4 with a plan to migrate my webapps to it from tomcat 5.0.16. However, under tomcat 5.0.16, you could specifiy a separate xml file in the catalina/localhost folder which held your webapps context info. Doing this under tomc

  • Unable to load the BI Urls In obiee11g...

    Hi All, When I try open console & EM And Analytic pages in OBIEE11g showing like this This is Page Can't Displayed.before all pages working. [http://i50.tinypic.com/vx2685.png] In Unix Level All services Is Running And Restart the BI Also But No luck

  • Missing Accessibility function, because update to ios7?

    Hi, I have trouble with my iPhone 4g, or at least I think so... I have no Accessibility function on it, is it normal, or is there something wrong with my phone? I updated my iPhone to ios7 today is it possible that that update may have deleated the f