Applet « Focus « Java Swing Q&A





1. Java Applet flickers on focusLost and focusGained    stackoverflow.com

I have a Java JApplet embedded in a web page. The JApplet window contains a single instance of a class that extends JPanel - same size as the JApplet. The applet can spawn ...

2. Applet Permanently Loses Focus When Leaving Browser and Coming Back    stackoverflow.com

I have a web page with an applet as the only element that looks something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <title>...</title>
</head>
<body>
<applet style="padding:1px; border:1px solid gray" mayscript="mayscript" ...

3. focus for java applets    stackoverflow.com

I made a java game that is all based on JPanel. When I add it to a JFrame it works perfectly, and when I add it to a JApplet and ...

4. Java applet maintaining focus with multiple JPanels    stackoverflow.com

I wrote a Java applet that uses multiple JPanels. One for the main menu, one for the high scores list, one for the game itself, and one for a final end ...

5. Applet delays repaint/update when browser loses focus    coderanch.com

Good morning java gurus. I have a little problem with an applet I coded. It is a navigation applet, loaded in one frame, that uses liveconnect to determine the content of another frame. Everything works fine until I load the frameset into Netscape 4.7, then open another instance of the browser. Somehow, once the second instance is open, the first applet ...

6. [Help] Something very strange of Focus in Applet    coderanch.com

Hi there: I have developed an applet and put it in Netscape7 under solaris9. When it first load, everything goes smoothly, focus is gained and also reload the page the focus is still there. But at this time if I alt-tab to other application window and then come back, the focus losts, no focus also after reload and reload. I have ...