Open JApplet with new java plugin ??

Hi,
I want to open an applet with new java run time envorinment, i.e. i must see 2 java consoles in the windows tray
here is my code in html, but the problem is they work in same jvm..
how do i make them work in different jvm
Hope i am clear, if not i will explain more in detail
<script language="JavaScript1.2">
function openPlanApplet()
TheNewWin = window.open('AppletTest.htm', '');
// where AppletTest.htm is the html which has applet defined in it
TheNewWin.moveTo(-10, -0);
Ashish

HI,
I think i will get 2 consoles, but the problem is the end user will be forced have 2 jvm installed on his machine, also what if i want 3 applets in 3 different envoriment , then
Let me send u some example of what i am trying to do
This is my java Applet, and there are 2 HTML files,
first open test.html and then click button to open the applet window, then click on the button "GO" in applet to change the text of label
, then go back to test.html and again click on the button to open applet u will see that the button text is "change it" instead of "Applet1"
and that is why i want to start a new jvm window to avoid this
Hope this makes sense,
or send me an email at [email protected] and i will send u a zip file of all html and class file for u to test
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
public class AppletTest extends JApplet
implements ActionListener
public static String name = "Applet1";
JLabel label;
public void init()
JButton b = new JButton("go");
b.addActionListener(this);
label = new JLabel(name);
this.getContentPane().setLayout(new FlowLayout(FlowLayout.LEFT, 20,50));
this.getContentPane().add(b);
this.getContentPane().add(label);
this.setSize(100,100);
public void actionPerformed(ActionEvent ae)
name="Change it";
label.setText(name);
// end of code
/** test.html
<html><head>
<title>Test Screen size</title>
<script language="JavaScript1.2">
var TheNewWin;
function openPlanApplet()
TheNewWin = window.open('AppletTest.html', '', config='height=300, width=300, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no,directories=no, status=no ,offscreenBuffering=false');
TheNewWin.moveTo(-10, -0);
</SCRIPT>
</head>
<body bgcolor="#ffffff">
Open new window
<br>
<input type="button" value="Open Window" onclick="openPlanApplet()">
</body>
/** AppletTest.html
<html>
<head>
<title> test applet </title>
</head>
<body>
This is testing of applet
<br>
<applet code="AppletTest.class" WIDTH = "800" HEIGHT = "600">
</applet>
</body>
</html>
**/

