applet and frame

L

lak

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
 
D

Daniel Pitts

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

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.
 
A

Andrew Thompson

Daniel said:
...
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top