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 44230 Details for
Bug 146179
Rendering problem with very large figures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
SWT standalone class which generates the BUG on Linux Red Hat 3
Snippet.java (text/x-java), 1.14 KB, created by
Manuel Selva
on 2006-06-13 02:23:24 EDT
(
hide
)
Description:
SWT standalone class which generates the BUG on Linux Red Hat 3
Filename:
MIME Type:
Creator:
Manuel Selva
Created:
2006-06-13 02:23:24 EDT
Size:
1.14 KB
patch
obsolete
>package snippet; > >import org.eclipse.draw2d.ColorConstants; >import org.eclipse.draw2d.FigureCanvas; >import org.eclipse.draw2d.Panel; >import org.eclipse.draw2d.RoundedRectangle; >import org.eclipse.draw2d.XYLayout; >import org.eclipse.draw2d.geometry.Rectangle; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class Snippet { > > /** > * @param args > */ > public static void main(String[] args) { > > //Creates SWT Display and SWT Shell > Display display = new Display(); > Shell shell = new Shell(display); > shell.setText("Snippet BUG on Linux red hat 3"); > shell.setLayout(new FillLayout()); > > //Creates Draw2D canvas and Draw2D panel > FigureCanvas canvas = new FigureCanvas(shell); > shell.open(); > Panel panel = new Panel(); > panel.setLayoutManager(new XYLayout()); > canvas.setContents(panel); > > //Creates drawing's body > RoundedRectangle rect = new RoundedRectangle(); > rect.setBackgroundColor(ColorConstants.darkGray); > panel.add(rect, new Rectangle(0,0,100000,100)); > > while (!shell.isDisposed ()) { > if (!display.readAndDispatch ()) > display.sleep (); > } > } > >}
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 146179
:
44118
| 44230 |
44338
|
44399