Java applet window


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java applet window

  1. #1
    Join Date
    Apr 2005
    Posts
    4

    Java applet window

    I have an applet window that launches, but everytime this happens the browser window runs over the top of it. How can i bring the applet to the front, have tried using toFront() but that works on applet windows and javascript works on the browser windows????

    html file

    <html>
    <head>
    <script src="gta.js"></script>

    </script>
    </head>
    <body>
    <p>
    <a href="launchS.html">Click here to start Applet</a>
    </p>
    </body>
    </html>

    launcher html

    <html>
    <applet code = "Player.class" width = 400 height = 180>
    <param name="song" value="Hello">

    </applet>
    </html>

    The java uses a frame within an applet to create a seperate applet window

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    A frame inside an applet is something I have never heard of before...
    If you are trying to launch a frame from an applet, e.g. make a separate window
    somewhere outside the browser, then the browser decides if your applet is
    going to be allowed to do that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center