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 285327 Details for
Bug 570508
[GTK3] Table header text drawn over column separators
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to reproduce
TableTest.java (text/plain), 1.65 KB, created by
Thomas Singer
on 2021-01-20 06:57:04 EST
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2021-01-20 06:57:04 EST
Size:
1.65 KB
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >/** > * @author Thomas Singer > */ >public class TableTest { > > // Static ================================================================= > > public static void main(String[] args) { > final Display display = new Display(); > final Color darkGray = new Color(65, 65, 65); > final Color lightGray = new Color(207, 207, 207); > display.addListener(SWT.Skin, event -> { > if (event.type == SWT.Skin) { > if (event.widget instanceof Table) { > final Table table = (Table)event.widget; > table.setBackground(darkGray); > table.setForeground(lightGray); > table.setHeaderBackground(darkGray); > table.setHeaderForeground(lightGray); > } > } > }); > > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout(SWT.VERTICAL)); > > final Table table = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL); > table.setHeaderVisible(true); > > createColumn(SWT.LEFT, "Column 1", table); > createColumn(SWT.RIGHT, "Column 2", table); > createColumn(SWT.LEFT, "Column 3", table); > > final TableItem item = new TableItem(table, SWT.LEFT); > item.setText(0, "Left"); > item.setText(1, "Right"); > item.setText(2, "Left"); > > shell.setSize(400, 500); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > display.dispose(); > } > > private static void createColumn(int style, String text, Table table) { > final TableColumn tableColumn = new TableColumn(table, style); > tableColumn.setText(text); > tableColumn.setMoveable(true); > tableColumn.setWidth(100); > } >}
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 570508
: 285327 |
285328
|
285329
|
285430
|
285432
|
285445
|
285446