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 268855 Details for
Bug 518091
[Win32] CTabItem does not draw if Text field added outside the CTabFolder
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.
LoginManagerCTabFolder.java
file_518091.txt (text/plain), 2.56 KB, created by
DaveLaw
on 2017-06-10 10:48:09 EDT
(
hide
)
Description:
LoginManagerCTabFolder.java
Filename:
MIME Type:
Creator:
DaveLaw
Created:
2017-06-10 10:48:09 EDT
Size:
2.56 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.CTabFolder; >import org.eclipse.swt.custom.CTabItem; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; >import org.eclipse.wb.swt.SWTResourceManager; > >public class LoginManagerCTabFolder { > > protected Shell shell; > > /** > * Launch the application. > * @param args > */ > public static void main(String[] args) { > try { > LoginManagerCTabFolder window = new LoginManagerCTabFolder(); > window.open(); > } catch (Exception e) { > e.printStackTrace(); > } > } > > /** > * Open the window. > */ > public void open() { > Display display = Display.getDefault(); > createContents(); > shell.open(); > shell.layout(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > } > > /** > * Create contents of the window. > */ > protected void createContents() { > shell = new Shell(); > shell.setBackground(SWTResourceManager.getColor(SWT.COLOR_RED)); > shell.setSize(271, 300); > shell.setText("SWT Application"); > shell.setLayout(new GridLayout(1, false)); > > Composite composite = new Composite(shell, SWT.NONE); > composite.setBackground(SWTResourceManager.getColor(SWT.COLOR_GREEN)); > composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); > composite.setLayout(new GridLayout(2, false)); > > Label lblNewLabel = new Label(composite, SWT.NONE); > lblNewLabel.setText("Function:"); > >// Text text = new Text(composite, SWT.BORDER); >// text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); > > CTabFolder tabFolder = new CTabFolder(shell, SWT.BORDER); > tabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_CYAN)); > tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); > tabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT)); > > CTabItem tbtmNewItem = new CTabItem(tabFolder, SWT.NONE); > tbtmNewItem.setShowClose(true); > tbtmNewItem.setText("New Item"); > > Composite composite_1 = new Composite(tabFolder, SWT.NONE); > composite_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_YELLOW)); > tbtmNewItem.setControl(composite_1); > > Label lblNewLabel_2 = new Label(composite_1, SWT.NONE); > lblNewLabel_2.setBounds(0, 0, 55, 15); > lblNewLabel_2.setText("New 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 518091
: 268855