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???                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • 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.

  • 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

  • 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);
    }

  • 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.

  • 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

  • How to show a html page in a swing applet -- URGENT!!!

    Hi All,
    I'm trying to show a html page inside a swing applet... is it possible to do that?? if so is there any built-in classes available for that?? If anyone have some examples, plz help me with that....
    Thanks,
    Ragu

    i havent tested.. but this should work. i am no expert on these either, just to give you an example.. :-)
    JEditorPane ePane = new JEditorPane();
    HTMLEditorKit html = new HTMLEditorKit();
    ePane.setEditorKit(html);
    HTMLDocument htmld = new HTMLDocument();
    try{
    URL url = new URL("http://hcs.harvard.edu/~undercon/");
    InputStream ins = url.openStream();
    ePane.setDocument(htmld);
    html.read(ins,htmld, 0);
    this.getContentPane().add(new JScrollPane(ePane),BorderLayout.CENTER);
    catch(Exception e)
    e.printStackTrace();
    }

  • How can i create Database Connection in Swing Applet?

    A DESCRIPTION OF THE PROBLEM :
    I am unable to connect to oracle database using thin driver
    in Swing Applet.
    ENVIRONMENT:
    java version "1.3.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
    Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
    FULL OPERATING SYSTEM VERSION : NT 4.0
    Java file:-
    import javax.swing.*;
    import java.awt.event.*;
    import java.sql.*;
    import java.awt.*;
    public class SwingApplet extends JApplet
       public void init(){
       public void start(){
        JTextField txf=new JTextField();
        JButton btn=new JButton("Click Me");
        btn.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent ae){
            try{
            DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
            Connection con=DriverManager.getConnection
    ("jdbc:oracle:thin:@orasrv:1521:oracledb","hrisadmin","hrisadmin");
            Statement st=con.createStatement();
            ResultSet rs=st.executeQuery("select * from applicant");
            }catch(Exception e){JOptionPane.showMessageDialog
    (null,e.toString());}
            JOptionPane.showMessageDialog(null,"Hai Swing is cool");
        getContentPane().add(txf,BorderLayout.NORTH);
        getContentPane().add(btn,BorderLayout.CENTER);
       public void stop(){
       public void destroy(){
    html file:-
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
       width="120" height="160" align="middle"
       codebase="http://java.sun.com/products/plugin/1.1.2/
            jinstall-12-win32.cab#Version=1,2,0,0">
       <PARAM NAME="code" VALUE="SwingApplet.class">
       <PARAM NAME="codebase" VALUE=".">
       <PARAM NAME="archive" VALUE="classes111.zip">
    </OBJECT>ERROR MESSAGES/STACK TRACES THAT OCCUR :
    java.security.AccessControlException:access denied(java.net.SocketPermission or
    asrv resolve)

    if the applet runs locally, and you want to connect to your DB locally with the applet, it won't work (except if you adjust the security settings of your browser, maybe). That's because applets don't have access to the computer they're running on (except some information), since that would mean that any applet could just access your computer, so, it's not possible for security purposes.
    On the other hand, they don't have to right to connect to anything, except the server they're downloaded from ( so the webserver's ip).
    But I'm not sure about connecting to a DB through JDBC that way.
    Tom

  • How use system.out.println with a Java Swing Applet?

    Hi guys,
    I was just wondering what can I use to view output on the Java console with a Java Swing Applet?
    At the moment I'm using a JTextArea within the Applet for debugging but I want output to appear in the browser java console but system.out.println doesn't work.
    I'm viewing the Swing Applet on Netscape 4.7 browser.
    Any ideas?

    System.out.println()s work fine! I'm guessing that your problem is that you are looking at the wrong console window!
    You're using the Java Plug-in, right? On Windows, go to your Control Panel and double click "Java Plug-in". You should find a checkbox option to "Show Java Console" - make sure this is checked. Next time you fire up you JApplet, you should see a Java Console window popup.
    Hope this helps!

  • PDF document in a Swing Applet?

    How can you display a PDF document in a Swing Applet?

    I have implemented a document archiving solution that provides a Swing UI to search a database for available documents. All the documents in the archive are in the PDF format. To accomplish this I use an html frameset where a Swing applet is displayed in one frame and the PDF document is displayed in the lower frame. I use LiveConnect to have my javascript communicate with the applet. My applet calls a javascript function that causes the URL of the lower frame point to the PDF document. This works fine, but I would rather use an all Java UI instead of depending on the browser and javascript.
    How can we get Adobe or Sun to address this need?

  • 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

    I've been trying to get my browser (Netscape 4.77
    on Windows NT) to run swing applets. I've got
    jre 1.3.1 installed and it said it got the plugin,
    but when i try to run the test applet at the url
    www.java.com/products/jfc/tsc/articles/getting_started/applet_test.html i get an error message complaining
    about class format errors and bad magic numbers.
    i've also tried to do the same on my linux system
    and had no success (although a different error)
    how do i get swing applets to work?

    It's frustrating...isn't it?
    I ran into the same problem and found out that the demo on their site was out of date. After I downloaded the tutorial from Sun, everything worked out ok. Try the link below for a download:
    http://java.sun.com/docs/books/tutorial/
    V.V.

  • 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 applet -- applet communication

    I've got a swing applet having diffculties interacting with javascript. I had the same thought of adding a "normal" applet and let them do the stuff while javascript accesses the "normal" one without problems.
    but there's a hook: since both applets lay in different jvm - one in plugin, the other in plain browser jvm - they don't "see" eachother.
    does anyone know how to solve this problem?
    thank you very much in advance.

    maybe I should be more specific:
    the swing applet uses the jfc plugin to load. the other one uses the "plain" browser jvm.
    listing applets with appletContext.getApplets() in both applets just list themselfes. obviously because they are in 2 different jvm.
    how can I access the normal one from the swing-applet and vice versa?
    thank you. appreciate any help.

Maybe you are looking for

  • How do I get news stories I click from my Yahoo home page to open in a new tab?

    At one point, whenever I clicked on a news story on my Yahoo home page the story would open in a new tab, leaving the home page unchanged. When I updated Firefox, this feature was eliminated. Is there a way to turn it back on?

  • Crystal Reports 10 - Java. Error when displaying report

    <p>HI....</p><p>When attemping to display a report, i'm getting the following error:</p><p><strong> java.lang.ExceptionInInitializerError<br /> com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Sourc

  • PSA Data Deletion in SAP BW running on Oracle

    Hi,   I deleted 2 failed requests (10000000 Records) from PSA Tables because of the disk space issue for our BW System. RSA1—PSA –DELETE PSA DATA – The requests are deleted from the PSA, In BW in can see that there not requests in that particular PSA

  • Cannot delete Package Link due to being "used in schedule"

    Hello all, I am trying to delete a Package Link in EPM's Data Manager and am getting the message that: "Package link {technical name of package link} is used in schedule" Is there a way to find what schedule this Package Link thinks it is a part of?

  • Need OS X 10.5 - Where do I get it?!

    I just got an iPod touch but in order to set it up using MobileMe I need to upgrade to 10.5 and be up to 10.5.6. I am at OS X 10.4.11. When I click the update button it tells me I am up to date. Someone please help me figure this out. I am so frustra