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
I have three separate iTunes accounts but when I log into iTunes it only shows the music for one account under all three. I need to know how to separate the profiles for these accounts.You need to either download the content to the single iTunes libr [More]
In my panel, there are some tables using Zplane to arrange, there is another control, a ring control in the panel, when loading and display panel, sometimes the ring control can be displayed, sometimes it can not be displayed, but I can see an imprin [More]
I'm using FF 3.5.18 and I do not want newer versions because : using in the Open in New Tab page opens the near tab and not as a FF 3.5.18 or is it possible to do that open in new tabs would be the end. of the new FF versionYou can change a preferenc [More]
I've had a creative cloud membership for a months now, on my mac and pc. All working fine. Then i decided that i didn't need cs4 collection on my mac anymore, so unistalled it using the correct unistall software. Once this was completed Photoshop cs6 [More]
Hey Guys! Alright, I'm completely stumped and beginning to get very frustrated. Maybe you can figure it out. I can't access my school's online learning website from my internet at home. My roommates can- one has a MacBook, one has a PC. If I try to a [More]
missing pci bus 2 and PCI/VEN_10EC&DEV_5209& SUBSYS_3577 103C&REV.             Can someone please help me and tell me how to get these drivers downloaded to my pc.Id really appreciate it and thanks in advance...Hi, It is the card reader. Pleas [More]
I have noticed that the images that are part of a book that has been published to a PDF seem to display as less vivid when compared to images that are in Aperture. The images I used are all high quality TIFF's. I would appreciate knowing if anyone el [More]
In my workflow I often use colourprofiles for uncoated paper such as Euroscale uncoated. Uncoated profiles causes a prewiew problem on screen, since colours are wiewed unnaturally desaturated. This makes it difficult to determine if photos needs to t [More]
Hi there,           I am experiencing some problems with a WL 5.1 sp8 server trying to do a           form (multipart/form-data) upload of a file.           I am using the com.oreilly package but get a Corrupt form data error           when instatiat [More]
Hi I'm currently using CS5 to create images to compete in club competitions, enter national exhibitions and gain distinctions (CPAGB) etc I produce both prints and dpi images and am particularly keen to develop monotone images I've currently achieved [More]