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


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

GUI structure

From "dwj" <dwj@THRWHITE.remove-dii-this>
Subject GUI structure
Message-ID <1173688886.417133.85500@s48g2000cws.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:31 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
My application... I have a series of image processing filters which are
derived from an IFilter base class.  The filters which are applied to
an image are decided by the user (the user uses a tick box to select
them).  These are then stored in a list which are iterated through
when a new image arriveds.

My problem... Each of the image processing filters has its own set of
bespoke attributes (such as threshold) that I want the user to be able
to view and set.  When these are set, I then want them to be updated
in the filter object which the values apply to.  I was thinking of
creating a different form for each filter to set and view the
attributes but I am unsure how I should link the forms to the filter
classes.  An instance of each filter class won't always exist.

Is it as simple as just creating an association between the form and
relevant filter?  This doesn't seem like very good design.

---
 * 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 | NextNext in thread | Find similar | Unroll thread


Thread

GUI structure "dwj" <dwj@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: GUI structure "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000

csiph-web