🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11598

JTable+FocusListener

#11598
From: peter
Date: Wed, 12 May 1999 00:00
17 lines
976 bytes
Qustion:
Is it possible to assing Focus Listener to JTable?
Here is code I used..but it does nothing...
I am trying to stop cell editor once I tab out 
of table..but it seems like adding focus listener
to table had no effect whatsoever...any ideas???


 my_table.addFocusListener(new FocusAdapter() {

  public void focusGained(FocusEvent e) {
        System.out.println("Focus Gained");
  }
  public void focusLost(FocusEvent e) {
        System.out.println("Focus Lost");
      }
 });
Technical Details
Message-ID: <3739799E.E05E81B1@terren.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,635372710202f122,start
X-Google-Attributes: gid111d45,public
From: peter <peter@terren.com>
Subject: JTable+FocusListener
Date: 1999/05/12
Message-ID: <3739799E.E05E81B1@terren.com>
X-Deja-AN: 476991472
Content-Transfer-Encoding: 7bit
Organization: @Home Network
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing