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 125312 Details for
Bug 264422
[Table] Tables with columns sized with ColumnWeightData always have horizontal scrolling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Snippet that demonstrates horizontal scrolling in Table
TableTest.java (text/plain), 1.59 KB, created by
Tim Whittington
on 2009-02-10 16:25:17 EST
(
hide
)
Description:
Snippet that demonstrates horizontal scrolling in Table
Filename:
MIME Type:
Creator:
Tim Whittington
Created:
2009-02-10 16:25:17 EST
Size:
1.59 KB
patch
obsolete
>package stuff; > >import org.eclipse.jface.layout.TableColumnLayout; >import org.eclipse.jface.viewers.ColumnWeightData; >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Table; >import org.eclipse.swt.widgets.TableColumn; >import org.eclipse.swt.widgets.TableItem; > >public class TableTest { > public static void main(String[] args) { > Display display = new Display(); > > > Shell shell = new Shell(display); > shell.setSize(200,200); > shell.setLayout(new FillLayout()); > > Composite parent = shell; > > > Composite tableViewerContainer = new Composite(parent, SWT.NONE); >// tableViewerContainer.setLayoutData(GridDataFactory.fillDefaults().grab(false, true).hint(150, 100).create()); > > TableColumnLayout layout = new TableColumnLayout(); > tableViewerContainer.setLayout(layout); > > Table tableViewer = new Table(tableViewerContainer, SWT.BORDER); > tableViewer.setHeaderVisible(true); > > TableColumn col1 = new TableColumn(tableViewer,SWT.NULL); > layout.setColumnData(col1,new ColumnWeightData(100,false)); > col1.setText("Things"); > > TableItem item1 = new TableItem(tableViewer, SWT.NONE, 0); > item1.setText("Some things to see"); > TableItem item2 = new TableItem(tableViewer, SWT.NONE, 0); > item2.setText("Some more things to be"); > > 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 264422
: 125312