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 6213 Details for
Bug 43597
[SWT] Text.setText(..) can change font inappropriately on Mac OSX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case
Main.java (text/plain), 882 bytes, created by
Chris McLaren
on 2003-09-24 14:34:17 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Chris McLaren
Created:
2003-09-24 14:34:17 EDT
Size:
882 bytes
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.graphics.Font; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; > >public class Main { > > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > GridLayout gridLayout = new GridLayout(); > shell.setLayout(gridLayout); > Text text = new Text(shell, SWT.LEFT); > text.setFont(new Font(text.getDisplay(), "Lucida Grande", 13, SWT.NORMAL)); > text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > text.setText("\u2325X"); > text.setText(""); > text.setText("\u2325X"); > shell.pack(); > 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 43597
: 6213