Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to align text to the right(How to align text to the right)
How to align text to the right [message #848786] Wed, 18 April 2012 11:17 Go to next message
Eclipse UserFriend
Hi all

How can I keep width of text-field for instance 200 pixel but align the small text of text-field to the right?

Thanks in advance
Re: How to align text to the right [message #849075 is a reply to message #848786] Wed, 18 April 2012 17:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi there, this line can help you. SWT.RIGHT do the job you want.

txuser = new Text(shell,SWT.RIGHT | SWT.BORDER);

This is my first collaboration, I hope it will be useful.

[Updated on: Wed, 18 April 2012 17:47] by Moderator

Re: How to align text to the right [message #853753 is a reply to message #849075] Mon, 23 April 2012 05:53 Go to previous messageGo to next message
Eclipse UserFriend
Thank you that helped!
icon14.gif  Re: How to align text to the right [message #854134 is a reply to message #853753] Mon, 23 April 2012 13:46 Go to previous message
Eclipse UserFriend
You're welcome, don't forget write "SOLVED" on title.
Previous Topic:How Can I Sort An SWT Table Using Only The Keyboard
Next Topic:Some inconsistent changes found in SWT repository
Goto Forum:
  


Current Time: Sun Aug 31 00:07:53 EDT 2025

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

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

Back to the top