Getting screen size minus Windows taskbar

I'm wondering if anyone knows of a good way to get the actual size of a screen, minus the windows tastbar.
I'd like to set the size of my program to the maximum available size of the screen realestate.
Currently, I just get the screen resolution via the ToolKit, and I just check to see if the OS is windows, and I take into account that the tastbar is probably visible, and take a few pixels off. Obviously not a very good way to handle the situation.
However, whenever you call a JFrame to maximize itself, it takes the tastbar into account, so I'm wondering if there's some way to access this information myself.
Even a way to programatically call the JFrame to maximize itself so I can then find it's size would work.
TIA.

There's no clean way to determine the screen size sans the task bar. If you're using jdk1.4, I suppose you could maximize a frame window as you thought. Otherwise, there's no frame maximize state prior to jdk1.4. If you're desperate for a semi-clean approach, you could always access the visiblity and dimensions of the task bar via JNI.
fyi, a frame "knows" the proper maximized bounds because it is a native window i.e., Windows handles the maximized boundary of frames, not the AWT.

Similar Messages

  • Let me know how to get screen size of user..

    Hi.
    I'm going to change a container size in a screen, dynamically.
    I want to know that an user's screen is 1024X768 or others..
    Let me know how to get screen size of user's computer.
    Best Regards.
    Kil - Nam.

    Look at Re: SAPgui window size (+)
    Regards

  • Screen size in windows 8.1 - all icons too small! How do I enlarge the entire captivate 8 screen?

    The entire Captivate 8 screen to too small. How do I enlarge the entire window? All icons and thumbnails are 1/4 the size they should be. Using Windows 8.1.

    It looks like it is an issue between Adobe and Microsoft. (Many Adobe programs are responding this way to Windows 8 and 8.1)
    I am posting this to try and get some (ANY) ideas/feedback...but to also bring it to the Captivate Community attention. I hope the Captivate Staff is aware of this issue.
    Same issue -great PhotoShop screenshot Photoshop too small on windows 8.1
    Photoshop CC / Windows 8.1 HiDPI / Retina scaling support
    Re: Adobe suite HiDPI on Windows 8.1
    Right side menu too small font size of letters in Windows 8.1 High DPI screen
    Re: Photoshop CC / Windows 8.1 HiDPI / Retina scaling support
    there are many many more out there......
    I tried this first, it comes with Windows and changes your display properties by application: (but it didn't work)
    The program above basicly edits these settings (you can get to these by right clicking on the exe application) I tried many combos, an even tried them under the "change for all users" setting.....NADA!
    I have tried editing the Windows display settings: (all screen shots below are with this setting size)
    The screenshot below is at 250%. It does not make any difference in the application (check out the menu bar, properties, icons....) If I go over 150% I lose dialog box space...the buttons disappear! If I keep it at 150% the words "Advanced Actions" at the top of the dialog box shrinks slightly, enough to fit the buttons in...) I showed the difference using snag it (12 pt arial compared to the appearance of the UI ~ 4 pt.) This is so hard to see! Same issue in some of the other adobe applications. (fyi...they are all up to date)
    Photoshop = same problem
    Dreamweaver = working fine
    Flash = working fine
    Premier Pro = half working....(menubar is ok but everything else is real small)
    Muse = not working
    Adobe Edge Code = Working fine
    OOF! Well, any thoughts anyone? I appreciate any and al feedback and ideas!!!

  • How to get screen size or user's resolution?

    Hey,
    i want to know how to get the sreensize.
    Incase my program get's bigger then the screen.
    thanks 4 ur help

    Toolkit.getDefaultToolkit().getScreenSize()

  • Increasing Screen Size in Windows 7 and PS CS6

    I have just updated my operating system to Windows 7.  When I open Photoshop CS6 the screen and icons look small.  Is there a way to enlarge the screen icons?

    Screen resolution is feature of Windows.
    Check this
    http://windows.microsoft.com/en-in/windows7/change-your-screen-resolution

  • Screen area of Windows

    Dear All
    How can I get Screen Area of Windows from Form. e.g. 800x600, 1024x768 pixels.
    Please Reply.

    do you mean the Area of your MDI-Window? Then use the set_window_property :
    Set_Window_Property(FORMS_MDI_WINDOW, POSITION, 5,10)
    Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_STATE, MINIMIZE)
    Set_Window_Property(FORMS_MDI_WINDOW, WINDOW_SIZE, 1024, 768)

  • When I try compose an email, just get compose window icon stuck in windows taskbar can't actually enlarge it and use it

    Ok, details of installation below, so when I try compose an email, I just get a compose window icon stuck in the windows
    taskbar can't actually enlarge it and use it. If I restart in safe mode with all addons disabled, then it works fine. But
    If I restart normally and manually disable addons/plugins, then close and start normally again i.e not safe mode, it
    breaks, so does not seem to be an addon or plugin but rather something with the configuration.
    Application Basics
    Name Thunderbird
    Version 31.6.0
    User Agent Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
    Profile Folder
    Show Folder
    (Local drive)
    Application Build ID 20150330093429
    Enabled Plugins about:plugins
    Build Configuration about:buildconfig
    Memory Use about:memory
    Mail and News Accounts
    ID Incoming server Outgoing servers
    Name Connection security Authentication method Name Connection security Authentication method Default?
    account2 (none) Local Folders plain passwordCleartext
    account3 (nntp) news.mozilla.org:119 plain passwordCleartext stbeehive.oracle.com:465 SSL passwordCleartext true
    account5 (imap) stbeehive.oracle.com:993 SSL passwordCleartext stbeehive.oracle.com:465 SSL passwordCleartext true
    Crash Reports
    Report ID Submitted
    bp-0a8986d2-ff0c-41c3-9da6-e770e2141224 24/12/2014
    bp-01f44ba7-3143-4452-ac98-981b62140123 23/01/2014
    Extensions
    Name Version Enabled ID
    British English Dictionary 1.19.1 false [email protected]
    Lightning 3.3.3 false {e2fda1a4-762b-4020-b5ad-a41df1933103}
    Oracle Beehive Extensions for Thunderbird (OracleInternal) 1.0.0.5 false [email protected]
    Important Modified Preferences
    Name Value
    accessibility.typeaheadfind.flashBar 0
    browser.cache.disk.capacity 358400
    browser.cache.disk.smart_size_cached_value 358400
    browser.cache.disk.smart_size.first_run false
    browser.cache.disk.smart_size.use_old_max false
    extensions.lastAppVersion 31.6.0
    font.internaluseonly.changed false
    font.name.monospace.el Consolas
    font.name.monospace.tr Consolas
    font.name.monospace.x-baltic Consolas
    font.name.monospace.x-central-euro Consolas
    font.name.monospace.x-cyrillic Consolas
    font.name.monospace.x-unicode Consolas
    font.name.monospace.x-western Consolas
    font.name.sans-serif.el Calibri
    font.name.sans-serif.tr Calibri
    font.name.sans-serif.x-baltic Calibri
    font.name.sans-serif.x-central-euro Calibri
    font.name.sans-serif.x-cyrillic Calibri
    font.name.sans-serif.x-unicode Calibri
    font.name.sans-serif.x-western Calibri
    font.name.serif.el Cambria
    font.name.serif.tr Cambria
    font.name.serif.x-baltic Cambria
    font.name.serif.x-central-euro Cambria
    font.name.serif.x-cyrillic Cambria
    font.name.serif.x-unicode Cambria
    font.name.serif.x-western Cambria
    font.size.fixed.el 14
    font.size.fixed.tr 14
    font.size.fixed.x-baltic 14
    font.size.fixed.x-central-euro 14
    font.size.fixed.x-cyrillic 14
    font.size.fixed.x-unicode 14
    font.size.fixed.x-western 14
    font.size.variable.el 17
    font.size.variable.tr 17
    font.size.variable.x-baltic 17
    font.size.variable.x-central-euro 17
    font.size.variable.x-cyrillic 17
    font.size.variable.x-unicode 17
    font.size.variable.x-western 17
    gfx.blacklist.suggested-driver-version 257.21
    mail.openMessageBehavior.version 1
    mail.winsearch.firstRunDone true
    mailnews.database.global.datastore.id 8d997817-eec1-4f16-aa36-008d5baeb30
    mailnews.database.global.indexer.enabled false
    network.cookie.prefsMigrated true
    network.tcp.sendbuffer 65536
    places.database.lastMaintenance 1429004341
    places.history.expiration.transient_current_max_pages 78789
    plugin.disable_full_page_plugin_for_types application/pdf
    plugin.importedState true
    plugin.state.flash 0
    plugin.state.java 0
    plugin.state.np32dsw 0
    plugin.state.npatgpc 0
    plugin.state.npctrl 0
    plugin.state.npdeployjava 0
    plugin.state.npfoxitreaderplugin 0
    plugin.state.npgeplugin 0
    plugin.state.npgoogleupdate 0
    plugin.state.npitunes 0
    plugin.state.npoff 0
    plugin.state.npqtplugin 0
    plugin.state.nprlsecurepluginlayer 0
    plugin.state.npunity3d 0
    plugin.state.npwatweb 0
    plugin.state.npwlpg 0
    plugins.update.notifyUser true
    Graphics
    Adapter Description NVIDIA Quadro FX 580
    Vendor ID 0x10de
    Device ID 0x0659
    Adapter RAM 512
    Adapter Drivers nvd3dum nvwgf2um,nvwgf2um
    Driver Version 8.15.11.9038
    Driver Date 7-14-2009
    Direct2D Enabled Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
    DirectWrite Enabled false (6.2.9200.16571)
    ClearType Parameters Gamma: 2200 Pixel Structure: R
    WebGL Renderer Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
    GPU Accelerated Windows 0. Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
    AzureCanvasBackend skia
    AzureSkiaAccelerated 0
    AzureFallbackCanvasBackend cairo
    AzureContentBackend cairo
    JavaScript
    Incremental GC 1
    Accessibility
    Activated 0
    Prevent Accessibility 0
    Library Versions
    Expected minimum version Version in use
    NSPR 4.10.6 4.10.6
    NSS 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
    NSS Util 3.16.2.3 3.16.2.3
    NSS SSL 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
    NSS S/MIME 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC

    Noticed this in the info supplied:
    Graphics Adapter Description NVIDIA Quadro FX 580
    Vendor ID 0x10de
    Device ID 0x0659
    Adapter RAM 512
    Adapter Drivers nvd3dum nvwgf2um,nvwgf2um
    Driver Version 8.15.11.9038
    Driver Date 7-14-2009
    Direct2D Enabled Blocked for your graphics driver version.
    Try updating your graphics driver to version 257.21 or newer.
    Could you update your graphics driver and retest.

  • I5 17''MBP  gets blue screen during install windows 7 32 bit

    Hello all:
    I heard that quite many people get classic windows' "blue screen" during using windows , whatever Windows XP, Vista or 7. But now i face the "blue screen" during install Windows 7, which means I even can not complete installation.
    I bought my Macbook Pro i5 17'' one month ago, and I'm trying to install Windows 7 but I face the problem during the installation. After finishing first 4 steps the computer would restart and start to "finish installation", but at this time it gets "blue screen" and shows "error: 0x0000009c" and stuck there. I have to shut down the turn off button and interrupt the installation.
    I don't know if there's any one else face this unlucky situation. I searched on the net and it says the problem could be from memory, graphic card (too new), or even overlocking the cpu,whatever it must be the problem of hardware. I thought it might be the problem of compatible.
    If anyone knows how to deal with this problem??!! I do need to use some software under Windows system!

    It is good to see that it is indeed a USB2.
    The support software on the USB is used in the Pre-boot environment setup and provides drivers for Apple specific hardware, GPU, BT, Mouse, etc. You can verify that by looking at the USB contents. The DVD contains generic drivers when hardware is not recognized as defaults to use. Apple does enough 'secret sauce' to make them different. The following does not explicitly state the USB2 need when using the DVD Installer and mentions W8 (not W7).
    From Boot Camp: Creating an ISO image from a Windows installation DVD - Apple Support
    Insert a blank USB 2 flash drive that is a least 16GB in size into a USB port on the computer. Boot Camp Assistant uses this drive to store the Windows 8 install media and support drivers during installation of Windows.
    Note: This flash drive needs to be formatted for the FAT32 file system and must use the Master Boot Record partitioning scheme. Use Disk Utility to check the format of the flash drive before proceeding, and partition or erase the flash drive if necessary.
    I suspect the GPU is not getting the correct driver and the Installer fails. The Generic VGA should work. From the OS X side, can you see files in your BC volume? If yes, can you look for logs in the BC volume at the following locations.
    ./Windows/Inf/setupapi.dev.log
    ./Windows/Inf/setupapi.offline.log
    ./Windows/Inf/setupapi.setup.log
    ./Windows/Logs/SetupCleanupTask/setupact.log
    ./Windows/Logs/SetupCleanupTask/setuperr.log
    ./Windows/Panther/FastCleanup/setupact.log
    ./Windows/Panther/FastCleanup/setuperr.log
    ./Windows/Panther/setupact.log
    ./Windows/Panther/setuperr.log
    ./Windows/Panther/UnattendGC/setupact.log
    ./Windows/Panther/UnattendGC/setuperr.log
    ./Windows/setupact.log
    ./Windows/setuperr.log
    ./Windows/System32/Sysprep/Panther/IE/setupact.log
    ./Windows/System32/Sysprep/Panther/IE/setuperr.log

  • Cannot install Windows 7 Pro; gets stuck on "Starting Windows" screen

    I have read dozens of posts on this topic but none has helped yet.
    My system has Windows 8 with UEFI. I want to install Windows 7 Pro on another partition. I have turned off Secure Boot in the UEFI/BIOS. When I try to install Windows 7 Pro from a DVD it shows "windows is loading files" and then gets stuck on "Starting Windows"
    for ever. This happens even when no USB peripherals are attached.
    I have already wasted many days on this. I hope someone can help.
    Thanks!

    Hi friends of the internet
    I have been reading several forums regarding the issue of installing windows 7 (64 bit) to a computer that have had windows 8 installed previously or just a GPT formatted disk.
    My Case:
    Windows version installed: Windows 7 Professional N with Service Pack 1 (x64) or Windows 7 Professional (x64)
    Computer used: Samsung laptop
    Model Code: NP53U4C-A02SE
    See the specks here:
    http://www.samsung.com/dk/consumer/computer-peripherals/notebook/notebook/NP535U4C-A02SE-spec
    Create a USB install disk that not freezes at ”starting windows” screen:
    First I followed this great guide (Thanks Daniel):
    http://
    hodgin.ca/2012/10/02/creating-a-uefibios-windows-7-usb-and-installing-to-gpt-partitions/
    STOP AFTER STEP 13!
    1. Open a command line in administrator mode
    2. run DISKPART
    3. type LIST DISK
    4. Look for the disk number that represents your USB drive
    5. type SELECT DISK # where # represents the number of your USB drive. Get this right or you will wipe a different drive out.
    6. type CLEAN
    7. type CREATE PARTITION PRIMARY
    8. type SELECT PARTITION 1
    9. type ACTIVE
    10. type FORMAT fs=fat32 quick
    11. type assign
    12. The drive should now be formatted and marked as active and fat32. Do not format the drive as NTFS or you will only be able to boot into the installer in BIOS mode.
    13. Now you will need to copy the contents of the windows 7 install dvd to the USB with a regular copy paste from windows explorer.
    Here comes a very weird hack... I do not know why it works, but I think it is all about flash drive data structure. I did these steps on a win 7 prof. computer.
    (Let’s assume it’s drive E:)
    Make a copy of your e:\efi\microsoft folder to e.g. your desktop.
    Delete the e:\efi folder
    Copy the \efi folder from a windows 8 installation disk (I used Windows 8 (x64) Professional) to the e:\efi folder. Sorry I cannot provide this for you.
    Here comes the weird part. Then delete e:\efi\microsoft you just copied from the win 8 installation disk.
    Copy the \microsoft folder form the desktop to e:\efi\microsoft
    Resume the guide from step 18.:
    http://
    hodgin.ca/2012/10/02/creating-a-uefibios-windows-7-usb-and-installing-to-gpt-partitions/
    18. Insert the USB in the machine and turn it on and boot into the UEFI/BIOS loader and check for boot options. On the ASUS Zenbook it detected two boot options on the USB drive. One was UEFI and one was regular BIOS. I made the
    UEFI option the first choice and restarted the machine.
    My bios setup was:
    Secure Boot = Disable
    OS Mode Selection = CSM and UEFI OS
    Boot Device Priority = I made the UEFI option the first choice and restarted the machine.
    The installation should start normal.
    E.g. See this guide:
    www.sevenforums.com/tutorials/186875-uefi-unified-extensible-firmware-interface-install-windows-7-a.html
    What I did was:
    Select custom installation (Advanced).
    Click Drive options (Advanced).
    Delete all partitions (this might not be needed). When I did not delete all partitions I was asked every time after the install, during start up by the windows boot manager to select ether win 8 or win 7.
    Click new (DO NOT make Changes in the size of the disk), apply, see NOTE!
    Edit the Primary partition as you want it e.g. divide it to more partitions.
    Select the one you will install windows on and do a normal install.
    I do not make changes in the Bios after install. The Boot priority is automatic set to “Windows boot manager”. If I change the boot mode back to OS Mode Selection = UEFI OS, the computer will freeze at the “starting windows” screen again.
    All this worked for me, good luck. There might be more to it, but this is a start.
    By the way, the start up time for a MBT install was 37 s. And for the GPT it was 49 s.
    Remember if we stand on each other’s shoulders we will reach higher
    J.
    NOTE: Here the installation program should create three partitions automatically!
    Partition 1 - System - The EFI System partition that contains the NTLDR, HAL, Boot.txt, and other files that are needed to boot the system, such as drivers.
    Partition 2 - MSR - The Microsoft Reserved (MSR) partition that reserves space on each disk drive for subsequent use by operating system software.
    Partition 3 - Primary - Where Windows is to be installed to.
    If this isn’t the cast you are not installing in UEIF mode. To check for this (thanks again Daniel):
    If you need to find out if you have booted into BIOS mode or UEFI mode when the installer starts you can press SHIFT+F10 when the welcome installer shows up to open a cmd prompt. from here you will likely be at X:\Sources. Type cd .. to
    go back a dir and move into \Windows\Panther\
    Then type notepad setupact.log
    Within this file do a ctrl+f and search for
        Callback_BootEnvironmentDetect: Detected boot environment:
    It should either say BIOS or UEFI.
    To check if your disk is in the GPT format.
    Open the command prompt.
    Type: DISKPART
    Type: List Disk
    See for the star (*) in the GPT column

  • How to get the actual screen size

    Hi,
    I have to get the actual screen size of the cliend in an applet, if i use method
    Dimension dmx = Toolkit.getDefaultToolkit().getScreenSize();
    it does not gives the actual screen size, like the screen size will be different if the application bar ( where we have start button on windows ) is Auto hide, and will be different it is not Auto Hide, or some users ike to keep the application bar on right or left of screen or on top..
    So how do we get the actual display size of screen

    Hi,
    I got how to do if using applet
    in screen object of java script we have methods to get the available width and availabe size
    screen.availWidth
    screen.availHeight
    here is the link for more info
    http://developer.netscape.com/docs/manuals/js/client/jsref/screen.htm
    http://forum.java.sun.com/thread.jsp?thread=275329&forum=57&message=1063410

  • , why do I get "Color Finesse requires a minimum screen size of 1024x768 yet I've got two full HD sc

    Hello,
    Once I try to open 'full interface' on color finesse 3 on After Effects CS5.5, why do I get: "Color Finesse requires a minimum screen size of 1024x768" yet I've got two full HD screens?
    Thanks.

    In addition to Dave's suggestions, if you haven't already done so, restart your computer. All we do is ask the OS for the screen size and check against 1024x768. We've seen on Windows that the OS gets confused sometimes and reports an incorrect size. Restarting fixes that.
    When checking your screen size, be sure to subtract the size of the toolbar and any similar add-ons you might be running. Those all reduce the usable screen size, and we've seen cases (mostly laptops) where that reduces the height of the screen below 768.
    Bob Currier
    Synthetic Aperture

  • I can't open my adobe acrobat reader - just can view the miniature version on the taskbar, but it won't open to full screen size?  PLS HELP!

    i can't open my adobe acrobat reader - just can view the miniature version on the taskbar, but it won't open to full screen size?  PLS HELP!

    What is your operating system?  Reader version?

  • Get size of Window

    Hello,
    has anybody a idea how to get the size of a existing web dynpro window?
    The API of IWDWindow only delivers methods for setting the size.
    Regards,
    Florian

    if nobody knowns how to get the size maybe someone can help me with my layout problem (i need the window size for this):
    imaging an entry site of a company...
    In the top left corner there is the logo of the company.
    In the top right corner there should be a container which shows some user specific data. These two UI Elements have fixed sizes!
    In the middle (between those two elements) there should be a other image which should be streched to the full size in dependence to the window size.
    All my tries with the layout have failed up to now.
    Any suggestions?
    Thx and regards
    Florian

  • How do i get my screen size of web sites back to normal size.

    how do i get my screen size of web sites back to normal size.

    Try COMMAND and two finger drag on the trackpad.
    Ciao.

  • There is screen information of Airplay popping up on the screen every second minute. How do I get rid of this window? Everything is already connected

    There is screen information of Airplay popping up on the screen every second minute. It's stating: 1. Network Configuration: Connect to wifi network 2. Choose this Apple TV. However wifi is already connected and this apple tv has been chosen. How do I get rid of this window as everything is working already fine and everything is connected. Airplay and wifi are working already.

    Had this happen to me after a recent update, was super annoying.  To turn off, go to Settings > AirPlay > Conference Room Display > Off.

Maybe you are looking for