Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18327

Moving To JDialog From JFrame: NetBeans Design View Has JFrame Without A Variable Name

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
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 Mon, 27 Aug 2012 07:10:05 -0700 (PDT)
Organization http://groups.google.com
Lines 26
Message-ID <5ca38d1b-9ee4-4ffe-a6c3-566820e7ffac@googlegroups.com> (permalink)
NNTP-Posting-Host 198.151.13.60
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1346076606 3313 127.0.0.1 (27 Aug 2012 14:10:06 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Mon, 27 Aug 2012 14:10:06 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=198.151.13.60; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT
User-Agent G2/1.0
Xref csiph.com comp.lang.java.programmer:18327

Show key headers only | View raw


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 | NextNext in thread | Find similar | Unroll thread


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