Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

applet and frame

0 views
Skip to first unread message

lak

unread,
Sep 20, 2007, 10:19:59 AM9/20/07
to
i want to write a program to open a frame when i click a button in
applet window.
can any one help me in this ?
advance thanks

Daniel Pitts

unread,
Sep 20, 2007, 6:03:00 PM9/20/07
to

AFAIK, you can only open frames if your applet is signed...

Once you do that, its easy, in your applet (You're using JApplet,
right?) in the buttons action listener, you create a new JFrame,
configure it, and show it. Done.

If you need some code, show us what you've done so far, and someone is
more likely to tell you what direction to go.

Andrew Thompson

unread,
Sep 20, 2007, 11:39:30 PM9/20/07
to
Daniel Pitts wrote:
>> i want to write a program to open a frame when i click a button in
>> applet window.
..

>AFAIK, you can only open frames if your applet is signed...

No. They just gain a label on the bottom
advertising that they are a 'Java Applet Window'
or WTTE.

..


>If you need some code, show us what you've done so far, and someone is
>more likely to tell you what direction to go.

Agreed.

And to the OP. Please always use Upper Case for the
word 'I', and add a single Upper Case at the start of
each sentence.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200709/1

0 new messages