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 227183 Details for
Bug 401046
monitor.getClientArea reports too large value on Linux
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Sample
MonitorClientAreaTest.java (text/x-java), 785 bytes, created by
Thomas Singer
on 2013-02-18 03:35:48 EST
(
hide
)
Description:
Sample
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2013-02-18 03:35:48 EST
Size:
785 bytes
patch
obsolete
>import org.eclipse.swt.graphics.Rectangle; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Monitor; > >public class MonitorClientAreaTest { > > public static void main(String[] args) { > final Display display = new Display(); > final Monitor[] monitors = display.getMonitors(); > System.out.println("Monitor count: " + monitors.length); > for (Monitor monitor : monitors) { > final Rectangle bounds = monitor.getBounds(); > final Rectangle clientArea = monitor.getClientArea(); > System.out.print(" bounds: "); > System.out.print(bounds.toString()); > System.out.print(" clientArea: "); > System.out.println(clientArea.toString()); > } > 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 401046
: 227183