Making an applet compatible

I'm working on a webpage, and intentionally used only older Java features for the applet that is much of what makes the page's attraction. (It's an applet to help people learn to remember things better). The applet works fine under appletviewer and netscape, but every button besides "display new list" and "generate new list" only blank the right half of the applet under MSIE 5/Windows, and I'm not sure the applet is stable under MSIE/Mac.
I was wondering if some people here might look at it or tell me what sort of things I might be tripping up on. (Is there something besides validate() that needs to be called so the MicroSoft virtual machine will paint, for instance?) The web page and applet source code, respectively, are at:
http://JonathansCorner.com/writings/memory/
http://JonathansCorner.com/writings/memory/Memory.java
Jonathan Hayward

Here is the fix for help button:
        private void help()
                actionPanel.add("Center",getTextArea(readFile("help.txt")));   
                }Note that the problem was corrected with the addition of "Center" to the call to actionPanel.add. Upon closer examination, it appears that all such calls must be corrected.
In addition. In the suggested correction that I posted earlier, there are a few changes that you might want to make as shown below:
                             private void chooseListNumber()
                                     actionPanelInternal = new Panel();
                                     actionPanelInternal.setLayout(new FlowLayout());
//                                   actionPanel.add(actionPanelInternal);   //<---------- premature addition
                                     actionPanelInternal.add(getTextArea(HOW_MANY_LIST_ITEMS));
                                     numberOfEnteredItems = new TextField(TEXT_FIELD_COLUMNS);
                                     actionPanelInternal.add(numberOfEnteredItems);
                                     actionPanelInternal.add(new Button(SET_NUMBER_OF_LIST_ITEMS));
                                     actionPanel.add("Center", actionPanelInternal);    //<-------------------added this (V.V.)
                             private void chooseQuizNumber()
                                     actionPanelInternal = new Panel();
                                     actionPanelInternal.setLayout(new FlowLayout());
