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 / April 2007

Tip: Looking for answers? Try searching our database.

opening a jframe using a button

Thread view: 
iszekeell@gmail.com - 12 Apr 2007 16:52 GMT
Ok, I believe you are going to find this simple,
Right well I'm useing netbeans and i have created two separate
jframes, I have them in the same package, and I want to call/open/view
jframe2 by pressing a button on jframe1.
Any help will be greatly welcome.
Thanks in advance.
Faton Berisha - 16 Apr 2007 17:03 GMT
On Apr 12, 4:52 pm, iszeke...@gmail.com wrote:
> Ok, I believe you are going to find this simple,
> Right well I'm useing netbeans and i have created two separate
> jframes, I have them in the same package, and I want to call/open/view
> jframe2 by pressing a button on jframe1.
> Any help will be greatly welcome.
> Thanks in advance.

Insert into the button's action listener (usually a method called
actionPerformed) a line like

jframe2.setVisible(true);

Faton Berisha
iszekeell@gmail.com - 23 Apr 2007 18:49 GMT
thanks work a treat
sorry for not replying sooner, didn't think i got the post up
thanks again


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



©2009 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.