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 284390 Details for
Bug 543796
GC.drawImage does not use correct image on Mac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Simplified Snippet that will crash on Big Sur
GraphicsSnippet2.java (text/plain), 980 bytes, created by
Phil Beauvoir
on 2020-10-08 13:26:45 EDT
(
hide
)
Description:
Simplified Snippet that will crash on Big Sur
Filename:
MIME Type:
Creator:
Phil Beauvoir
Created:
2020-10-08 13:26:45 EDT
Size:
980 bytes
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.graphics.GC; >import org.eclipse.swt.graphics.Image; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class GraphicsSnippet2 { > > public static void main(String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display); > > // Create image and GC for drawing > Image image = new Image(display, 128, 128); > GC gcImage = new GC(image); > > // Paint shell > shell.addListener(SWT.Paint, event -> { > GC gc = event.gc; > > gcImage.fillRectangle(0, 0, 128, 128); > gc.drawImage(image, 0, 0); > }); > > shell.setSize(400, 400); > shell.open(); > > while(!shell.isDisposed()) { > if(!display.readAndDispatch()) display.sleep(); > } > > display.dispose(); > > gcImage.dispose(); > image.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 543796
:
277272
|
277273
|
277276
|
277277
| 284390 |
284392
|
284393
|
284399