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 285320 Details for
Bug 570502
[GTK3] Readonly Combo ignored set background color
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to reproduce
ComboTest.java (text/plain), 922 bytes, created by
Thomas Singer
on 2021-01-20 04:39:17 EST
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2021-01-20 04:39:17 EST
Size:
922 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class ComboTest { > > public static void main(String[] args) { > final Display display = new Display(); > final Color darkGray = new Color(0x41, 0x41, 0x41); > final Color lightGray = new Color(0xcf, 0xcf, 0xcf); > > final Shell shell = new Shell(display); > shell.setLayout(new GridLayout()); > shell.setForeground(lightGray); > shell.setBackground(darkGray); > > final Combo combo = new Combo(shell, SWT.READ_ONLY); > combo.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); > combo.setItems("first", "second", "third"); > combo.select(0); > combo.setForeground(lightGray); > combo.setBackground(darkGray); > > 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 570502
: 285320 |
285321