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 205482 Details for
Bug 361349
[Button] Text alignment does not work if SWT.WRAP is specified
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.
Example
ButtonBug.java (text/x-java), 785 bytes, created by
Sebastian Bauer
on 2011-10-19 04:01:17 EDT
(
hide
)
Description:
Example
Filename:
MIME Type:
Creator:
Sebastian Bauer
Created:
2011-10-19 04:01:17 EDT
Size:
785 bytes
patch
obsolete
>import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > > >public class ButtonBug implements IEntryPoint >{ > @Override > public int createUI() > { > Display display = new Display(); > Shell shell = new Shell( display, 0 ); > > Button but = new Button(shell,SWT.WRAP); > but.setText("Line1 Line1 Line1 Line1 Line2 Line2 Line2 Line2 Line2"); > but.setLocation(10,10); > but.setSize(100,100); > > shell.setMaximized(true); > shell.open(); > while( !shell.isDisposed() ) { > if( !display.readAndDispatch() ) > display.sleep(); > } > display.dispose(); > return 0; > > } >}
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 361349
: 205482