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 138691 Details for
Bug 279656
Missing keystroke in Windows XP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Input Dialog
DialogShell.java (text/plain), 1.28 KB, created by
Andy Tsoi
on 2009-06-09 12:45:37 EDT
(
hide
)
Description:
Input Dialog
Filename:
MIME Type:
Creator:
Andy Tsoi
Created:
2009-06-09 12:45:37 EDT
Size:
1.28 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; > >public class DialogShell extends Shell { > > /** > * Launch the application > * > * @param args > */ > public static void main(String args[]) { > try { > Display display = Display.getDefault(); > DialogShell shell = new DialogShell(display, SWT.SHELL_TRIM); > shell.open(); > shell.layout(); > > } catch (Exception e) { > e.printStackTrace(); > } > } > > /** > * Create the shell > * > * @param display > * @param style > */ > public DialogShell(Display display, int style) { > super(display, style); > createContents(); > } > > Text text; > > /** > * Create contents of the window > */ > protected void createContents() { > > setSize(500, 375); > setText("SWT Dialog"); > > text = new Text(this, SWT.BORDER); > text.setBounds(40, 25, 210, 30); > text.setFocus(); > // > } > > @Override > public void open() { > // TODO Auto-generated method stub > super.open(); > text.setFocus(); > } > > public void clearText() { > text.setText(""); > } > > public void setTextFocus(){ > text.setFocus(); > } > > @Override > protected void checkSubclass() { > // Disable the check that prevents subclassing of SWT components > } > >}
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 279656
:
138690
| 138691 |
138773
|
139013
|
139014