org.eclipse.swt.widgets.Text character limit

I am using org.eclipse.swt.widgets.Text I am doing

Text description = new Text(container, SWT.SINGLE); description.setEditable(false); description.setText("long string");

About half of the text shows up in the wizard that I am creating. I see there is a static int called LIMIT in the API. I have not been able to find where it states there is a preset on the number of characters that the Text can hold. I want to expand this to the number of characters that I need.


Text.LIMIT (2,147,483,647 or 2^31) is the maximum number of characters that can be entered into a text widget. This value can change for each version of eclipse.


As the API mentiones, Text.LIMIT is a hard limit of the underlying native widget implementation. You can set the limit to another value using Text.setTextLimit(), but not larger than Text.LIMIT.

Maybe your text is not showing up, because you are using the single-line version of Text. Try instead

Text description = new Text(container, SWT.MULTI);

If it's also not working, try another widget without this limitation (e.g. StyledText).


  • Javascript snippet not working (missing lib?)
  • Can wso2 data service return affected rows after SQL update?
  • Getting a line that has the coordinates defined by the mouse location
  • Embedding a Google map
  • reset jquery smartwizard
  • How to force Composer to download a local package?
  • Is it possible to send skype chat messages from a linux server without X?
  • Creating a setup.exe in InstallShield in Visual Studio
  • Content-Length header not returned from Pylons response
  • How to attach a node.js readable stream to a Sendgrid email?
  • Play WS (2.2.1): post/put large request
  • Initializer list vs. initialization method
  • How to access EntityManager inside Entity class in EJB3
  • Control modification in presentation layer
  • Sails.js/waterline: Executing waterline queries in toJSON function of a model?
  • Fetching methods from BroadcastReceiver to update UI
  • Controls, properties, events and timers running in design time
  • MySQL WHERE-condition in procedure ignored
  • sending/ receiving email in Java
  • vba code to select only visible cells in specific column except heading
  • Updated Ionic CLI but shows previous version (Windows)
  • Hazelcast - OperationTimeoutException
  • Web-crawler for facebook in python
  • RestKit - RKRequestDelegate does not exist
  • AT Commands to Send SMS not working in Windows 8.1
  • How to delete a row from a dynamic generate table using jquery?
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Revoking OAuth Access Token Results in 404 Not Found
  • trying to dynamically update Highchart column chart but series undefined
  • Proper way to use connect-multiparty with express.js?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • apache spark aggregate function using min value
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • Checking variable from a different class in C#
  • Sorting a 2D array using the second column C++
  • How can i traverse a binary tree from right to left in java?
  • java string with new operator and a literal