Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

applet and frame

Thread view: 
lak - 20 Sep 2007 15:19 GMT
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 - 20 Sep 2007 23:03 GMT
> 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.
Andrew Thompson - 21 Sep 2007 04:39 GMT
>> 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.

Signature

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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.