Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Fields on a FlowLayout can't be updated
Fields on a FlowLayout can't be updated [message #462911] Thu, 20 October 2005 19:47
Eclipse User
Originally posted by: arick.pobox.com

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.
Previous Topic:Gridlayout
Next Topic:Swing vs SWT issues
Goto Forum:
  


Current Time: Tue Jul 29 19:07:49 EDT 2014

Powered by FUDForum. Page generated in 0.02642 seconds