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


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

Re: question about keepin

From "Ed Tidwell" <ed.tidwell@THRWHITE.remove-dii-this>
Subject Re: question about keepin
Message-ID <461bd27b$0$17188$4c368faf@roadrunner.com> (permalink)
Newsgroups comp.lang.java.gui
References <1175547610.827079.229990@p77g2000hsh.googlegroups.com>
Date 2011-04-27 15:33 +0000
Organization TDS.net

Show all headers | 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 | NextPrevious in thread | Find similar | Unroll thread


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