[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Fields on a FlowLayout can't be updated

As a learning exercise, I am attempting to layout two columns of data
using the FlowLayout.  I am attempt to ensure that the right column is
right-justified via a FlowData and FlowAttachment.  

I attach the left fields to fieldDataL2.left = new FA(0, 5)
I attach the top to fieldDataL2.top = new FA(labelField_1, 5)
I attach the right field to fieldDataR2.right = new FA(100, -5)
I attach the top to fieldDataR2.top = new FA(textField_1, 5)

The initial layout on the columns looks great.  Then I update the fields. 
Still works great; at least until the width of the right-field increases. 
Then the right-most characters (those further to the right then the
original field-width) get cut off.

EX: first pass
8    8
88  88

EX: second pass
9    9
99  99

EX: third pass
10   1
100 10
      ^
      |
Everything to the right gets cut off.