C
clusardi2k
If I can't obtain the name of a JFrame variable what can I do.
I created a form using NetBean's Design view. The JFrame doesn't appear to have a variable name associated with it. Can I obtain a variable name for it somehow.
If I copy the entire project to another file with the same name and delete the old file the project still runs. In the file, there is no explicit reference to a JFrame at all. But, the JFrame class is inherited in a number of places.
I need the name of the JFrame variable because I want to use it in a JDialog extended class using:
public class Test extends JDialog
{ ...
public Test(Frame parent)
{
super(parent, "Login", true);
....
}
....
The above "parent" was created using:
final JFrame frame = new JFrame("Testing");
I pass frame to Test:
Test tst = new Test(frame);
Thank you,
I created a form using NetBean's Design view. The JFrame doesn't appear to have a variable name associated with it. Can I obtain a variable name for it somehow.
If I copy the entire project to another file with the same name and delete the old file the project still runs. In the file, there is no explicit reference to a JFrame at all. But, the JFrame class is inherited in a number of places.
I need the name of the JFrame variable because I want to use it in a JDialog extended class using:
public class Test extends JDialog
{ ...
public Test(Frame parent)
{
super(parent, "Login", true);
....
}
....
The above "parent" was created using:
final JFrame frame = new JFrame("Testing");
I pass frame to Test:
Test tst = new Test(frame);
Thank you,