[nbusers] Calling JFrame from another class

  • From: "daeva112" < >
  • To:
  • Subject: [nbusers] Calling JFrame from another class
  • Date: Thu, 03 Jan 2013 23:23:13 -0500


Bayless Kirtley wrote:
> If your called JFrame is named test1 then you have to instantiate it, not 
> menu1. Code needs to be
> 
> test1 menu1 = new test1();
> menu1.setVisible(true);
> 
> Also, the Java convention is for class names to begin with upper case. Your 
> classes should be named Test and Test1.


Wow thanks, now it's working   :D






[nbusers] Calling JFrame from another class

daeva112 01/03/2013

[nbusers] Calling JFrame from another class

kimp_07 01/03/2013

[nbusers] Calling JFrame from another class

daeva112 01/03/2013

[nbusers] Re: Calling JFrame from another class

Bayless Kirtley 01/04/2013

[nbusers] Calling JFrame from another class

daeva112 01/04/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close