DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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.

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links