Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #559
| From | "dako" <dako@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JTextField - how to d |
| Message-ID | <1167903413.534941.86670@v33g2000cwv.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1167396814.036766.225240@h40g2000cwb.googlegroups.com> |
| Date | 2011-04-27 15:28 +0000 |
| Organization | TDS.net |
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 | Next — Previous in thread | Next in thread | Find similar
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