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


Groups > comp.lang.java.gui > #977

Re: JFormattedTextField c

From "Eric Smith" <eric.smith@THRWHITE.remove-dii-this>
Subject Re: JFormattedTextField c
Message-ID <qhodntymsw.fsf@ruckus.brouhaha.com> (permalink)
Newsgroups comp.lang.java.gui
References <er4asc$bdk$1@wblv-ip-nnrp-1.saix.net>
Date 2011-04-27 15:30 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
I asked a question about JFormattedTextField, and Rogan Dawes wrote:
> The question is, what do you define as a commit? A commit suggests
> that there is some definite action that trigger the commit. That is
> typically something like "pressing enter", etc. And that is exactly
> what is happening here.

JFormattedTextField defines what a commit is, and allows the user
to specify a few choices about how and when to commit.  I want to
be notified of exactly when JFormattedTextField does a commit,
and at no other times.

> Otherwise you are talking about a keypress, and that is easy to
> monitor with a DocumentListener as well.

I specifically do NOT want to be notified of all keypresses, since
most of them do not trigger a commit.  I mentioned before that
I tried using a DocumentListener and didn't get what I want.

It seems bizarre that whoever developed JFormattedTextField at
Sun went to all the trouble to implement and document various
commit behaviors, but not provide an explicit way to listen
for a commit.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

JFormattedTextField commi "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
  Re: JFormattedTextField c "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
    Re: JFormattedTextField c "Rogan Dawes" <rogan.dawes@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
      Re: JFormattedTextField c "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
      Re: JFormattedTextField c "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
        Re: JFormattedTextField c "Rogan Dawes" <rogan.dawes@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
          Re: JFormattedTextField c "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
            Re: JFormattedTextField c "Rogan Dawes" <rogan.dawes@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
              Re: JFormattedTextField c "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
  Re: JFormattedTextField c "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
    Re: JFormattedTextField c "Eric Smith" <eric.smith@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000

csiph-web