Skip to main content


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 23:47
Eclipse UserFriend
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: Wed Apr 24 16:29:54 GMT 2024

Powered by FUDForum. Page generated in 0.03947 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top