Clicking outside a text flow [message #185617] |
Mon, 27 June 2005 19:53 |
Eclipse User |
|
|
|
Originally posted by: freddie_nurke.hotmail.com
Hi folks,
In the sample code for text editing, text layout figures' widths are set
to be as wide as their container using getPreferredSize. In my code,
I'm using TextFlows, which end up narrower than their container wherever
the line of text ends before the edge of the container. The upshot of
this is that if I click to the right of the text in my text box, nothing
happens -- the click is passed through to the parent rather than to the
flow.
How do I go about making TextFlows as wide as their container? Do I
have to subclass them and override getPreferredSize?
Thanks,
Fred
|
|
|
Powered by
FUDForum. Page generated in 0.02901 seconds