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


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

Is there a better way to reference this?

X-Received by 10.129.145.149 with SMTP id i143mr1135858ywg.55.1476193897481; Tue, 11 Oct 2016 06:51:37 -0700 (PDT)
X-Received by 10.157.46.197 with SMTP id w63mr179940ota.12.1476193897403; Tue, 11 Oct 2016 06:51:37 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!g45no1752721qte.1!news-out.google.com!w143ni6687itb.0!nntp.google.com!l13no2638609itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Tue, 11 Oct 2016 06:51:37 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=50.78.95.177; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H
NNTP-Posting-Host 50.78.95.177
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <7fd3908d-6705-4034-99ee-08e4e3a4a4c6@googlegroups.com> (permalink)
Subject Is there a better way to reference this?
From Eric Douglas <e.d.programmer@gmail.com>
Injection-Date Tue, 11 Oct 2016 13:51:37 +0000
Content-Type text/plain; charset=UTF-8
Xref csiph.com comp.lang.java.programmer:35745

Show key headers only | View raw


How to grab the instance from the inside without assigning?
Sample:

     HashSet<JTable> storeTable = new HashSet();
     JTable myTable = new JTable() {
          {
               final JTable ref = this;
               addFocusListener(new FocusListener() {

                    @Override
                    public void focusGained(FocusEvent e) {
                         storeTable.add(ref);
                    }

                    @Override
                    public void focusLost(FocusEvent e) {
                    }
                    
               });
               
          }
     };

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Is there a better way to reference this? Eric Douglas <e.d.programmer@gmail.com> - 2016-10-11 06:51 -0700
  Re: Is there a better way to reference this? Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-10-11 10:25 -0400
    Re: Is there a better way to reference this? Eric Douglas <e.d.programmer@gmail.com> - 2016-10-11 07:37 -0700
      Re: Is there a better way to reference this? Sebastian <nowhere@nirvana.org> - 2016-10-11 22:08 +0200

csiph-web