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


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

Re: How to extend an array

Newsgroups comp.lang.java.programmer
Date 2016-06-01 04:49 -0700
References <ae727260-8c33-4648-8995-f387a6eb8b52@googlegroups.com> <mmqskb9rkncdn1oko5207at1poq140vkqp@4ax.com>
Message-ID <dc3cb6b6-c664-4349-a463-422c69e774d2@googlegroups.com> (permalink)
Subject Re: How to extend an array
From Eric Douglas <e.d.programmer@gmail.com>

Show all headers | View raw


On Wednesday, June 1, 2016 at 12:57:10 AM UTC-4, Roedy Green wrote:
> JComponent has all kinds of methods for adding and removing Listeners.
> If you extended JComponent, all the listener logic woud come along
> free.

I'm adding custom listeners, not Java listeners.  The classes themselves have their own Java listeners to handle events and call the methods of the custom listeners.  One custom listener can execute a focus lost, a grid row change, and anything else relevant to that control.  Sometimes it may just merge these events.  Sometimes it's a lot of custom Java listener logic the main class creating the custom GUI object doesn't need to or want to handle.  For instance if a grid (JTable) gains focus I only want a focus gain event once for all of it.  The focus listeners report all the little events, when the focus moves to the scrollpane, to the grid, to the header, to the cell editor.  I custom report all relevant events to make it easier for the application.

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


Thread

How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-05-31 07:52 -0700
  Re: How to extend an array Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-31 11:52 -0400
    Re: How to extend an array Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-31 11:56 -0400
      Re: How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-05-31 09:19 -0700
        Re: How to extend an array Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-31 14:01 -0400
    Re: How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-05-31 09:09 -0700
      Re: How to extend an array Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-31 14:11 -0400
        Re: How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-05-31 11:25 -0700
          Re: How to extend an array Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-31 17:01 -0400
            Re: How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-06-01 04:57 -0700
  Re: How to extend an array Roedy Green <inquiry@mindprod.com> - 2016-05-31 21:56 -0700
    Re: How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-06-01 04:49 -0700
  Re: How to extend an array Robert Klemme <shortcutter@googlemail.com> - 2016-06-01 23:07 +0200
    Re: How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-06-03 05:38 -0700
      Re: How to extend an array Robert Klemme <shortcutter@googlemail.com> - 2016-06-04 19:17 +0200
    Re: How to extend an array Eric Douglas <e.d.programmer@gmail.com> - 2016-06-03 08:52 -0700

csiph-web