Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18327
| From | clusardi2k@aol.com |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Moving To JDialog From JFrame: NetBeans Design View Has JFrame Without A Variable Name |
| Date | 2012-08-27 07:10 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <5ca38d1b-9ee4-4ffe-a6c3-566820e7ffac@googlegroups.com> (permalink) |
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,
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Moving To JDialog From JFrame: NetBeans Design View Has JFrame Without A Variable Name clusardi2k@aol.com - 2012-08-27 07:10 -0700
Re: Moving To JDialog From JFrame: NetBeans Design View Has JFrame Without A Variable Name Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-27 10:24 -0400
Re: Moving To JDialog From JFrame: NetBeans Design View Has JFrame Without A Variable Name clusardi2k@aol.com - 2012-08-27 07:23 -0700
Re: Moving To JDialog From JFrame: NetBeans Design View Has JFrame Without A Variable Name FredK <fred.l.kleinschmidt@gmail.com> - 2012-08-27 07:58 -0700
csiph-web