//                                     actionPanel.add(actionPanelInternal);       //<------- premature addition
                                     actionPanelInternal.add(getTextArea(HOW_MANY_QUIZ_ITEMS));
                                     numberOfEnteredItems = new TextField(TEXT_FIELD_COLUMNS);
                                     actionPanelInternal.add(numberOfEnteredItems);
                                     actionPanelInternal.add(new Button(SET_NUMBER_OF_QUIZ_ITEMS));
                                     actionPanel.add("Center", actionPanelInternal);    //<-------------------------added this (V.V.)
                                     }Got to go get some grub .....please let me know if you need further assistance (I'll check back later)!
V.V.

Similar Messages

  • Making Code Backward Compatible (SDK 1.4 - 1.3)?

    In SDK there is a method added in Toolkit class: "public void setDynamicLayout(boolean dynamic)".
    Is it possible to generate code which is compatible no matter if the bytecode runs on a 1.3 VM or a 1.4 VM?
    I would like to do something like (pseudocode):
    if(sdkVers > 1.4)
        Toolkit.getDefaultToolkit().setDynamicLayout(true);I didn't try it, but I think it wouldn't work. Or am I wrong? If I'm right, is there a way to do what I want (make code compatible on different VM versions)?

    Actually, I think it is a very good question. One that I have been wondering about for some time myself. The question is: when will the JVM actually try to lookup the method? Is it when the class is loaded or resolved? Or is it when it has to call the method the very first time? Or is this not specified at all?
    if(sdkVers > 1.4)
    Toolkit.getDefaultToolkit().setDynamicLayout(true);If the JVM waits until the actualy method invocation, then the above code would actually work on a 1.3 JVM since it will never try to invoke the non-existing method.
    Our programs need to be able to run on Java 1.3 because we have to support MacOS X. But it annoys me that I cannot take advantage of 1.4 features when the program runs on Windows. I don't like the use of reflection because it destroys compile-time checking. So until now I have stayed away from using 1.4 features completely.

  • RE:making  java applet of a java code

    Hi all,
    I have built a GUI using netbeans.I use this application to connect to server to upload files as well as to update database.Now I want to make this application web enabled.I want to make it applet.But I do not how to do this.
    Can please anyone help me regarding this?I would really appreciate that.
    Thanks

    The best way to get the app. on-screen would be to use web start. If it is coming from the same server, it can probably be 'sandboxed'.
    Web start apps. can be launched* from a link on a web page, and there is no need to convert applications to applets, as Java Web Start can launch either.
    * E.G. of JWS launch of (combined) application/applet
    <http://www.physci.org/jws/#jtest>
    (Check some of the other links on my 'JWS examples' page for more of a look at JWS in operation)

  • Help reqd in making BOR unicode compatible

    Hi Experts
    I am getting an error while I am trying to execute a BOR.It says it is not Unicode-compatible, according to its program attributes.Can nyone help pls.

    Hi,
      Use the transaction 'UCCHECK' to set the unicode flag.
    Thanks

  • Quake level in an applet compatible JVM 1.1

    Here is a Quake 3d level rendered in an applet with 3DzzD API
    NB: the model has been converted from quake to 3ds, this result in visual imperfection (smooth groups are wrong) more visible on soft engine as it use phong shader, also perf maybe not as good as they should be due to the fact that BSP model produce a lot of unecessary face for 3DzzD engine and conversion produce curved surface with a fixed quality.
    Note that for now there is only windows native libraries on the server and so this demo will not work in hardware mode for other platform than window, this will be updated soon
    Once started it will be rendered using the 3DzzD software renderer, to switch to Hardware mode click the applet and press H
    http://dzzd.net/demo/QUAKE/
    as the software engine may be slow, here is the same applet with a smaller size
    http://dzzd.net/demo/QUAKE/indexSmall.htm
    this feature is available in the last 3DzzD API wich will be published as well as this demo source code in the comming days

    Hi there.
    I've found this page by googling.
    I am not a Java developer, but am using a third party java applet on my web page for mapping.
    Funnily enough, I've been trying to hunt down a memory leak thats occuring in IE (not any other browser).
    It only occurs when the applet is physically visible on the page, and the user is using the Sun JVM (1.5.0_06). The GDI object count increases every time I mouseover a link in a tree.
    This does not occur with the MS JVM.
    Unfortunately I do not have access to the applet source code, but I'm wondering if its related to your problem.
    Have you had any success on this?
    Thanks.

  • Making QT videos compatible with video iPod

    I have a bunch of music videos I want to put on my new 30 gb video iPod but whenever I try none of them are compatible and they all come up with errors? Is there a way to make them automatically compatible with the iPod or are they just stuck in the wrong format?

    See this for help: Guide to converting video for iPod (Mac/Windows).

  • Making dreamweaver site compatible with respect to various screen resolutions

    I want to make dream weaver site compatible with respect to
    1) various screen resolutions lie 800*600, 1024*768 etc
    2) various monitor sizes...12", 15", 17" etc
    3) the site should look same in different browsers IE,
    Mozilla, Safari, Crome
    what changes do i need to make?

    Dreamweaver *is* compatible with all resolutions. It's the
    code that your
    layout design has produced in DW that may not be. As has
    already been
    mentioned, you need to determine the smallest browser
    viewport in which you
    want your page rendered without horizontal scrollbars, and
    design your page
    elements accordingly (and again, this is not a resolution or
    screen size
    issue).
    > 3) the site should look same in different browsers IE,
    Mozilla, Safari,
    > Crome
    You will *never* achieve pixel perfect rendering in every
    brower but you can
    come close. The most important first step to that would be to
    create pages
    that validate here -
    http://validator.w3.org
    If you cannot do that, then your page rendering will be a
    mess across the
    board.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ankur_itbhu" <[email protected]> wrote in
    message
    news:gadeiu$7tc$[email protected]..
    >I want to make dream weaver site compatible with respect
    to
    > 1) various screen resolutions lie 800*600, 1024*768 etc
    > 2) various monitor sizes...12", 15", 17" etc
    > 3) the site should look same in different browsers IE,
    Mozilla, Safari,
    > Crome
    >
    > what changes do i need to make?
    >
    >

  • Making an application compatible with MBP Retina Display?

    Hi guys. I have a game that I really enjoy playing, "Football Manager 2012", which isn't optimised for retina and looks blurry/pixelly on the new MBPR screen. Its native resolution is 1280x800, but it can be changed up to 2560x1600, and although that makes the text crisp, it is tiny and you can barely read anything, as you would imagine.
    I have tried every "hack" under the sun to make it Retina-compatible.
    In the info.plist of the application, I added this line of code to make the app supposedly support Retina fonts (it's all I care about -- don't mind the graphics).
    Code: 
    <key>NSPrincipalClass</key> <string>NSApplication</string> <key>NSHighResolutionCapable</key> <true/>
    I added that code to all three instances of the app (two in applications folders, one buried deep in the Steam directory). I even applied the code to the Steam application just in case that was the offender. I rebuilt the apps' plist cache using the copy-paste method for all of this. I ensured that the "open in low resolution" checkbox was unticked. Supposedly this would work -- no dice.
    These tricks work with other applications, so why not this?
    Then I tried an OS-wide line of code in Terminal to force apps to untick "open in low resolution". Still not working.
    My next effort was trying to edit the xml settings of the Football Manager application itself. I found the xml file and where it has the font sizes. I download all four OTF font files that are used in the game, so the computer 'possesses' a retina-capable font to utilise. There was also a line called "lcd_filter" and it was using "freetype" (don't know what that is). I didn't touch anything else in the xml.
    I'm not sure what more I can do.... it's really ticking me off. I know nothing has worked because the grey title bar of the application (in windowed mode) is still pixelated and has blurry traffic light buttons. Everything is still "non-retina".
    Can anyone help?

    Thanks, Allan.
    There is also Football Manager 2013, but that too isn't made for Retina at all.
    I'm still holding on to the hope that some home trickery will make the fonts crisp.
    Techniques worked to make programs like MS Office and Eclipse have retina crisp text before it was officially available, surely this is a workaround for this? It's fruitless contacting the manufacturers of the game, by the way, they see it as an irrelevant issue due to the supposedly tiny market!

  • Heartache making web app compatible with Japanese

    I maintain a Java Web application which interfaces with an Oracle 9 database via JDBC.<br>
    <br>
    The database settings are:<br>
    NLS_CHARACTERSET WE8ISO8859P1<br>
    NLS_NCHAR_CHARACTERSET AL16UTF16<br>
    <br>
    I have one column in which users now should be able to enter all types of characters, including Western and Japanese text. The column is currently set to CLOB, and I never enter more than 4000 characters.<br>
    <br>
    I don't want to switch the entire database to UTF-8, because that means shutting down, backing up, restarting. I don't have sufficient Oracle knowledge to do that without risking significant downtime.<br>
    <br>
    What do I have to do in order to enter Japanese and Western characters into that field?<br>
    <br>
    I've done the following so far, but without success:<br>
    1. The JSP page includes the encoding information - <%@page contentType="text/html; charset=UTF-8"%><br>
    2. I changed the field in Oracle to NClob<br>
    3. I use the following code to insert my test Japanese characters (i.e. the TEXT2 field is the NClob field):<br>
    dbconn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=thehost.com) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=servicename)))","scott", "tiger");<br>
         pstmt = dbconn.prepareStatement("INSERT INTO TEST_MATTHIAS (ID, TEXT1,TEXT2,TEXT3,TEXT4) VALUES(?,?,?,?,?)");<br>
                   for (int i=0; i<1; i++) {<br>
                        pstmt.setString(1, request.getParameter("id")+"");<br>
                        pstmt.setString(2, request.getParameter("text1")+"");<br>
                        pstmt.setString(3, request.getParameter("text2")+"");<br>
                        pstmt.setString(4, request.getParameter("text3")+"");<br>
                        pstmt.setString(5, request.getParameter("text4")+"");<br>
                        pstmt.executeUpdate();
                   }<br>
    4. I query the table with the following code:<br>
    pstmt = dbconn.prepareStatement("SELECT ID, TEXT1, TEXT2, TEXT3, TEXT4 FROM TEST_MATTHIAS WHERE ID='1'");<br>
                   results = pstmt.executeQuery();<br>
                   while(results.next()){<br>
                        result = "Text1: "+results.getString("TEXT1")+"<br>Text2: "+results.getString("TEXT2")+"<br>Text3: "+results.getString("TEXT3")+"<br>Text4: "+results.getString("TEXT4");<br>
                   }<br>
    5. BUT, even with these changes, the text is not inserted correctly, and is not selected correctly. I use Aqua Data Studio as my main application to query the database. But the code above, of course, is in my JSP.<br>
    6. My test text that I try to insert into the form field on the JSP: "Yahoo!&#12503;&#12524;&#12511;&#12450;&#12512;"<br>
    7. The text that comes out of my SQL Select statement: "Yahoo!×ìߢà"<br>
    <br>
    Can someone help or give me tips on what I am missing?<br>
    <br>
    <br>
    Sincerely,<br>
    <br>
    jetcat33
    Message was edited by:
    user510970

    Try this:
    request.setCharacterEncoding("utf-8"); // <-- here
    pstmt = dbconn.prepareStatement("INSERT INTO TEST_MATTHIAS (ID, TEXT1,TEXT2,TEXT3,TEXT4) VALUES(?,?,?,?,?)");
    pstmt.setFormOfUse(3, OraclePreparedStatement.FORM_NCHAR); // <-- here
    pstmt.setString(1, request.getParameter("id")+"");
    pstmt.setString(2, request.getParameter("text1")+"");
    pstmt.setString(3, request.getParameter("text2")+"");
    pstmt.setString(4, request.getParameter("text3")+"");
    pstmt.setString(5, request.getParameter("text4")+"");
    pstmt.executeUpdate();

  • Making Filenames Windows Compatible

    Does anyone know of a program that will run in OS 10.3.9 that can go through my hard drive and change all windows-invalid characters in the filenames to something else?
    The best solution I've found so far is to use a file renamer program that allows find and replace and run it once for every invalid character.
    Kris

    Hi Kris, I use a script that I found on the web a while ago here http://hayne.net/MacDev/Perl/renameforwindows
    give it a try. All credit to Cameron for this.
    Cheers

  • Deploy JavaFX application to JSP

    A lot people saying it's possible just by using the snippet below,
    <script src="http://dl.javafx.com/dtfx.js"></script>
    <script>
        javafx(
                  archive: "Foo.jar",
                  draggable: true,
                  width: 200,
                  height: 200,
                  code: "foo.Main",
                  name: "Foo"
    </script> Could ANYONE tell me what's the function of code in the Java script? I think it has been included into the archive already.
    One another question is, what are the functions of the JNLP file and how should I modify them to facilitate the deployment?

    Hi Isaac,
    Now those are questions I've been asking for the past few months! And by coincidence I think I've just gotten my answers today, mostly by trial and error. Bear in mind that I'm not a deployment engineer, so I stand to be corrected, but I've tested everything I'm going to say and can verify it works, at least on Windows and Mac.
    I'm drawing some of my information from the following Java article but will be speaking specifically about JavaFX.
    http://java.sun.com/developer/technicalArticles/javase/newapplets/
    That article includes a discussion about making your applet compatible with pre-6u10 and 6u10+ runtimes. On Windows, JavaFX runtimes rely on 6u10+ Java runtimes, which use the xxx_browser.jnlp file for applet startup. However, Apple Java ignores the JNLP file for applets, which means that all of its applet startup information comes from the applet script in the HTML/JSP file, so in this regard it is behaving like a pre-6u10 Java runtime. I believe that Solaris and Linux follow the Windows model, but I haven't extended my testing that far.
    So here are some general statements that I know work for Windows and Mac.
    1. You can strip all the attributes out of the <jnlp> tag in your xxx_browser.jnlp file. This saves a lot of grief in changing the codebase attribute every time you move your applet. The catch is that if you remove one attribute from the <jnlp> tag, you have to remove 'em all (href and spec) to get the applet to work. And that rule is for Windows, since Mac ignores the applet JNLP.
    2. Your JNLP file is found as long as it's in the same directory as your JAR file. You specify the location of your JAR file in the archive parameter of the applet script in your HTML/JSP page. That's why you don't need to call the JNLP from your applet script.
    3. You can optionally specify the location of the JNLP file in your applet script by using a jnlp_href parameter, something like this:
    jnlp_href: "dist/TestApp_browser.jnlp",
    That specifically tells the runtime where to look for the JNLP file--in this case, in the dist/ child of the directory containing the HTML/JSP page. But note that other things happen when you use the jnlp_href attribute:
    - If you do have a codebase attribute specified in your JNLP file, the jnlp_href parameter overrides it.
    - When the jnlp_href parameter is specified, the applet's main class name is taken from the <param> tag nested under the <applet-desc> tag in the JNLP file, and the code parameter in the applet script is ignored. I tried deleting the code parameter in the script entirely, and the applet worked fine on Windows. However, remember that Mac doesn't use the JNLP file, so it's lost wtihout the code parameter. If you include both the jnlp_href and code parameters, both Windows and Mac are happy.
    - When the jnlp_href parameter is specified, you can also delete the archive parameter in the script, and it runs on Windows. The location of the JAR file is taken from the <jar> tag, nested under the <resources> tag in the JNLP. However, the applet chokes on Mac without the archive parameter in the applet script. Again, include both the jnlp_href and archive tag to make sure your applet runs in both environments.
    So why would you want to bother with the jnlp_href parameter? It's optional when the JNLP and JAR files are located in the same directory, but it's necessary if your JNLP file is in a different directory from your JAR file.
    Here's an example. Suppose the xxx_browser.jnlp is in the same directory as your HTML/JSP page, and the JAR file is in a child directory called dist. Then your applet script will look like this:
    <script>
    javafx(
    archive: "dist/TestApp.jar",
         jnlp_href: "TestApp_browser.jnlp",
    width: 200,
    height: 200,
    code: "testapp.Main",
    name: "TestApp"
    </script>
    and the <jar> tag in the JNLP will look like this:
    <jar href="dist/TestApp.jar" main="true"/>
    The <jnlp> tag in the JNLP file can either contain all the attributes that it was generated with or it can contain just the tag with no attributes:
    <jnlp>
    How does this work? On Windows, the runtime finds the JNLP file from the jnlp_href parameter and ignores the archive and code parameters. The location of the JAR file is determined from the <jar> tag in the JNLP. On Mac, all that is required is the location of the JAR file and the main class, which are specified in the archive and code parameters.
    Unless you have a strong reason for separating the JNLP and JAR files, keep them together. Then you only need to specify the location of the JAR file in the archive tag, relative to the directory containing the HTML/JSP page. You don't have to worry about the codebase attribute and <jar> tag in the JNLP file, and you don't have to specify the jnlp_href parameter in the applet script.
    Nancy

  • Manipulating Webcam capture??????

    Hi
    I have successfully managed to capture, transmit, receive and display (using an applet) a webcam capture using jmf.
    However I want to let the user to put their mouse on the applet and be able to scroll around, zoom in and out etc..
    Any suggestions?

    dear Fergus
    My main objective is to capture / preview video using an applet and then capture a still image. save this still image to a file in users machine and then upload the file to the server at a specified folder.
    this applet is a part of Student Registration system and to generate ID cards for students.
    can you help me in this regards ? I have catagorized the requirements and other details. I am pasting the same here.
    Video Capture Module
    Objective: To capture a still image from a web page and Upload the image to specified folder on the server.
    Technologies to be used: JAVA Applets, HTML & Servelets.
    Synopsis: This application basically involves use of Java Media Framework. The primary objectives of this module are categorized according to the functionality.
    1)     Detect the video capture device on the users machine.
    2)     Preview the Live Video from the Detected Compatible Video Capture device.
    3)     Ask for user to click to take a snap and save the file in users machine at some temporary location with some unique file name.
    4)     Upload the file to the server at the specified path.
    There are a few constraints to this application. These are identified in following according to severity of the constraint
    1)     Minimal download time for the applet and supporting files.
    2)     Browser compatibility with Internet Explorer 4.0 upward as well as Netscape Navigator 4.0 upward.
    3)     User interface flexibility and easy to plug-in to the main module.
    4)     Reusability of this module for other purposes.
    There are few technological hurdles involved in doing this. These are stated below in order of severity.
    1)     Detecting the Capture Device on users machine.
    2)     User should not be asked to install Java Media Studio on his / her machine. Whatever the files are required should be loaded at the runtime.
    3)     Making the applet compatible with both the browser technologies.
    Following assumptions are being made
    1)     The browsers are capable to handle applets i.e. the JVM & Java Plug-in are already installed.
    2)     Video capture device Drivers are installed in the machine and the Camera is plugged in to the system.
    The assumptions are prerequisite and must be met.
    Details of the Sub Modules:
    SM-1: Detect Video capture Device in users machine.
    This involves following steps
    1)     Initialize the applet and get permissions to access the system resources such as capture devices and other input devices. Having the signed applet with the required premissions can do this.
    2)     Once we have the permission to access the devices we can scan various input devices and store the information in some temporary place such as cookie.
    3)     If Compatible Video Capture device is found then query the Video capture device.
    4)     If the Video capture device is not found then prompt user to install the Video capture device and revert back to starting the applet again.
    5)     Check for the Device Capabilities. Compare that with our requirements.
    6)     If things are ok then we can proceed to next step else go back to step 4.
    7)     Save the device info for the future use possibly in a cookie.
    SM-2: Preview the Live Video from the Detected Compatible Video Capture device.
    This involves following steps
    1)     Read the information from the cookie.
    2)     Initialize the viewer for the Live Video.
    3)     Present the live video.
    4)     As a tool tip, we should suggest the user to focus the camera and adjust the camera lens to get a sharp image.
    SM-3: Ask for user to click to take a snap and save the file in users machine at some temporary location with some unique file name.
    This involves following steps
    1)     Ask user to look in to camera straight. Not to blink eyes while picture is being taken.
    2)     User should then click the snap button. As a useful tip we may also provide a keyboard short cut to capture the still image.
    3)     Once the image is captured show the still image instead of the live video.
    4)     Give an option to user to recapture the still image.
    5)     If user feels his / her image has been satisfactorily captured.
    6)     Ask for confirmation to save and upload the image to server.
    SM-4: Upload the file to the server at the specified path.
    This involves following steps
    1)     Check for user authentication.
    2)     Check for file name.
    3)     Check for file size.
    4)     If all above is ok then upload the image to server at the specified path.
    regards
    Virendra

  • Making the Webcenter ADF pages compatible with Mobile browser

    Hi,
    I'm trying to make the already developed ADF pages compatible to Mobile Browser (like blackberry etc).
    I have tried with the way what oracle ADF specification says like have to create a Fusion proj then have to add a new project into that and develope the mobile browser pages. In this way, it is working absolutely fine. But the problem is, i have already developed an application which uses lot of web center stuff and we have created so many pages in the application. Making this pages compatible to Mobile browser will take hell of effort.
    Is there anyway that these pages can be made compatible to mobile browser (like blackberry etc).
    Suggestions and Help is highly appreciated.
    Thanks in advance.
    Mahipal
    Thanks,
    Mahipal

    Hi Wiebke,
    You need to change the property Supported User Agents for all objects you need to access with MS Mobile IE. The procedure is the same as enabling your portal to be indexed by Web Search Engines for external facing portals, which is described here: http://help.sap.com/saphelp_nw04s/helpdata/en/44/ccf6bf687f3b9ae10000000a1553f6/frameset.htm.
    This will technically allow all browsers to access the portal. Note that SAP does not support them, and especially in the case of mobile browsers, you may have issues regarding screen size and scripts (maybe fix this by creating a custom framework page+custom navigation iviews?).
    Regards,
    Johan

  • Rtp stream applet

    Hi !!
    I'm new in JMF. I'd like to play rtp stream on remote machine by using applet . I've searched a lot for making java applet which could receive rtp stream but coldn't find easy to understand tutorial code etc.
    If you have any good links, please write it on forum or paste code.
    Thank you for any answers !!!

    an applet needs nothing great ...As someone who ..
    - has deployed 1.1-1.4 compatible applets,
    applets that interact with JavaScript, full (browser)
    window applets, applets that load screensavers
    and launch applications, web-started applets,
    applets that change PLAF..
    - has dealt with (literally) hundreds of applet
    related problems on usenet, including the
    investigation of applet bugs, and (particularly)
    bugs caused by the MSVM.
    ..I can assure you.
    1) Applets are anything but easy to deploy
    successfully on the wilds of the internet.
    2) As someone who has dealt a little with the
    JMF, I can add that JMF applets add a whole
    new level of complications to the mix.
    Generally, the end user needs to have
    pre-installed JMF in order to see JMF
    based applets. Even then, the browser
    might not detect the JMF classes.
    It is generally far more sensible, and reliable,
    to launch such projects in a free floating frame
    using web-start.
    Here is an example of a webstart launch.
    <http://www.javasaver.com/testjs/jmf/#test3>
    Note that any such web-start launch might be
    optimised in a variety of ways (to download less).
    The most obvious would be to use the
    customizer.jar to make a cut-down version
    that handles only the required sources (e.g. RTP)
    and formats (e.g. MOV).

  • Right way to exit an applet

    Hi,
    I am making an applet by extending JApplet. Can anyone please tell what's the right way to stop the applet ie. to complete its execution.
    Shoud System.exit() be used, i tried stop and destroy , nothing happened. I have provided a menu inside my applet i want it to exit or complete execution with its window removed when some clicks on exit menu.
    Any suggestion is welcome.
    thanks
    inder

    Don't use System.exit in applet, won't work, and would probably throw a security exception.
    Only "destroy" your applet by overriding the destroy() method (where you do some clean up, close open connections, release references that takes a lot of memory, etc, nothing else). This method is called by the browser, at least when you close it.
    The stop() method should not try to destroy your applet. I think if the browser calls stop(), it will also call start() to start the applet again, but without calling the init() method. The init() method is called if the browser needs to run your applet first time, or again after destroy() has been called as far as I know.
    You can get more info if you read the javadoc comments for those methods.

