Sitemap

Amicuk Programming Answers

Opening a frame from an applet

2015-10-11   Views:0

Advertisement

Hi, I want to open a frame in my applet. If I'm using swing, JApplet opening a JFrame, is it possible to keep the frame open if the user browses away from the page that holds the applet? Are there any tricks? I've tried opening it in a new Thread, bu

Hi,
I want to open a frame in my applet. If I'm using swing, JApplet opening a JFrame, is it possible to keep the frame open if the user browses away from the page that holds the applet?
Are there any tricks? I've tried opening it in a new Thread, but it still goes away when the the browser's page changes.
Could I call getParent() from the applet until I get an instance of Frame (which would be the browser) and set my JFrames' parent? Or does that only work with the old Netscape and old AWT Frames?
I basically want to know if I can keep my JFrame open until the browser is closed. Any ideas or suggestions would be greatly appreciated.
thank you very much

The replay answer
Advertisement
Do you want to open a jsp application in a frame when you click on the applet?If so, there is a programme in http://www.globalleafs.com -Java-Java Applets 's download section. Check it out.

Go to See the other 4 answers

Opening a frame from an applet

Category:DefaultRelease time:2015-10-11Views:130

Hi, I want to open a frame in my applet. If I'm using swing, JApplet opening a JFrame, is it possible to keep the frame open if the user browses away from the page that holds the applet? Are there any tricks? I've tried opening it in a new Thread, bu[More]

How to create a frame in a applet?

Category:DefaultRelease time:2015-10-11Views:130

Dear All, How to create a frame in a applet? Thanks in advance KityyYou can't add a Frame/JFrame to an Applet/JApplet. An Applet/JApplet has its origins in the class Panel/JPanel. So, if you make your Applet to an application you can easily do that b[More]

How can I remove the lable "Warning:Applet window" of pop frame in a applet

Category:DefaultRelease time:-0001-11-30Views:130

How can I remove the lable "Warning:Applet window" of pop frame in a applet? Not only in MS IE's JVM,but also in java plug-in 1.40, the warning always display , What can I do? === thank you!You cannot remove the label. It is there intentionally[More]

Opening and closing a frame from an applet security problem

Category:DefaultRelease time:2015-10-11Views:130

can I open a frame or a window from an applet and close the frame by using System.exit(0) for the frame or will it throw a security problem.I am using system.exit(0) to exit the JVM. dispose() Releases all of the native screen resources used by this[More]

[NEWBIE] How to open a frame from an Applet?

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm trying to open a JFrame from an Applet. Basically, I would like that, once the user selects an option from a JMenu, a Frame would be shown with a text box where user could type some content. I built both the Applet and the Frame, and singular[More]

How do i add a frame to an applet?

Category:DefaultRelease time:2015-10-11Views:130

This is the code i was doing during my java class ( skiping ahead a bit): package September; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Banner extends JApplet   implements ActionListener   private int xPos, yPos,xP[More]

Opening a frame inside IE applet (window)

Category:DefaultRelease time:-0001-11-30Views:130

I have an applet whih creates an instance of a frame .. the frame opens up in a separate IE window .. is there a way for the frame to overlay the applet window or is the nature of the frame always going to force a new window to open .. thanks to all[More]

Frame Decoration in Applet with Swing

Category:DefaultRelease time:-0001-11-30Views:130

Hi I have an applet that pops up a frame. Newly created JFrame has swing components on it. When I call setDefaultLookAndFeelDecorated(true)on frame it keeps on showing the status bar at the bottom of new window/frame (which it is not supposed to). Al[More]

Opening frames from an applet

Category:DefaultRelease time:-0001-11-30Views:130

Me and a friend are making an applet, and would like it to open a new frame at some point. It works perfectly* on his WIN 2k IE 5.0 but somehow it does not on my WIN 2k IE 6.0 Is it no longer legal to open new windows from an applet? Thanks. *Except[More]

Help! How to Open a Frame from applet with

Category:DefaultRelease time:2015-10-11Views:130

Hey all. I need help =). I want: 1. Have 1 class extends applet with running thread (this far no prob) 2. Open a new frame from the applet (no prob) 3. Start a new thread which is operating "inside" the new Frame/class 4. Draw a simple Rect in t[More]

Applet navigator to open a page in another frame.

Category:DefaultRelease time:2015-10-11Views:130

Hello to the Java gurus out there, I was wondering if someone could give me a pointer as to how I can get an applet navigator to open a page in another frame of the web browser? Say for example, I have two frames in the main HTML page where one frame[More]

Hot
In either 9i or 10g (eventual). I have a CONTEXT index that contains multiple columns from multiple tables and using a USER_DATASTORE. E.g., I have names that come from 3 different table locations and dates that come from 4. I can index them fine but [More]
When I try to search the possible values in the drop-down for a field in Infotype 001 (Pers Area), I get a message that says "No values exist".  In all the other fields the drop-downs contain the list of possible entries. It is only in this one [More]
Hi All, when I run the dun transaction (F150) sometimes in table MHND and MHNK open items with dunning level 0 appear. These are open items overdue, but not enough to level 1. Note that this problem appear only sometimes. Do you know how to avoid thi [More]
Since upgrading to iphoto 11 I,m having difficulty viewing my photos in edit mode. On the quick scan of info mode the photos appear sharp, however in edit mode the edges blur up making it very difficult to edit properly, What is the problem here?  I [More]
The program quits before it even starts compressing after I click "Submit"  There is no error message or any indication of why the attempt failed.  Except a grey message to the side that says QuickTime Error -120 I'm using the presets.  Trying t [More]
Hello community, while searching for the relevant Business Partner business obect for ERP we somehow found this one: ABABusinessPartner in http://sap.com/xi/ABA. This seems to be the only business object offering outbound notifcation on data change ( [More]
I have about 4 or 5 users that when they click on the Save Email as activity it seems to take a very long time, in some cases up to 5 minutes to do this for one email.   I have checked to make sure that the are no other network problems but everythin [More]
This is my computer: MY MAIN COMPUTER Since upgrading from XP to Windows 7 Ultimate I have upgraded the RAM memory to its full 32 bit capacity. My computer now has the most amount of RAM memory it can handle Since upgrading to Photoshop CS5 it would [More]
I saved my language as ukranian.  How do I change to english?From what you have described here the problem is not clear. As queried by Claudio, does all other applications and OS using Ukrainian language as the text. Also if you want to launch Adobe [More]
Hi All, I am using oracle database 10.1.0.4.0 - 64bit on solaris9. While exporting whole database through expdp i got following error: ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB [More]