Results 1 to 14 of 14
- 02-02-2009, 08:03 PM #1
Member
- Join Date
- Feb 2009
- Location
- India
- Posts
- 23
- Rep Power
- 0
JFrame to JApplet or JApplet to JApplet
i wish to develop an event handling code. a JFrame contains a buttonn. on clicking that,the frame should disappear and a JApplet should appear. i used setVisible(false) in actionPerformed which worked. the frame disappeared. but for making the applet appear i did call init method of applet. but it dint appear.
can anyone help?
i successfully executed 'Frame->Frame transition' but 'Frame->Applet' or 'Applet->Applet' could not be done. suggest me some solutions
-
This confuses me as a Java object can't create the applet (as far as I know), but instead it's called on and created by HTML code.
Why would you ever want to do this? When would you ever have the need?
- 02-03-2009, 04:31 AM #3
Member
- Join Date
- Feb 2009
- Location
- India
- Posts
- 23
- Rep Power
- 0
I'm Developing A Applet That Connects To Other Computer. I Wish To Add A Frame That Gets The Ip Address Of The Computer And When Ip S Entered It Should Bring Up The Applet.
-
Your explanation doesn't make much sense yet to me. Could you go into more detail why you want a JFrame to initiate and display an applet?
- 02-03-2009, 05:06 AM #5
Member
- Join Date
- Feb 2009
- Location
- India
- Posts
- 23
- Rep Power
- 0
hey
a frame with a text field and button will come up by executing the program. After u ve entered IP address in the textfield and click the button, it should generate an applet that gets password for connectiong to that computer. can u get me now?
-
You're still not giving much in the way detail here, and since it's details that are all important, I'm still lost. Is the applet located on a server? Is it called by the server's HTML code? What password, where? What is the applet doing that a JFrame can't?
Are you doing this over the internet or is this a network?
What is the topology of the connections?
etc...Last edited by Fubarable; 02-03-2009 at 06:01 AM.
- 02-03-2009, 09:32 AM #7
Member
- Join Date
- Feb 2009
- Location
- India
- Posts
- 23
- Rep Power
- 0
u know VNC viewer. Im developing such kinda product..
-
well, I wish you much luck with this project then.
- 02-08-2009, 02:56 AM #9
Member
- Join Date
- Feb 2009
- Posts
- 11
- Rep Power
- 0
Java applets are executed in a sandbox by most web browsers, preventing them from accessing local data. The code of the applet is downloaded from a web server and the browser either embeds the applet into a web page or opens a new window showing the applet's user interface. The applet can be displayed on the web page by making use of the deprecated applet HTML element [1], or the recommended object element [2]. This specifies the applet's source and the applet's location statistics.
- 02-08-2009, 03:08 AM #10
Member
- Join Date
- Feb 2009
- Posts
- 11
- Rep Power
- 0
Please refer to BPB publications books for your project regarding applet and swing....
-
Very nice answers adrija. Based on the answers (or lack of them) from the original poster to my questions, methinks that he first needs to learn basic Java before embarking on anything quite so ambitious.
- 02-08-2009, 06:47 AM #12
Member
- Join Date
- Feb 2009
- Posts
- 11
- Rep Power
- 0
I think I have answered in the wrong place......someone wanted the answer to these questions like "from where the applet gets executed?" etc......I was answering to many things together so this happened......
if there is any lacking or wrong answer in wrong place then please clarify with the person before mocking........
-
I wasn't mocking you. If you got that impression, sorry. I was/am concerned about the original poster and his inability to even define what his problem truly is despite my multiple attempts to get him to do so. I think that he's getting way ahead of himself, that he needs to learn basic Java, to learn the differences between applets and stand-alone programs before he tries so ambitious a project.
Last edited by Fubarable; 02-08-2009 at 07:06 AM.
- 02-08-2009, 07:14 AM #14
Member
- Join Date
- Feb 2009
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
JApplet Problem
By tanmoy.b81 in forum AWT / SwingReplies: 2Last Post: 07-28-2008, 07:56 AM -
JApplet problems
By Rgfirefly24 in forum New To JavaReplies: 2Last Post: 04-24-2008, 08:36 PM -
Database to JApplet
By Preethi in forum New To JavaReplies: 0Last Post: 03-26-2008, 06:18 AM -
Another problem in JApplet :S
By juju in forum Java AppletsReplies: 2Last Post: 12-30-2007, 08:46 PM -
JApplet and html
By paty in forum Java AppletsReplies: 1Last Post: 08-02-2007, 06:41 PM
Bookmarks