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 282191 Details for
Bug 561364
[GTK] Set size is ignored for checkboxes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet
ControlSizeTest.java (text/plain), 989 bytes, created by
Thomas Singer
on 2020-03-23 08:03:58 EDT
(
hide
)
Description:
Snippet
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2020-03-23 08:03:58 EDT
Size:
989 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.widgets.*; > >public class ControlSizeTest { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > > final Button checkbox = new Button(shell, SWT.CHECK); > checkbox.setText("This should be a longer text"); > > final Button anotherButton = new Button(shell, SWT.PUSH); > anotherButton.setText("Button"); > > shell.setLayout(new Layout() { > @Override > protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) { > return new Point(200, 100); > } > > @Override > protected void layout(Composite composite, boolean flushCache) { > checkbox.setBounds(0, 0, 100, 20); > > anotherButton.setBounds(100, 0, 100, 20); > } > }); > > shell.setSize(300, 200); > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > > display.dispose(); > } >}
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 561364
: 282191 |
282192
|
282193