Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 255722 Details for
Bug 408833
StyledText hides last character of wrapped line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Sample test program
StyledTextWrap.java (text/plain), 1.06 KB, created by
Brian de Alwis
on 2015-08-07 23:24:26 EDT
(
hide
)
Description:
Sample test program
Filename:
MIME Type:
Creator:
Brian de Alwis
Created:
2015-08-07 23:24:26 EDT
Size:
1.06 KB
patch
obsolete
>package swt.styledtext.wrap; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.StyledText; >import org.eclipse.swt.events.ControlAdapter; >import org.eclipse.swt.events.ControlEvent; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Control; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class StyledTextWrap { > > public static void main(String[] args) { > Display display = Display.getDefault(); > > Shell shell = new Shell(display, SWT.RESIZE | SWT.BORDER); > shell.setLayout(new FillLayout()); > shell.setSize(133,100); > StyledText text = new StyledText(shell, SWT.WRAP | SWT.V_SCROLL); > text.setText("Hello_world,_how_do_you_wrap_today?"); > > shell.addControlListener(new ControlAdapter() { > @Override > public void controlResized(ControlEvent e) { > //System.out.println("Shell size: " + ((Control)e.widget).getSize()); > } > }); > > shell.open(); > while(!shell.isDisposed()) { > while(display.readAndDispatch()) { > // run > } > display.sleep(); > } > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 408833
:
231388
| 255722