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 284567 Details for
Bug 568253
Label: ignores set background/foreground color for SWT.SEPARATOR style
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet
LabelTest.java (text/plain), 936 bytes, created by
Thomas Singer
on 2020-10-26 11:05:16 EDT
(
hide
)
Description:
Snippet
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2020-10-26 11:05:16 EDT
Size:
936 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >/** > * @author Thomas Singer > */ >public class LabelTest { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > shell.setLayout(new GridLayout(2, true)); > > createLabel(shell, SWT.LEFT).setText("Normal text label"); > > createLabel(shell, SWT.SEPARATOR | SWT.HORIZONTAL); > > shell.setSize(400, 200); > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > > display.dispose(); > } > > private static Label createLabel(Composite parent, int style) { > final Label label = new Label(parent, style); > label.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_RED)); > label.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_DARK_GRAY)); > return label; > } >}
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 568253
: 284567 |
284568