Reset dimention object automatically when screen resolution changes

hi frns,
here i struggle with a prb.i set Jscroollpan prefferdsize() by using dimension obj, b'se to resize the components independent of screen resolution .
jsp2.setPreferredSize( new Dimension( (int)(screenSize1.width/2.5), screenSize.height/2));
my gui works properly even i change the screen resloution.but i have to restart my application to reflect new Dimensions.in my view the Dimension object resets to the new values only when i reexecute(it doesnot mean recompile..just rerun)the program. Is there any actionlistener or something else to catch that action(i.e when changing the screen resolution).there is addPropertyChangeListener in toolkit but i need code in detail. ...reply urgent

1.) if its that urgent what about paying sun for support?
2.) don't cross-post or double post.
3.) No idea what your post is about, but back to your headline-question:
no event, you need to poll in a seperate thread.
Clemens

Similar Messages

  • Bug: docs disappearing offscreen when screen resolution changes?

    Version 10.1, OS X 10.6.8 running on MacBook Pro mid-2010 with high-res 1680x1050 screen. When I view a pdf on my 27" Apple Cinema Display connected to my MacBook Pro as the sole display, then disconnect that display and use the MBP's built-in display, the document window essentially becomes invisible. Quitting Acrobat, relaunching, and reopening the document do not fix the situation. The only workaround is using an app called Optimal Layout which allows me to move windows via keystrokes -- I can move the window until it appears. When it does appear, only the title bar is visible (as if the old "screen shade" function from OS 9 were still functional), but clicking the green "zoom" button causes the window to reappear in its entirety.
    This happens every time I switch between displays.
    Does this bother anyone else?

    Has anyone who switches between an internal laptop display and an external display as sole display seen this problem?

  • How to fix for maximizing minimizing frames when screen resolution changes

    Hi, all
    I guess this must be an old question, but please help me.
    Thanks

    To occupy maximum space for JFrame
    Toolkit toolkit = Toolkit.getDefaultToolkit();
    frame.setSize(toolkit.getScreenSize().width, toolkit.getScreenSize().height);(or)
    frame.setExtendedState(JFrame.MAXIMIZED_BOTH);

  • Facebook screen resolution changes automatically everytime on Mozilla Firefox 4. Other websites opens fine.

    I have recently updated to Firefox 4. I am having many problems with this version.
    I am unable to use Facebook properly. The Facebook screen resolution changes every time automatically. The screen resolution gets very big.
    When I open the FB site the resolution will be fine as soon I open another tab to check other website and roll back to the FB tab the screen resolution gets big and can't get back to normal view.
    I have to close the FB tab and open a new tab to put the FB URL to use it. When I try to view other tabs and then open the FB tab the screen resolution is changed.
    I have problem with only FB on Firefox 4, other websites are working fine.
    I also tried opening FB on IE8 and Chrome. Their the site is opening normal. Have no issues with their browsers. I spotted it to be a problem with Firefox 4 and also the IDM (Internet Download Manager) doesn't work on the FF4 where it used to work on the earlier version of FF.
    Do something about the IDM integration with FF4 to download FLV,MP4 videos from YouTube and other websites.
    There is no "Go back to multiple pages" button in a FF4 tab. It only allows us to go back to the previous page. If I have open 10 pages in a single tab then I have to click the back button 10 TIMES to open the last (10th page) but in the previous FF3 there is a facility to view all the pages in a drop down which the current version of FF4 doesn't have :-( I am using Windows XP 2 Professional 32-bit and owner of the computer.
    Please fix the issues asap else I have to move back to the earlier version or have to shift to some other browser :
    Here goes the screenshots :
    http://i55.tinypic.com/2s8s8c6.jpg
    http://i51.tinypic.com/j7vynq.jpg
    http://i55.tinypic.com/1yuwbq.jpg

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Screen resolution changes when I reboot hptouchsma​rt 9300 elite all in one pc product #: LK282AV

    screen resolution changes when I reboot hptouchsmart 9300 elite all in one pc product #: LK282AV
    When I reboot computer the screen resolution changes automatically.

    Hello anitagold:
                Welcome to HP's forum. Thank you for visiting us how ever you are on the wrong forum. You own a business Touchsmart witch has a total different operating system then home user's does. This section is for home user Touchsmarts. This is where you need to post http://h30499.www3.hp.com/ You will receive a much accurate respounce I also think they have live chat assistance as well during business hours on line as well. Your software is also different then ours is so it would not do you any good for me to give you direction on how to adjust your screen resolution. Because your computer even though they look a like on the outside they are not alike inside. Thank you frrw.

  • My PC's screen resolution changes to lowest when I connect my iPhone-

    Does anyone know why my screen resolution changes when I connect my iPhone to my PC and open iTunes?

    Hello DarlinDodson,
    I'd recommend taking a look through the following article that can help get your MacBook working with your TV again.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573
    Cheers,
    Allen

  • Screen resolution changes on iphone 4s after downloading OS 6.

    Screen resolution changes on iphone 4s after downloading OS 6. Can't see entire home screen. I must reboot to restore original resolution, but while zoomed I can't see the ok button. What is the fix?

    No one here knows when the next iOS update will be released or what changes it will include until Apple releases it.
    iOS 6.1.2 does not disable Wi-Fi, the vast majority of issues with iPhones that appear after an iOS update can be resolved with basic troubleshooting which is reset, restart, restore (first from backup then as new).
    If that does not resolve, then the issue is hardware related and no amount of iOS updates or restores will ever get it functional again.

  • Screen resolution changes after opening PDF in preview and is enlarged.

    Screen resolution changes after opening PDF in Preview and is enlarged.

    Do a backup.
    Quit Preview.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Remove the following. You may not find them all.
    Containers/com.apple.Preview
    Preferences/com.apple.Preview.LSSharedFileList.plist
    Preferences/com.apple.Preview.SandboxedPersistentURLs.LSSharedFileList.plist
    Saved Application State/com.apple.Preview.savedState
    Credit Linc Davis  for this solution.

  • Screen resolution changes every time I open I-Tunes

    The screen resolution changes when I open I-Tunes. I have to go into control panel every-time to adjust the resolution to make the print and screen layout small enough so its entirety is captured which then allows me to use I-Tunes. Otherwise the graphics are too large to be captured on the screen making the program unusable.

    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • Spontaneous screen resolution change

    I am running OS X Maverick since a few days.
    If I don't use my system, the screen "goes to sleep" after 10 min. (like I always had).
    Since the OS X upgrade I have the problem that my screen resolution changes to 800 * 600 after when I "rewake" the screen (by pressing a key).
    When I look in the system preferences, the screen resolution is set to "best for my screen"
    I have to change it manually to the original setting (1280 * 960)
    Error in the screendriver????

    Hello viharij,
    Where do you download the Windows enterprise?
    Please download from the following link.
    http://www.microsoft.com/en-us/evalcenter/evaluate-windows-8-1-enterprise
    About how to change the screen resolution, please refer to the following article.
    http://windows.microsoft.com/en-HK/windows-8/get-best-display-monitor
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Restart GKrellm on screen resolution change in KDE

    Hi all!
    Any trusty GKrellm wizards still out there? Or KDE mastahs?
    I much prefer GKrellm and dockapps for my system monitor needs and currently use the former as a panel in the top right corner on my KDE 4.5 desktop. It works great except for screen resolution changes where switching from larger to smaller resolutions and vice versa breaks the alignment to the right border of the screen.
    My question is if there is a lean way, either through GKrellm, KDE or even bash/d-bus or similar to restart GKrellm (which is fast and good enough a solution for me) when I change resolution? Any ideas?
    I wish KDE had as an option for "on resolution change, execute X". Come to think of it, I would like KDE to offer this option for power management state switches as well. Hmm, perhaps there should be a generalized "state-based" daemon for launching arbitrary external commands in KDE much like the tools available on Android phones these days, like Tasker, Locale and Setting Profiles...

    No hints for how to do this? What about in Gnome?

  • Update manager in IdM automatically when the manager changes in SAP HR

    Hi Experts
    I have been given a requirement where the manager of a user in IdM should be updated automatically when the manager changes in SAP HR.
    The HR extraction job is currently in place and runs every 30mins.
    Please could you give me some ideas on how to implement this.
    IDM 7.2 SP 6
    Thanks
    Ran

    Hi Deepak
    I have been discussing this a bit more in detail with the client. So, the issue is as follows
    When a new/replacement manager is hired
    When people are moved from one org unit to another
    The scheduled extraction job (RPLDAP_EXTRACT_IDM with a variant with the delta tick on) does not update the new manager info in IDM for the relevant users who report to that manager. The client has to run the program (RPLDAP_EXTRACT_IDM with a variant with the delta tick off) manually each time for the affected users which updates the manager info successfully in idm.
    I investigated the query LDAP_IDM_QUERY from user group /SAPQUERY/L1 and want to know if the below should be ticked as well. Your thoughts please?
    Please advise.
    Thanks
    Ranjit

  • Screen resolution changed only in the browser after update of version 9.0.1 how do I change it back

    Screen resolution changed only in the browser after update of version 9.0.1 how do I change it back?

    http://kb.mozillazine.org/Screen_resolution_changes_when_launching_application ?

  • Automatic Screen Resolution Changes?

    I have a Retina MBP 15".  When I use Mail or Safari, I like the setting set to "Best (Retina)", but when I use Photoshop, FCP or other media based apps, I like to change it my screen resolution to Scaled: "More Space".
    Is there a way (in Automator or something else) to have the MBP trigger screen resoultion changes for certain apps? and then return it to the default upon quitting that application?
    Thanks

    Hello anitagold:
                Welcome to HP's forum. Thank you for visiting us how ever you are on the wrong forum. You own a business Touchsmart witch has a total different operating system then home user's does. This section is for home user Touchsmarts. This is where you need to post http://h30499.www3.hp.com/ You will receive a much accurate respounce I also think they have live chat assistance as well during business hours on line as well. Your software is also different then ours is so it would not do you any good for me to give you direction on how to adjust your screen resolution. Because your computer even though they look a like on the outside they are not alike inside. Thank you frrw.

  • When I open Firefox my screen resolution changes and when I fix it on the computer it auto changes back in 10 seconds. I looked at the compatibility and nothing is checked. This started out of nowhere.

    I have used FF for about a year on my Dell Inspiron 15 and now every time I open it the resolution changes on me. If I close FF everything goes back to normal resolution. No problems with other browsers just FF. I went into the properties and tried to fix the compatibility but nothing was checked. I checked for any new updates that happened automatically but there haven't been any for days before this started. I have all my Grad school bookmarks on FF and I don't want to uninstall.

    This can be a problem with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    Use Restore or Maximize in the right-click context menu of the Taskbar icon to set focus to the Firefox application if you do not see the Firefox window.<br />
    Open the system menu of that Firefox window via Alt+Space and see if you can move and resize that window.
    If that works then close Firefox (File > Exit/Quit) to save that setting.
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window

