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
Hi, when method execute_asynchronous has disapeared since XI/PI 7.1, is there still way how to use ABAP proxy in asynchronous way? We need to build asynchronous connection SOAP->PI->ABAP_Proxy. In PI, both interfaces are defined as asynchronous (out [More]
If the account group was set up incorrectly and did not get noticed until there was master data against the account- what can be done to correct the situation? Thanks rajHello Rajendra, You wanted to know what to do so I replied accordingly. btw, the [More]
I have a MacBook Pro and connected a new 30 inch HP LP3065 with a dual link DVI cable and the highest resolution I can get is 1280 X 800. It should be much higher, at least 1920 X 1200 but I think even higher than that. I tested the monitor with a G4 [More]
Just upgraded to iOS 10.10.2 on my MacBook Pro (late 2011) and was informed my Kindle app was no longer compatible and would be removed somewhere.  When I tried to install a new Kindle app from the Apple App store it appeared to download, but when I [More]
Hi all, Can anyone provide me material / related links to SQL query. Thanks in advance. Needful will be rewarded points.Hi, Check these links..... http://www.sapdb.org/7.4/htmhelp/56/e89ffc8caa11d5993100508b6b8b11/content.htm http://www.experts-excha [More]
I started having some problems with Finder and other "core" applications recently.  All I have been able to find are symptoms of a problem, but not what could be causing the issues.  Here are some of the symptoms: - When I press the power button [More]
cloud has appeared on my laptop although  Iam not aware of having downloaded it: as a result only the items I have purchased appear in my library and i cannot access all the songs I have imported from my own CDs. How can I find them?If the music is p [More]
It has suddeny come to our notice that whenever we change a plan they do a prorated for the current month and tel you they are going to have to charge for the coming month in advance.  When the new month come around there is a current charge for the [More]
Super frustrating season this year with our cell service.  Every tuesday, wednesday, thursday, our community can count on calls being dropped, delayed messaging, or no service available at all!  As a small business owner that uses Square and relies o [More]
I need to subdivide a large list of elements in a comboBox into smaller groups in Flash. Is there anyway to loop throught the elements and set te background color of each element to a value in the dataProvider object? I can run through the loop using [More]