Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1425
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail |
|---|---|
| From | "Ed Tidwell" <ed.tidwell@THRWHITE.remove-dii-this> |
| Subject | Re: question about keepin |
| Message-ID | <461bd27b$0$17188$4c368faf@roadrunner.com> (permalink) |
| X-Comment-To | comp.lang.java.gui |
| Newsgroups | comp.lang.java.gui |
| In-Reply-To | <1175547610.827079.229990@p77g2000hsh.googlegroups.com> |
| References | <1175547610.827079.229990@p77g2000hsh.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 | 34 |
| Date | Wed, 27 Apr 2011 15:33:14 GMT |
| NNTP-Posting-Host | 96.60.20.240 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1303918394 96.60.20.240 (Wed, 27 Apr 2011 10:33:14 CDT) |
| NNTP-Posting-Date | Wed, 27 Apr 2011 10:33:14 CDT |
| Organization | TDS.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1425 |
Show key headers only | View raw
To: comp.lang.java.gui Adam Sandler wrote: > Hello, > > I have a question about keeping logic/processing code off of the GUI. > In a couple of other languages I'm familiar with, there is usually a > method called FindComponent which will iterate through a form and get > the component matching the name in the argument. > I actually wrote a Swing application framework to do just this. Basically, what I did is created Actions and hooked component listeners to delegate back to a mediator class. Anything that I wanted to 'FindComponent' on I just created had it implement a Mediatable interface. Then added it to a Map collection to easily register it with the applications Mediator object. The mediator class is where I keep all of my business logic. Happy to send you examples if your interested in learning more. You can find the OpenSource project here: https://tframe.dev.java.net/ JSR 296 will address a lot of this in Java 7 when it ships. Kind regards, Ed --- * 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 | Find similar | Unroll thread
question about keeping th "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: question about keepin "Tom Hawtin" <tom.hawtin@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: question about keepin "bcr666" <bcr666@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: question about keepin "bcr666" <bcr666@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: question about keepin "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: question about keepin "Ed Tidwell" <ed.tidwell@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
csiph-web