Maybe you are looking for

  • Need help with INSTEAD OF trigger on view

    Hi, I am trying to use INSTEAD OF on a view because I will be updating the calling table in my trigger, which will cause mutation.  I need to update attribute7 of another record based on the new attribute7 of the current record (record being updated

  • How to create groups in AD using AD group process definition

    Hello, I want to create group in AD when i create group in OIM & i had achieved this using JNDI & was able to create groups in AD successfully,now i want to create groups in AD using AD Group process definition which contains create AD Group task. Ca

  • HT201541 Since OS X Yosemite, I can not open my docs in pages without a costly update-Why?

    I have a MacBook Air, and have recently updated to OS X Yosemite. I want to access my documents in pages but I keep getting a message that I must update 'pages', and the only way to update 'pages' is to pay more $$. Every time Mac has an update do I

  • Function for Adding  Attachment to invoice post.

    I have a report to read txt files, and post vendor or customer invoice documents with BAPI_ACC_DOCUMENT_POST. now with the txt file i have a pdf file to attach . how can i do that?  thanks , pd.: sorry my english.

  • Import fireworks cs3 slideshow into Dreamweaver 8

    Hello, Im trying to get a slideshow created in Fireworks cs3 to work in Dreamweaver 8. I cant seem to get the html file it generates to slot into a Dreamweaver page. When I double click on the slideshow html file in Dreamweaver it opens a page that l