Similar Messages

  • Has anyone with XP, svc pk 3 downloaded new Java plugin update and if so, is FF working okay afterwards?

    Anybody else wondering about this? Has anyone else with XP w/32 bit, downloaded the new Java update in plugins and are you running okay?
    I want to update my Java plugin, but am waiting to see if others with XP, 32 bit have updated and how it works for them.
    Thanks!

    Zukki, just go to your tools, addons and addon manager. It will bring you to your plugin page, and on the left top, in very small print, it has a link to check if your plugins are updated.
    Oh, I left this open so that Zukki can see how to check to see if his update worked, Andy. I'll click that you solved it, once he gets a chance to see where to find the plugin update status.
    Thanks for the link, Andy...the only reason I crashed is that I have very limited RAM. I need to look into buying more and am going to next week. Another topic for discussion! :)

  • Java 8: Pb with new java.time api

    Hello,
    I'm trying to use the new java.time api that comes with Java 8 (I already know joda-time).
    I'm using the latest build B124.
    I've a String "01/08/2012_00:00:01", I know that the time ref. is UTC, and I want to convert it to an 'Instant';
    I tried:
    DateTimeFormatter FORMAT_DT = DateTimeFormatter.ofPattern("dd/MM/yyyy_HH:mm:ss").withZone(ZoneOffset.UTC);
    Instant instant = Instant.from(FORMAT_DT.parse("01/08/2012_00:00:01"));
    But it fails with following error:
    java.time.DateTimeException: Unable to obtain Instant from TemporalAccessor: {},ISO resolved to 2012-08-01T00:00:01 of type java.time.format.Parsed
         at java.time.Instant.from(Unknown Source)
    I don't understand what's wrong with my code, and I can't figure out how I should proceed to convert the String to an Instant ...
    Any suggestion welcome,
    Best regards,
    Bernard.

    Originally you stated this:
    I don't understand what's wrong with my code,
    So naturally we focused on how to "understand what's wrong' with your code.
    You will never learn to troubleshoot problems if you just throw your hands up in the air and ask for help just because a complex series of steps doesn't complete successfully. 
    Break the process into its individual steps and check the results of each step to identify which step is FIRST producing an error.
    When a complex or multi-step process has an error you start checking the individual steps of the process to see how far it gets successfully.
    I would expect that converting a String to an Instant should be a basic/simple need, so it should be possible to do it in two lines of code; for the time being, the only way I found is to use a LocalDateTime intermediate variable, which seems quite verbose, and I'm wondering if someone knows a better way to do it, and would be willing to share it here.
    Just a technical distinction: your latest example using a LocalDateTime intermediate variable CAN be done in one line of code by just using dot-notation to avoid creating an explicit intermediate variable. But that variable will still be created implicitly behind the scenes.
    Converting a String to an Instant might be considered a basic/simple need but the set of functionality related to dealing with times, dates, calendars, etc is extremely complex. It makes much more sense to develop the requisite functionality in modules.
    Especially when introducing new functionality such as the 'Instant' class are related package elements introduced in 1.8. That functionality builds on what came before and parsers already existing that know how to deal with all of the possible String variants and formatting options and so on.
    Since that work CAN BE done on-the-fly using dot notation and anonymous implicit intermediate classes there isn't much need to reinvent that functionality in the new classes. If certain uses become standard new methods can always be added (e.g. to the Instant class) that will 'appear' to do things in one step.
    And, being an early adopter release, you can always file a 'bug' or enhancement request from the 1.8 download page. That page has links for 'Report Bugs' and 'Feedback forum' that you can use.
    In this current forum no one can give you an 'official' answer as to why something was implemented a particular way and/or whether that implementation is a 'bug' or was designed to work that way. Only Oracle can do that.

  • JavaScript to Java with the Java Plugin, anyone?

    The java.sun.com web site seems to be teeming with docs on how to access JavaScript from Java, and the Netscape site seems to have plenty of docs on how to access Java methods from JavaScript using the browser's own JRE.
    But can one use JavaScript to access methods of a Java applet running under the Java Plugin? And if so, how?

    all the public methods and fields of an applet are exposed to javascript. In the <applet> tag, set...
    <applet ...otherinfo... mayscript></applet>, or
    <applet ...otherinfo... mayscript="true"></applet>
    I think the latter version is safer to use, as I think IE has issues if you just use the mayscript tag without the "true" value.
    So if that is set, in javascript all you have to do is address the applet, and call any of its public fields/methods. (Actually, I know you can call all public methods and I think you can call all the public fields as well...)
    var applet = self.document.applets[0];So now you can call all the public members, such as...
    applet.start();
    applet.stop();
    applet.myPublicFn1();
    applet.myPublicFn2(arg1, arg2);
    var val = applet.pubField1;etc.
    Note that if you're using Java2 (swing) thru the object/embed tags rather than just using the applet tag, things don't work that smoothly. I tried once and the applet wasn't actually found in the applets collection of the document. I tried finding the 'applet' object but had no such luck...
    Hope that helps.
    Good luck.

  • Help setting up Open DNS with new airport extreme

    I cant seem to get Open DNS to work with a new airport extreme. The status says I am not using Open DNS and its not filtering anything. I have followed the exact steps for set up listed on their website, checked the dns settings, cleared both caches and restarted the computer, modem and router with no success. I set the airport up in bridged mode, although I tried the other option under setup, but not sure what I was doing? I picked up this router because I wanted easy set up and the apple store assured me it would work with Open DNS. Oh, and I also downloaded the latest firmware update on the router. Can anyone help me with the settings or what else I need to check?

    Sorry, I am not familiar with this product, so I checked online to pick up some information.  Here I am referring to the information found here:
    http://www.dslreports.com/faq/6096
    I found that your device is mentioned as follows in the intro under Section 1 of this document:
    The BellSouth supplied Westell 2100, 2200 and 6100 models (Models A90-210030-04, B90-220030-04, and B90-610030-06/C90-610030-06, respectively) share many features and functions.
    Next, I am referring to the information under Section 2, under the heading of Standard Default Mode Connection (separate hub or switch present).  Unless you have changed the configuration on the Westell, this is how your device is operating. In this mode, the Westell device is acting both as a modem and router in one unit.
    So, an attached router (AirPort Extreme) must be configured as a switch to work correctly. That is what Bridge Mode is....the AirPort Extreme is operating as a switch when it is in Bridge Mode (which would be the correct setting to use when the Westell is set to its Standard Default Mode).
    Any changes that you want to make regarding DNS settings would need to be made on the Westell device, since it is acting as the main router on your network.
    In Bridge Mode, the AirPort Extreme simply passes that information through to its connected devices. You will not be able to make any DNS related changes on the AirPort Extreme since it receives that info from the Westel device. Some service providers force you to use their DNS servers, so you might want to check with Bell South or AT&T for more information in this regard.
    If you want to be able to configure the AirPort Extreme as the main router on your network, and instruct it to use the DNS information that you want, you will need to refer to the section under the heading of Bridged Ethernet Mode ( separate router present).
    Please note that the first item under this heading specifies that "This is the preferred configuration when using a separate external router..." (which would be the AirPort Extreme in your case)
    So, it appears to me that this would be the way that you must reconfigure the Westell device to allow the AirPort Extreme to function as the "main" router on your network. In this type of setup, you will be able to enter the DNS information that you want to use under the setup for the AirPort Extreme and it will act as you instruct.
    The AirPort Extreme would not be configured in Bridge Mode for this....it would be configured to "Share a public IP address".
    The next item in the article specifies that you "Must use a PPPoE client on the Router." This means that the AirPort Extreme would be configured to Connect Using = PPPoE as follows:
    AirPort Utility - Manual Setup
    Click the Internet icon
    Click the Internet Connection tab
    Connect Using = PPPoE
    You would enter your user name (probably your email address), password, etc in this area. Leave the Service Area box completely blank. Set Connection to Always On, and Disconnect if Idle to Never
    Click Update to save the new settings. Power off the Westell device after this and then restart it so that it will pick up the new information that you have programmed into the AirPort Extreme.
    I want to stress that this is how I would try to configure the Westell and AirPort Extreme. But, as I said, have not used a Westell device, so I cannot say that this will work correctly for you.
    It might be an excellent idea to contact Bell South or AT&T Support to ask for their opinion on this before you decide to change the configuration of the Westel device and the AirPort Extreme.
    This type of thing can be intimidating for users, so you might elect to use the services of someone like the Geek Squad at Best Buy, or a similar service from a local computer firm. Perhaps the Apple store could help as well.
    If it is not critical that you use Open DNS, you might want to simply leave things "as is", with the AirPort Extreme in Bridge Mode.

  • Performance problems with new Java Tiger style recommendations

    Performance problems with jdk 1.5 on Linux plattform
    (not tested on Windows, might be the same)
    using the new style recommendations.
    I need fast Vector loops for high speed mathematical calculations, some
    hints about the fastest way to program that loop would be also great!
    After refactoring using the new features from java 1.5 (as recommended from
    SUN) I lost performance significantly:
    using a vector:
    public Vector<unit> units;
    The new code (recommended from SUN for Java Tiger for redesign):
    for (unit u: units) u.accumulate();
    runs more than 30% slower than the old code:
    for (int i = 0; i < units.size(); i++) units.elementAt(i).accumulate();
    I expected the opposite.
    Is there any information available that helps?
    The following additional information I got from Mr. Shankar Unni:
    I got some fairly anomalous results comparing ArrayList and Vector: for the
    1.5-style loops, ArrayList was faster then Vector, but for a loop with get()
    calls, Vector was faster. Vector was even faster than that using
    elementAt(), which was a surprise:
    For a million summing iterations over a 100-element array:
    vector elementAt loop took 3446 ms.
    vector get loop took 3796 ms.
    vector iterator loop took 5469 ms.
    arraylist get loop took 4136 ms.
    arraylist iterator loop took 4668 ms.

    If your topic doesn't change, please stay in your original post.

  • Images not displaying in new java plugin

    Hey everyone..
    In the old plugin my java applet worked fine in a web browser. Everything displayed okay.. Now the images don't display at all in the new plugin. What gives!?

    Did you change from Java 1.5.x to Java 6?
    Sun reserves the right to make changes between major versions that will cause programs to fail.
    Check the Java 6 documentation for what changed.

  • I still can't open files withis new upgrade this new adobe dc app. what gives????

    I have not re ieved any feed back on how to open the files with this new upgrade. I need help!

    Hi,
    Would you tell us which app you have?  Acrobat DC for iOS or Android?
    Can you also make sure that you have the latest version of the app?
    For iOS, the latest version (as of April 28, 2015) is 15.0.2.
    For Android, the latest version (as of April 28, 2015) is 15.0.1.
    If you are looking for the files that are locally stored on your device, please select "Local".
    Please let us know if you need additional information.

  • With new java 1.6-15 can't establish connection via SSL protocol

    Just after installation Mac OS java version is 1.5-20 and try to lanch our java client to our old server all works fine.
    After upgrade Mac OS upto latest version, java upgraded to 1.6-15, but after that I've got error:
    Destination unreachable; nested exception is:
    javax.net.ssl.SSLHandshakeException: FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters.; No available router to destination
    afaik, this is because new version java is disable some old unsecured protocols for SSL connections.
    But same program under Windows and same java version runs without problems.
    How to enable the old protocols for SSL in java for Mac?

    Hi Gary,
    If you have the Orange icon then your client is connected to the DAC server. (If it's red then it's not, and if it's green it's connected and an execution plan is running).
    If you have never run any DAC jobs (and if you're just doing the installation then you won't have I guess) then your log will be blank and you'll just get a blank log window.
    Have you got any evidence that your DAC server isn't running other than the Log won't download properly?
    Obviously if you stop the DAC server then you're going to get an error that the client can't connect to the server :-D
    If I were you I'd continue with the installation guide, as it sounds like things are working as they should.
    BTW don't forget to mark this and other responses to your posts as helpful/correct as appropriate :)

  • Can't Open Files with new version 7.55.90.70

    Just updated old Quicktime version 5 to 7.55.90.70. Now I get an error message when I try to open my Encyclopedia Britannica program that says "Quicktime is missing or incorrectly installed". It tells me to reinstall Quicktime from the Britannica installation CD. When I tried that, a message appears that a newer version of Quicktime has been installed and the CD can't reinstall version 5. So, it appears that the new version won't let me open the program unless I uninstall the new version and go back to the old version. That doesn't make sense. The new version 7.55.90.70 ought to support programs that used the old version. I have tried the fixes offered to repair the installed Quicktime with no positive result. Can someone provide advice? Thanks.

    Im having the same problem too. I hope they could fix this

  • Does OracleWebLogic Portal 10.3.2 works with new eclipse plugin 11.1.1.6 ?

    Hi I am having a question,
    I tried to use the new oracle eclipse plugin 11.1.1.6.0 but my WebLogic Portal projects do not work anymore ?
    Is the portal not supported any longer?
    Regards
    Edmund

    Unfortunately, the WebLogic Portal 10.3.2 eclipse plugins are only supported with Oracle Enterprise Pack for Eclipse version 11.1.1.3 on Eclipse 3.5.
    Greg

  • Middle mouse button does not open tab with new url

    Suddenly, Firefox (3.6.10 on Kubuntu) changed the behavior of the middle mouse button.
    Before, pressing the middle mouse button on the regular window (not tab bar or tool bar or such) and not on a link caused Firefox to open a new tab and to attempt to load the content of the buffer as URL.
    Now, Firefox shows a weird circle with arrows and my page scrolls vertically in a weird way.
    How to get back the original behavior?
    I tried to find a solution on the web. Despite the many suggestions, the problem prevailed. For example, browser.tabs.opentabfor.middleclick and middlemouse.contentLoadURL are both true

    Very glad to see I am not alone. Alas....that answer did nothing on my system. I also am very very frustrated that, all of a sudden, my middle mouse button brings up a weird four pointed arrow! (see pic) I NEED it to open links in tabs for researching!!
    I turned off auto scrolling in the advanced settings. Restarted FF even...and nada.
    I have disabled every single add on I had (only like 6 of them)...and nothing.
    This happened all the sudden...I dont even know of an update. FF v3.6.10

  • Open outlook with new message containing attachment

    Hey!
    I using forms 6 and try to build a proc for the task of openning an outlook + a message (for 1 or more receivers) , including an attachment file.
    note: it should be sent manualy by the user. the task is only to produce a new message + attachment.
    i've try to do it with WIN_API_ENVIRONMENT.Read_Registry, for openning the outlook and win_api_shell.winexec, for the message + attachment.
    now , the message oppening task is done propperly , but yet , without the attachment.
    (it dident work when i try to attach it localy , or through network)
    i'm working on 9i , windows xp.
    thanks!
    yair

    You should post there:
    Forms
    Sim

  • How can I open PPS with new Mac Mini?

    How can I open PPS files with my new Mac Mini?

    Microsoft PowerPoint 2011...
    http://www.microsoftstore.com/store/msstore/en_US/pd/productID.237192800
    Apple Keynote...
    http://store.apple.com/us/product/MB942Z/A/iWork-09?
    OpenOffice...
    http://www.openoffice.org/download/other.html#tested-fulll
    File Juicer...
    http://echoone.com/filejuicer/

  • Firefox will not open even with new profile

    When I attempt to open Firefox nothing happens on screen. I have created a new profile still no joy. In the Windows Task Master Process window Firefox.exe is shown. I have attempted to update Firefox no joy I have uninstalled and reinstalled Firefox still no joy. I know that it is working in the background but where and how can I bring it to the foreground

    Hi cor-el, and thanks
    Have checked the Firewall that is ok and have allowed any mention of Firefox to have Internet acess , still no joy, I am using Zone Alarm.
    I do not get any messages when I attempt open Fire Fox just the browser does not open. I can see in the Task Manager that Firefox has started and is sitting idle but no Browser window.
    I End Task in the Task Manager before I attempt to start Fire Fox again after I have made any changes such as the changes to Zone Alarm as mentioned before. Then I attempt to start Firefox again and still no joy.

Maybe you are looking for

  • How I want to use iCloud + my PC, help/look for answers here

    Howdy all, I will be updating this if i manage to fix my problems So I love my iPad, and I will soon get an iphone. But regardless of those purchases, I still have a PC and I will continue using it. But I love my iPad as my main personal organizer, (

  • Video playback on flash plugin is very bad

    This is double post from safari forum. I am not shure if this is a macbook, grapic card, safari or flash10 plugin isue. My guess is the grapich card. When I try to play a video made by Norwegian Broadcasting, it doesent play. It only shows purple noi

  • Description in Radiobutton fields are not exported properly to PDF

    I can make a radiobutton question in Indesign; Example: Gender with the answers Female / Male and the descriptions Are you a female? Are you a male? After exporting only the Description of the first field is shown: So for both choices I am getting Ar

  • Problem with timer

    hi every body, i made a program that allow every client to send a message to another client, and to that i was created a table to make a client to write he's meesage to another client by using a form made for this purpose and then i was created a tim

  • Reg: Application Server startup objects

    Hello... I am using weblogic server v9. I want to hit the database and populate a couple of objects during startup of my app server and store them in application scope. I have no idea on how to proceed. Any hints on the same will be appreciated. ~Sir