Hi,

I have searched through the archives and googled, but most related concerns 
seem to 
focus on text height. I am concerned solely with text width.

I have a subclass of UIComponent (called BTVariable) that contains an HBox 
which, in turn, 
contains between two and four TextArea objects. I would like BTVariable to be 
as narrow 
as possible and to adjust its size as necessary (growing when needed and 
shrinking when 
prudent).

I have tried implementing measure() on BTVariable, but I think that I have a 
cyclical 
relationship between various objects. The HBox needs to be given explicit width 
because 
its constituent TextAreas have no notion of their own width, apparently.

I am thinking that this is probably something that has been dozens of times and 
that 
there is a fairly straightforward way to do it. But, having spent many hours 
pursuing 
seemingly promising approaches, I am starting to think that I am overlooking 
some 
obvious mechanism.

Thanks in advance for any advice or pointers.
-Eric

Reply via email to