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


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

Re: JTextField - how to d

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!204.153.245.137.MISMATCH!pink.octanews.net!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!feed.news.qwest.net!mpls-nntp-03.inet.qwest.net!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "dako" <dako@THRWHITE.remove-dii-this>
Subject Re: JTextField - how to d
Message-ID <1167903413.534941.86670@v33g2000cwv.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1167396814.036766.225240@h40g2000cwb.googlegroups.com>
References <1167396814.036766.225240@h40g2000cwb.googlegroups.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 21
Date Wed, 27 Apr 2011 15:28:14 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918094 96.60.20.240 (Wed, 27 Apr 2011 10:28:14 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:28:14 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:559

Show key headers only | View raw


  To: comp.lang.java.gui

mearvk napisal(a):

> Try subclassing JTextField. When the mouseDrag event fires inside the
> JTextField do something like return immediately or set the focus on the
> parent JComponent. You will want to catch keyboard input also. (Block
> things like ctrl+A, ctrl+C, shift+end and shift+home)
>
> I think it can be done but it will require some hacking and time. There
> may be a better way but this is what I can figure.
>

The solution is easier than you think ;) Look at John's post.

Regards, dako.

---
 * 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

Re: JTextField - how to d "dako" <dako@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
  Re: JTextField - how to d "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: JTextField - how to d "dako" <dako@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: JTextField - how to d "dako" <dako@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
      Re: JTextField - how to d "mearvk" <mearvk@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
        Re: JTextField - how to d "dako" <dako@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
      Re: JTextField - how to d "Real Gagnon" <real.gagnon@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
        Re: JTextField - how to d "dako" <dako@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000

csiph-web