
Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Mark, IchBin, and Roedy,
Roedy wins the prize with his answer number 2.
(Sorry I did not respond sooner, but I have been out of reach of the
internet for a few days.)
I am working on an application to lay out text according to linguistic
relationships. The layout method has already been set by professors at
my seminary. (So the specs have been done for me.) One of the things
this layout does is set text at certain page columns according to
whether the text is Conjunction, Subject, Verb, or Direct Object.
There are other requirements that I will not bore people with.
Anyway, as Roedy anticipated, I was faced with extensive absolute
positioning code. Actually, in the my custom layout manager, I do
absolute positioning based on the users' linguistic markup anyway, but
it seemed to me that that was was Layout Managers were intended to do,
so that is the way I went. Also, I am implenting the text on the
screen as a subclass of JTextField. There's a lot of useful functions
there that I do not have to rewrite.
I don't know if my approach is going to be easier or harder, but it is
the route I am choosing for now.
- Paul
Roedy Green - 03 Jan 2006 22:19 GMT
> Actually, in the my custom layout manager, I do
>absolute positioning based on the users' linguistic markup anyway, but
>it seemed to me that that was was Layout Managers were intended to do,
Exactly. The job of a layout manager is to decide the absolute
positioning of everything in order to keep that level of detail from
muddling the application code and making it a nightmare to maintain.
In the layout manager you compute the positions of everything by some
clever logic.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.