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 279190 Details for
Bug 549045
[macOS] Editable Combobox: crashes on 10.14.5
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet
DarkComboTest.java (text/plain), 1.02 KB, created by
Thomas Singer
on 2019-07-08 03:23:46 EDT
(
hide
)
Description:
Snippet
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2019-07-08 03:23:46 EDT
Size:
1.02 KB
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class DarkComboTest { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > shell.setLayout(new GridLayout(2, false)); > shell.setBackground(display.getSystemColor(SWT.COLOR_DARK_GRAY)); > shell.setForeground(display.getSystemColor(SWT.COLOR_WHITE)); > > final Label label = new Label(shell, SWT.NONE); > label.setText("Select:"); > label.setBackground(shell.getBackground()); > label.setForeground(shell.getForeground()); > > final Combo combo = new Combo(shell, SWT.BORDER); > combo.setItems("hello", "world"); > combo.setText("text"); > combo.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); > combo.setBackground(shell.getBackground()); > combo.setForeground(shell.getForeground()); > > shell.setSize(400, 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 549045
: 279190