The Artima Developer Community
Sponsored Link

Java Answers Forum
I Want To Call Java Frame From HTML

2 replies on 1 page. Most recent reply: May 3, 2002 11:58 PM by Vikram.G.S.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Noell

Posts: 1
Nickname: noell
Registered: May, 2002

I Want To Call Java Frame From HTML Posted: May 2, 2002 11:38 AM
Reply to this message Reply
Advertisement
I want to call a java application (Frame) from the HTML page. As we can call an applet from HTML page using <applet> tag, is there any way I can call the class containing frame from the HTML?

If anybody can help me...


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: I Want To Call Java Frame From HTML Posted: May 3, 2002 8:22 AM
Reply to this message Reply
Define the Frame at class level & have it just "create" a new Frame in your init()...
If this is not sufficient, just request more help !
:-)

Thomas SMETS,
SCJP2 - Brussels

Vikram.G.S.

Posts: 16
Nickname: vidhi
Registered: Apr, 2002

Re: I Want To Call Java Frame From HTML Posted: May 3, 2002 11:58 PM
Reply to this message Reply
There are no direct methods for invoking frames in the applet. The probable soln is as follows:

public void init() {
// your code goes
Frame f=new Frame("Name");
f.setSize(300,300);
f.setVisible(true);
// code
}
This will work.
Vikram

Flat View: This topic has 2 replies on 1 page
Topic: adding lines in a file Previous Topic   Next Topic Topic: JTextArea

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use