IE6 starts new Applet viewer window

I have an html page with an Applet tag. This start a new window with Applet viewer. Obvioulsy I want the Applet to start in the same window as the html page.
Does anybody know why this is so?

I was creating a new Frame() object and adding a Label to the Frame (writing the code manually). This always starts an Appletviewer window of its own in IE6.
Label myLabel = new Label("A New Label");
Frame myFrame = new Frame();
myFrame.add(myLabel);
Using the JDeveloper visual editor, creating a Label in the Applet automatically generated the following code. When this is delivered to IE6 it puts the Label in the same windows as the html page instead of starting a new window.
this.setLayout(null);
jLabel.setText("A New Label");
jLabel.setBounds(new Rectangle(90, 70, 60, 25));
this.add(jLabel, null);
In retrospect the documentation says that creating a new Frame() will create a new Window. But you always read that last.

Similar Messages

  • Applet viewer | windows xp

    I used JCreator to compile Hello.java applet from the tutorial and have Hello.html. Even when i copy and past the command.com or cmd.exe in the same dir where the file are it cant make the applet from dos.
    I already made C:\j2sdk1.4.0-beta3\bin path in system variables.
    If i use the browser it work, but anyway to make it work from the command line?

    Hi,
    you have to setup CLASSPATH env variable like this:
    set CLASSPATH=.;C:\j2sdk1.4.0-beta3\jre\lib\rt.jar
    at least.
    vpanasenko_even

  • Applet viewer always starts in IE6

    I have an html file with an applet tag. This always starts in a new window as the Applet viewer. I obviously want it to start in the same window as the html page.
    Other Applets like fphover don't do this.

    Thanks for the reply. I was trying to add visual components to the window, and found the mistake was creating a new Frame() object in the Applet. This creates a new Applet viewer window, which seems obvious in retrospect.
    If you just add components to the this object in the Applet as in
    this.add(SubmitButton, null);
    instead of creating a new Frame object, the objects appear in the same window as the html page.

  • Opening new applet windows with button

    I'm having a bit of trouble. I have this button when you click it, would open up another window with text in it. That works perfectly. But when I try to add another button for another window, it doesn't go perfectly.
    I took out the useless code to show you the main stuff I'm working with.
    import java.awt.*;
    import java.applet.*;
    public class HorseRacing extends Applet
        CustomFrame gameWindow;
        CustomFrame creditWindow;
        Button openGame, openCredit;
        Image redHorse, yellowHorse, blueHorse, orangeHorse;
        public void init()         
              //Initializes the images
            redHorse = getImage(getCodeBase(), "../classes/horsered.GIF");
            yellowHorse = getImage(getCodeBase(), "../classes/horseyellow.GIF");
            blueHorse = getImage(getCodeBase(), "../classes/horseblue.GIF");
            orangeHorse = getImage(getCodeBase(), "../classes/horseorange.GIF");
              //Instructions window
            gameWindow= new CustomFrame("21 Century Horse Racing - Instructions", redHorse);
              openGame=new Button("View Instructions");
              add(openGame);
              //Credit window
              creditWindow=new CustomFrame2("21 Century Horse Racing - Credits");
              openCredit=new Button("View Credits");
              add(openCredit);
        //  Method Name: action()
        //  Parameters Passed: Event variable evt, Object varible obj
        //  Data Returned: Variable true
        //  Method Purpose: This block responds when the user takes an action
        //                  (such as hitting the return key). It causes the paint
        //                  block to be done again
        public boolean action(Event evt, Object arg)
            Graphics screen=getGraphics();
               boolean visible=gameWindow.isShowing();
            boolean visible2=creditWindow.isShowing();
               if(evt.target instanceof Button)
                 if(visible)
                         gameWindow.hide();
                         openGame.setLabel("View Instructions");
                    else
                         gameWindow.show();
                         openGame.setLabel("Close Instructions");
                    if(visible2)
                         creditWindow.hide();
                         openCredit.setLabel("View Credits");
                    else
                         creditWindow.show();
                         openCredit.setLabel("Close Credits");
            return true;
    //  Name: Sachit Harish
    //  Name of Program: CustomFrame
    //  Date Started: May 15, 2003
    //  Date Finished: 2003
    //  Program Description: This is a racing game where the program will
    //                               generate random odds for the 4 horses. The user
    //                               can then choose their horse and place a bet.
    //                               The user will then see the horses race, and the
    //                               money will be handed out depending on the odds.
    class CustomFrame extends Frame
         CustomFrame(String title,Image redHorse)
              super(title);
              Graphics screen=getGraphics();
              //getClass().getResource("../classes/horsered.GIF").getImage();
              //redHorse=getImage("../classes/horsered.GIF");
              //screen.drawImage(redHorse, 0,0,10,10,this);
         public void init()
              setBackground(Color.gray);
         public void paint(Graphics screen)
              resize(430,280);
              screen.setColor(Color.lightGray);
              screen.fillRect(0,0,500,500);
              screen.setColor(Color.black);
              screen.drawRect(15,40,402,185);
              screen.drawRect(14,39,404,187);
              screen.setColor(Color.gray);
              screen.fillRect(16,41,401,24);
              screen.setColor(Color.black);
              screen.drawString("- - Instructions - -", 160,58);
              screen.drawLine(15,65,417,65);
              screen.drawString("    Once you start clicking on the checkboxes to choose your horse, the", 20,80);
              screen.drawString("odds will be created beside the horses. You can then select the horse",20,95);
              screen.drawString("you want with the checkboxes and in the input box place your bet amount",20,110);
              screen.drawString("Press enter to confirm your bet and click 'Race'.",20,125);
              screen.drawString("    The horses will then race, and once they finish, the winner will be",20,145);
              screen.drawString("displayed. If you didn't choose that horse, you will lose the money you",20,160);
              screen.drawString("bet. If you won, you will be payed out depending on the odds of that",20,175);
              screen.drawString("horse. Your bank will change according to how much money you lost or",20,190);
              screen.drawString("made. Once that is over, new odds will be created and you can play",20,205);
              screen.drawString("again.",20,220);
                 //Image title = getImage(getCodeBase(), "../classes/titlepicture.jpg");
            //screen.drawImage(title, 0,0,430,220,this);         
    //  Name: Sachit Harish
    //  Name of Program: CustomFrame
    //  Date Started: May 15, 2003
    //  Date Finished: 2003
    //  Program Description: This is a racing game where the program will
    //                               generate random odds for the 4 horses. The user
    //                               can then choose their horse and place a bet.
    //                               The user will then see the horses race, and the
    //                               money will be handed out depending on the odds.
    class CustomFrame2 extends Frame
         CustomFrame2(String title)
              super(title);
              Graphics screen=getGraphics();
              //getClass().getResource("../classes/horsered.GIF").getImage();
              //redHorse=getImage("../classes/horsered.GIF");
              //screen.drawImage(redHorse, 0,0,10,10,this);
         public void init()
              setBackground(Color.gray);
         public void paint(Graphics screen)
              resize(430,280);
              screen.setColor(Color.lightGray);
              screen.fillRect(0,0,500,500);
              screen.setColor(Color.black);
              screen.drawRect(15,40,402,185);
              screen.drawRect(14,39,404,187);
              screen.setColor(Color.gray);
              screen.fillRect(16,41,401,24);
              screen.setColor(Color.black);
              screen.drawString("- - Credits - -", 160,58);
              screen.drawLine(15,65,417,65);
              screen.drawString("    CREDITS", 20,80);
                 //Image title = getImage(getCodeBase(), "../classes/titlepicture.jpg");
            //screen.drawImage(title, 0,0,430,220,this);         
    }If I take away everything associated with the creditWindow, it will work. But when I add that in, I get problems.
    Also, I let in those redHorse, yellowHorse, blueHorse, and orangeHorse images because thats another problem I'm having - to get an image to work in one of those new windows.
    -s64

    What happens if you change to a modern action listener?

  • Safari (3.0.4) on Mac OS 10.4.11 has started quitting when viewing news and weather sites - not all sites, not the same sites every time.

    Safari (3.0.4) on Mac OS 10.4.11 has started quitting when viewing news and weather sites - not all sites, not the same sites every day. Help?

    Hi Gary...
    I see you are running v10.4.11 and you have updated Safari but make certain all the system software is up to date by clicking your Apple menu / Software Update.
    If everything is up to date, try resetting Safari from the menu bar.
    Select the top 7 buttons, click Reset.
    Restart your Mac. Launch Safari. Try several of the sites you mentioned.
    has started quitting
    If resetting didn't help, post a crash report.
    If Safari has just crashed, press the Report button on the CrashReporter dialog box to view the crash  information.
    Copy/paste the entire contents of the Crash Reporter window into your reply. If the crash report dialog does not appear or the crash is hard to reproduce, crash logs can be retrieved from the ~/Library/Logs/CrashReporter> folder.

  • New Viewer Window disappears

    I am running Yosemite 10.10.1 on my Air. This evening my mail viewer window shrank to two (from three) columns, then to a single message preview (quite wide, I must add), then disappeared. When I select New Viewer Window from the File menu, this very brief window flashes by, then disappears.
    I have repaired the disk and permissions to no improvement. The console log reads thus:
    12/19/14 6:29:14.811 PM Mail[210]: Unable to simultaneously satisfy constraints:
        "<NSAutoresizingMaskLayoutConstraint:0x7fe953662580 h=--& v=--& V:[MailboxesContainer(0)]   (Names: MailboxesContainer:0x7fe9532959b0 )>",
        "<NSLayoutConstraint:0x7fe953757b80 V:|-(0)-[MailboxesPane]   (Names: MailboxesPane:0x7fe9530afb80, MailboxesContainer:0x7fe9532959b0, '|':MailboxesContainer:0x7fe9532959b0 )>",
        "<NSLayoutConstraint:0x7fe953434dc0 V:[MailboxesPane]-(0)-|   (Names: MailboxesContainer:0x7fe9532959b0, MailboxesPane:0x7fe9530afb80, '|':MailboxesContainer:0x7fe9532959b0 )>",
        "<NSLayoutConstraint:0x7fe950e3c230 V:[ActivityPaneView:0x7fe953b8f760(23)]>",
        "<NSLayoutConstraint:0x7fe953ef14e0 V:[activityView]-(0)-[ActivityPaneView:0x7fe953b8f760]   (Names: activityView:0x7fe953e95fd0 )>",
        "<NSLayoutConstraint:0x7fe953b7b480 V:[activityView(0)]   (Names: activityView:0x7fe953e95fd0 )>",
        "<NSLayoutConstraint:0x7fe953812220 ActivityPaneView:0x7fe953b8f760.bottom == MailboxesPane.bottom   (Names: MailboxesPane:0x7fe9530afb80 )>",
        "<NSLayoutConstraint:0x7fe950ea2890 V:[NSScrollView:0x7fe950d1a480]-(0)-[activityView]   (Names: activityView:0x7fe953e95fd0 )>",
        "<NSLayoutConstraint:0x7fe953f2b000 V:|-(0)-[NSScrollView:0x7fe950d1a480]   (Names: MailboxesPane:0x7fe9530afb80, '|':MailboxesPane:0x7fe9530afb80 )>"
    Will attempt to recover by breaking constraint
    <NSLayoutConstraint:0x7fe950e3c230 V:[ActivityPaneView:0x7fe953b8f760(23)]>
    Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
    This is repeated five times with the same timestamp.  Then
    12/19/14 6:35:15.368 PM Mail[210]: No worthy mechs found
    How can I get out of this mess?

    See from
    Mail viewer window closes immediately after starting Mail.
    See
    Re: Mail only works in classic layout under yosemite
    Edit
    Also see
    http://www.macambulance.co.uk/apple-mail-message-viewer-disappears-launch-wont-o pen/

  • I am trying to download iTunes on my new desktop computer (Windows 7, 64 bit).  It starts installing, and then stops with the message- "The System Administrator has set policies to prevent this installation."  I am the sole user- please help.

    I am trying to download iTunes on my new desktop computer (Windows 7, 64 bit).  It starts installing, and then stops with the message- "The System Administrator has set policies to prevent this installation." This is a stand alone computer and I am the sole user.   Please help.

    This is a Microsoft Windows Issue.
    From a MS Support Engineer:
    "Hi,
    ·        Is the computer on a domain?
    ·        Is the issue isolated to only this software or you get the same error message with other software’s as well?
    Try the steps below and check if it helps.
    Step 1:
    Run the software setup file as an administrator and check if it helps.
    a. Right click on the setup file of the software that you are trying to install.
    b. Select “Run as administrator”.
    Step 2:
    Temporarily disable the antivirus software running on the computer and check if you are able to install the software.
    Disable antivirus software
    Warning:
    Antivirus software can help protect your computer against viruses and other security threats. In most cases, you shouldn't disable your antivirus software. If you have to temporarily disable it to install other software, you should re-enable it as soon as you're done. If you're connected to the Internet or a network while your antivirus software is disabled, your computer is vulnerable to attacks.
    Step 3:
    a. Click Start, type "Local Security Policy" (without quotes) and press enter.
    b. Click on Software Restriction Policies.
    c. In the right pane, double click on the "enforcement".
    d. Select “All users except local administrators”.
    e. Click Ok and restart the computer and check if the issue is fixed."

  • Blank Screen with cursor after login Windows 7, Unable to start new tasks

    My problem is similar to the well know Windows 7 Black Screen as referenced by Prevx, though different. When I boot my Windows 7 computer, the login screen appears as always. Following entering the password for default user,
    the screen will give the impression of login, but the final result is a plain black screen with the cursor only. The black screen appears indefinitely and the Windows GUI never appears. The only available option from booting in normal mode with this is Ctrl-Alt-Del
    (Task Manager). From analyzing another computer with Windows 7 Professional, my Task Manager is missing the following user processes: dwm.exe, explorer.exe, and taskhost.exe. Additionally, it is missing the following system processes (possibly irrelevant):
    spoolsv.exe and wmiprvse.exe.
    When I attempt to start a new process using Windows Task Manager, an error message will appear saying “Windows Task Manager has stopped working” and forces you to close Windows Task Manager. This includes starting
    any process such as cmd or explorer.
    I attempted to boot into safe mode. 
    The result was the same as above. Then I attempted booting into safe mode with command prompt. This showed some hope. Following authentification from the login screen, the command prompt appears with the same blank screen with a cursor behind it. Initially
    I attempted to run msconfig.msc to run a clean startup. System Configuration Utilities opens briefly then displays the error same as above. “System Configuration Utility has stopped working” and again forces the program to close. Then I tried to
    open regedit. This works with no error messages! So I have access to the registry, but have no idea what I should modify to get my computer running normally.
    Things I have tried:
    1)   
    Restoring to last know good configuration. (No result)
    2)   
    Repairing Windows configuration. (No result)
    3)   
    Scanning the drive 3 separate times for viruses with both Avast and Symantec. (No viruses detected)
    4)   
    Repairing the REG_SZ value HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell as proposed in
    http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/5b94b775-992e-4f48-b3ff-c89b3cf45e82
    5)   
    Executing Prevx’s fix file as proposed in
    http://www.prevx.com/blog/140/Black-Screen-woes-could-affect-millions-on-Windows--Vista-and-XP.html
    Any ideas are much appreciated.
    Thanks,
    John

    Same problem  I've found a solution.
    #1 Hit fastly 5 time the left shitf button on your keyboard.
    A windows will appaers to know if you want to caps lock. Keep it open
    #2 Alt-CTRL-Del
      You have know your desktop
    #3 Go on add-remove programme
    3a) Go on windows add-remove
    3b) Remove internet explorer
    ok-ok-ok - untill it's remove and ask to restart
    #4 No more problem. You have to go on the net with chrome or firefox.

  • New Pages no longer allows SECTIONS (in thumbnail view window) to be re-arranged like before?

    New Pages no longer allows SECTIONS (in thumbnail view window) to be re-arranged like before? You could drag and drop sections within your document the same way you could drag and drop pages in Preview's PDF documents. So how do you re-arrnage your document now?
    ALSO
    You used to be able to duplicate/copy a section/page by draging it with OPTION-LEFT-CLICK to a space below or above in the thumbnial window. The same way it works in PREVIEW in a PDF document. Did I miss something or is this also a bug?!
    These were extremely helpful to me and I hope many others. Can anyone help!?
    Thanks :-)

    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
    Peter

  • Web Viewer - getting buttons to open in a new tab or window

    I am trying to get a button to open in a new tab or window in the DPS web viewer.
    The options when creating a button are:
    Open link in folio
    Open link in device browser
    Both which do not work when we export the web viewer.
    I know it is possible as Adobe are using this function for their Inspire magazine. This does not seem to be html either that they are using. See link here - at the bottom of the page: Adobe Inspire Magazine October 2014: The Truth in a Face
    Any help with this issue would be highly appreciated.

    There is a parameter on creating the iFrame called externalLinksOpen. They can set it to 'window', as it defaults to inline, which opens it in the current window. It's documented here:
    http://www.adobe.com/devnet-docs/digitalpublishingsuite/ContentViewerForWebSDK-2.0/classes /FrameService.html#method_createFrame
    There is also a demo linked from our 'What's New' section under 'External Link for Embedded Viewer' at http://www.adobe.com/devnet-docs/digitalpublishingsuite/ContentViewerForWebSDK-2.0/modules /What's%20New.html.

  • I have just bought a new pc with windows 7 my old one can not be started so I can not deauthorise etc, how do I now put my iphone 4 on my new computer, I don't care about the songs I have those on external hard drive, but I don't want to loose my contact

    I have just bought a new pc with windows 7 my old computer cannot be started so I cannot deauthorise it etc, how do I now put my iphone 4 on my new computer, I don't care about the songs I have those on external hard drive, but I don't want to loose my contacts, calenders etc

    Terry,
    Plug your iPhone 5 into your Leopard Machine.
    Fire up iPhoto.
    The phone should become available in iPhoto, and then you can import the camera roll.
    -Alan.

  • When i close window with multiple tabs angd start new session (open new window) old tabs open again, how can i stop it?

    when i close window with multiple tabs and start new session (open new window) old tabs open again, how can i stop it?

    It is possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • JWS opens a Applet Running Window when starting the application

    I have an applet that runs perfectly fine when starting it by double clicking the desktop icon of through the Internet Explorer. My problem is that when I start the applet it opens up another window with status bar displaying "Applet Running". Is there any way to stop displying this window.

    It sounds like you are launching you applet from Java Web Start application by BasicService.showDocument("http://www.mycompany.com/myapplet.jnlp");
    This would of course launch a browser , which would launch another instance of Java Web Start to run the second applet.
    If you have all-permissions you could:
    Runtime.exec("javaws http://www.mycompany.com/myapplet.jnlp");
    to launch javaws directly.
    would be nice if web start allowed this with something like BasicService.launchJNLPClient("http://www.mycompany.com/myapplet.jnlp");
    /Dietz

  • I have a late 2011 Macbook and whenever I open any application it opens only the top menu bar and no viewer windows.I always have to click cmd n to open new windows and it is quite annoying.Does anyone know how to fix this issue? Thx

    I have a late 2011 Macbook and whenever I open any application it opens only the top menu bar and no viewer windows.I always have to click cmd n to open new windows and it is quite annoying.Does anyone know how to fix this issue? Thx

    You may have more of a chance getting a quicker answer here:
    https://discussions.apple.com/community/windows_software/windows_compatibility

  • Whenever i connect my ipod touch to my new pc with windows 8, all i can see in my computer is the internal storage or dcim( pictures). can anyone please help me figure out how i can locate or view my music folder?

    Hi guys ,
    I am very troubled with my ipod touch because I don't see my ipod folder showing up on my computer. i have tried all possible ways to make it viewable but somehow i end up seeing only my internal storage (dcim/pictures). Its really frustrating because bought a new laptop with windows 8 and installed a new itunes but only to find out that i cant transfer my songs right away.... I can connect my ipod touch to the itunes swiftly but to transfer my songs from my ipod to my computer is such a hassle. so please if anyone could help me figure this out... I cant buy an iphone unless i fix my problem with my ipod.....
    pls pls pls pls help me

    You need a third-party program. The following includes listing such programs. It also included instructions form making this computer your syncing computer
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

Maybe you are looking for

  • Vendor Master and Customer Master for FI AP/AR

    hi FICO Gurus, I am Sapna here and I have questions regarding the Mandatory fields for Vendor Master and Customer Master which would be mandatory for Running FI AP and AR. I am basically a MM Consultant but I have been asked to perform this role of M

  • How do you create an Index in Pages?

    Hi all, I can see how you can create Headings but I can't see how you create an Index! Surely the point of creating Headings is so they can be referenced by an index, so if anyone's got any suggestions I'd be glad to hear them ciao

  • GetData() to insert data into HANA

    Hi there, we struggle while using the getData() function to insert data into HANA. Here is our test coding:     typedef [        binary HeaderId;     Timestamp  "Timestamp";     string SystemType;        string SystemId;       | ] ts_Log_Header ; vec

  • JTree in JScrollPane not resizing after model change.

    I have a JTree in a JScrollPane that's put in a JPanel using the JGoodies FormLayout as it's layout manager. The column definition defines the column to grow so the JScrollPane should have enough space. The tree is empty when I create it and put it i

  • Storage space running out problem

    I deleted most of my photos, downloads etc. But it still keeps saying that. I can't download anything on google play anymore. Solved! Go to Solution.