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 278440 Details for
Bug 546845
[Win32] Keyboard focus not correct with SWT Browser
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Sample Implementation for the issue
SampleProgram.java (text/plain), 1.30 KB, created by
Naveenchandra Patil
on 2019-04-30 02:51:41 EDT
(
hide
)
Description:
Sample Implementation for the issue
Filename:
MIME Type:
Creator:
Naveenchandra Patil
Created:
2019-04-30 02:51:41 EDT
Size:
1.30 KB
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.browser.Browser; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class SampleProgram { > >public static void main (String [] args) { > Display display = new Display (); > Shell shell = new Shell (display); > GridLayout layout = new GridLayout(2, false); > shell.setLayout(layout); > > Text t = new Text(shell, SWT.NONE); > > t.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1)); > t.setText("Text 1"); > t = new Text(shell, SWT.NONE); > t.setText("Text 2"); > t.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1)); > Browser b = new Browser(shell, SWT.NONE); > String html = "<html><head>"+ > "<base href=\"http://www.eclipse.org/swt/\" >"+ > "<title>HTML Test</title></head>"+ > "<body><a href=\"#\">local link</a></body></html>"; > b.setText(html); > b.setLayoutData(new GridData(SWT.LEFT, SWT.FILL,true, true, 2, 2)); > t = new Text(shell, SWT.NONE); > t.setText("Text 3"); > t.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1)); > > t = new Text(shell, SWT.NONE); > t.setText("Text 4"); > t.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, true, true, 1, 1)); > 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 546845
: 278440