Maybe you are looking for

  • Error running ODI scenario from batch file

    Hello, everyone! I am loading data into Essbase 11.1.2 from MS SQL Server views using ODI 11.1.1.5.0 and Local agent. I created an interface which runs ok if launched manually from ODI. Then I created the scenario named MyScenario for this interface

  • Why do all my devices ring when I get an incoming call? How do I turn this off?

    Since my last iphone update (8.1.2), everytime I get an incoming call of any form (regular call, facetime, even sms and imessages), all my other devices (ipad, ipods) ring too at the same time. Its driving me crazy. How to I get rid of that?

  • Macbook Pro iPhoto or Pictures?

    Just bought a MacBook Pro, could someone please explain to me the difference between the iphoto and pictures? Should I upload my pics to both? Or should I use one rather than the other? Thanks in advance!!

  • Separate GL for posting Unplanned depreciation

    Dear Friends, In ao90 I want to map two GL account for posting unplanned Depreciation in Expense account for unplanned depreciation one for trans.type 640 and one for 650 separately. Could it be possible ? and How ? d b darji Sr AO ERP BSNL

  • How to block spam sms in iPhone for India? Any solution?

    I get far more annoyed with text message spam than I do with email spam. My iPhone (unlocked) dings every time I receive a text message, and I check it as soon as I can. I really, really resent the intrusion when it's spam. And of course there's the