Sitemap

Amicuk Programming Answers

How to get screen resolution settings

-0001-11-30   Views:0

Advertisement

How do u get the present screen resolution from code? thanksThe AWT Toolkit class has got a method called getScreenSize(), it returns an instance of Dimension. I'm not sure what to do when you have multiple screens though; maybe the methods of the cl

How do u get the present screen resolution from code?
thanks

The replay answer
Advertisement
The AWT Toolkit class has got a method called getScreenSize(), it returns an instance of Dimension.
I'm not sure what to do when you have multiple screens though; maybe the methods of the classes GraphicsEnvironment and GraphicsDevice can be used.

Go to See the other 2 answers

Hot
Hi Champs, Is it possible to patch Global Zone and only specific Non-Global Zones? Idea is to patch DEV-zones only on the system & test applications and then patch only the STG-zones on same server! Not sure if it is possible but just throwing a ques [More]
Hi All,        Has anyone created Iview from Webdynpro Java component in CE7.1. Because the wizard that appears for creation of Iview has only "Webdynpro ABAP" component.There is no option to create iview from "Webdynpro Java" componen [More]
Is this possible? as its a micro usb and my hard drive has a normal USB connection. Post relates to: HP TouchPad (WiFi) This question was solved. View Solution.captainbhangra wrote: Is this possible? as its a micro usb and my hard drive has a normal [More]
I have a dashboard query from a developer that joins 7 tables and gets data from 5. I have rewritten the query using 5 functions and select data from the main table. Explain plan shows the second query as less costly but sometimes seems longer. Is th [More]
First 24h into using my brand new MacBook Pro... Just moved my library from my old notebook ran under windows. Sometime ago either i did something wrong or windows just 'continued to get better' - quite a number of my albums were assorted into separa [More]
Dear All, I can't install anything on my MacBook Pro (OS X 10.6.8). For example, I'll download an update, which in turn opens an installer window. I select the destination for the installation. So far so good. But when I click on 'install', nothing.. [More]
Hi *, How can I assign a custom portal logon component directly to a webdynpro (not to a portal content object)? 1) created wd app with application property sap.authentication=true 2) created a portal logon component 3) changed authscheme.xml 4) how [More]
Hello, I'm trying to reinstall W7 on my netbook. But in recovery -> Advanced Recovery Methods -> Reinstall Windows, it requires Windows installation disc. Given there's no DVD/CD drive on this netbook, how I provide/install instalation disc? (Forgiv [More]
I woke up this morning and saw my Blackberry was trying to load what i'm assuming is the OS, over and over and over again without success. There is a black screen with BlackBerry written in the middle, with a progess bar at the bottom. It takes a few [More]
I have a new iPad running iOS 6.01.  It connects to wifi networks perfectly.  I also own a Blackberry 9900 that is capable of running a wifi hotspot.  The iOS6 iPad will not connect to my hotspot. It is NOT the hotspot that is the problem. PCs connec [More]