How can I check inactive window.

Hi all,
I have a question on Swing programming. I have a JFrame and I would like to check that
It active or non-active.
Active means, It's on a desktop.
Nonactive means, It's on a toolbar.
How can I do?
Thank you.

hi friend, want to say one thing to you, reading manual / API is a good good habbit :
public int getExtendedState()
Gets the state of this frame. The state is represented as a bitwise mask.
NORMAL
Indicates that no state bits are set.
ICONIFIED
MAXIMIZED_HORIZ
MAXIMIZED_VERT
MAXIMIZED_BOTH
Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT.
you can use above method of Frame class( remember JFrame extends Frame :) )

Similar Messages

  • How can I check email from 2 Apple IDs on my Mac?

    Since recently, I can´t check my .me mail account any more on my Macbook any more.
    I have 2 Apple IDs, and the main one is another email address (which I need, too). Therefore, I can´t access the .me email any more from my Mac.
    Will I have to buy a Windows machine to check my Apple mail???
    To be precise:
    It DID work just fine for about 6 years, but recently it stopped working.
    And it looks like the only way to change this in the settings, would be to lose all the settings, fotos, emails, calenders, ... from the other Apple ID - which I don´t want.
    --> HOW can I check my .me email from my Macbook - WITHOUT logging off everything else???

    ...ok, that did not do the job either:
    Whenever I did choose "other", as soon as I entered my Email address, it just switched back to my active iCloud account, not letting me continue.
    Checking everything again and again, I just realized that both email addresses in question are already attached to my other Apple ID (the one I referred to as the active acct.), whereas the Apple ID in question does NOT have any Apple email address attached to it.
    --> So it looks like I am actually getting all the Apple emails into one account - which is great.
    --> I kind of see now why I can´t create another account there (considering that it would have to use one of the email addresses twice)
    So I´m cool with Email now, I guess... thanks for your help!
    But what about the notes that are attached to my secondary Apple ID?
    Internet Accounts (in System prfs.) shows that I now have 2 iCloud Interent accounts. My "primary" acct., that has all the iCloud features, and another one without them - and it has "Email", and "Notes" unchecked (Contacts, Calender and the reminders are checked/activated).
    Whenever I try to check the "notes" box in that account (still under System Prefs. / Internet Accounts), I am prompted for an iCloud Email to continue.
    - Entering my (primary) icloud email does not work ("already taken" msg.)
    - Choosing one from the drop down menu (suggestions) does not lead any further. All I get then is: "The program Notes can not be activated... please wait a moment and retry..."
    - Making up a totally new one does not work either.
    (same applies when I try to check the "Mail" box in order to activate Mail for that account)
    Any ideas how I can go from here? Is there another way to create an iCloud Email (which apparently is needed to access my old notes)?
    PS: I´m glad we found a way to communicate, the conversation with you has really helped me find the problem with my iCloud Email! It is frustrating when you feel you´re stuck and keep turning in circles...

  • Was my T61 shipped without Bluetooth? How can I check?

    Recently I bought a T61 with Windows Vista Ultimate.
    When I ordered it, I selected bluetooth capability and the integrated bluetooth pan (or whatever was there to click).
    I am totally new to that whole bluetooth thing, so I wanted to try out whether I can connect my bluetooth enabled cell phone with my Laptop. So I activated bluetooth on the phone and made it visible to other devices, but when my T61 searched for devices, it couldn't find anything.
    So there is a lot of settings, I thought maybe I did something wrong, but everything seems correct. But then I thought, maybe both devices have to be visible. So I wanted to set my T61 to "Allow Bluetooth devices to find this computer" in Start -> Control Panel -> Bluetooth Devices -> Options.
    But to my surprise when I click 'Apply' or 'OK', I get this error message:
    Bluetooth Service Error
    An error occurred while Windows was saving your settings. The
    Bluetooth device might be unplugged.
    The following settings were not saved:
    Discoverability settings
    Connection settings
    How can the device be "unplugged" in a Laptop???
    Maybe it's not even built in.
    I am not really familiar with what is necessary to have bluetooth capability. When I look at the shipping itemization though, it seems there are multiple items needed.
    Among many other entries the following lines were in the shipping listing (email):
      62P6054 VBB INTEGR.BLUETOOTH PAN   
      42X1482 SBB BLUETOOTH W/ ANTENNA    
      42X1483 SBB BLUETOOTH SCREW    
      42V8654 SBB CL.PLATE T61WLAN BLTOOTH   
    These are the entries that sound like bluetooth.
    (btw. What's a bluetooth screw, what's so special about it and what do I need it for?)
    So, my brandnew T61 ought to have bluetooth capability, right?
    But, maybe they forgot to put one of the components in. After all the fan was broken at arrival, not the best omen, I'm afraid.
    How can I check, if Bluetooth is actually in the laptop?
    Hope somebody can help me,
    I don't want to call Lenovo and have some repair guy come over just to tell me how it's turned on.
    Thanks,
    MarkusK

    Hi MarkusK, welcome to the forum,
    I believe your T61 does have bluetooth. Have you turned bluetooth on using Fn F5. If BT has not been turned on I get exactly the same message you are describing. BT is turned off as standard setting, when you turn it on for the first time it will automatically load the necessary drivers - and away you go.
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • HT4061 How can I check a used Imac if is stolen before I buy it

    I am trying to buy an used Imac
    how can I check if this Imac is not stolen?

    Make sure the seller has prepared the iMac for sale according to this Apple document: What to do before selling or giving away your Mac - Apple Support.  If it's not prepared that way there's a good chance that use of the App Store and other features requiring  your Apple ID will be blocked.
    When it's booted up it should present the setup window as if it were a new iMac.
    If it's old enough that I would have come with Snow Leopard or earlier as the operating system make sure the disks that came with the iMac are included.
    I would not purchase one if it hadn't been prepared that way or unless I knew and trusted the seller so that if there are problems that pop up they can unlock them.

  • My Webpage screen is always minimized. How can I enlarge the window?

    My Webpage window is smaller then my screen the window is at about 10 inches instead of the whole scren . How can I enlarge the window (webpage) ? it is so annoying to work with this screen.
    Any help would be greatly apperciated.
    Thank you

    The first place to start may be to check Activity Monitor. Look at the Disk Usage tab and the CPU tab and see if any one or two things seem to be dominating that activity. Especially see if it's some 3rd party app or background process.

  • HT1349 I have just had an anonymous phone telling me that I have a virus how can I check

    How can I check if there is a virus in my computer

    I'd have to agree with Rudegar. If they didn't ask you to do anything or offer any kind of assistance, then it was probably a prank.
    Keep in mind that nobody can tell you remotely that you have a virus, just out of the blue. Your internet service provider can detect suspicious network transactions that may be an indicator of malware (generally more so on Windows machines), but even then, they cannot tell you anything conclusively.
    For more information about malware on the Mac, see my Mac Malware Guide.

  • How can I check Plug-Ins?

    Hi,
    how can I check if my QuickTime Plug-Ins are still current? In most browsers there is an option "About Plug-Ins" which lists all installed Plug-Ins. Is something similar available for QuickTime?
    Thanks!

    There should show two sets of QuickTime plug-ins (7.1.3 and 7.1.5).
    7.1.3 is the QuickTime Plugin.webplugin
    7.1.5 is the QuickTime Plugin.plugin.
    The "webplugin" is used by Dashboard Widgets (just special html code). It is listed as version 7.1.3 in error as the Finder Get Info window reveals it to be 7.1.5. The error (wrong version number) could be caused by Safari but that is just a guess.

  • Installed lion os previous was snow leapard and now in launchpad I have 2 iPhoto icons, how can I delete inactive one?

    I had Snow Leapard and installed new lion os.  Now in launchpad I have 2 icons of iphoto. How can I delete inactive icon?

    Snow Leopard files were replaced by Mountain Lion files on install. Open Disk Utility and verfiy disk and repair if needed and also repair permissions. Then make sure all of your apps are compatible with Mountain Lion because incompatible apps can cause slow startup. Check all apps at www.roaringapps.com.

  • HOW can i check my iphone4s is factory unlock  or not ?

    HOW can i check my iphone4s is factory unlock  or not  i wants to update my software version at present its version is 6.0.1(10A523) can any one tell me?

    Do you have iTunes 11.0.1 on computer?
    iOS: Device not recognized in iTunes for Windows
    iPhone not appearing in iTunes

  • How can I check it my firefox firewall is turned on

    where and how can I check if Firefox firewall is turned on

    oops the I would like to check if the Windows firewall is on.thanks

  • How can I check serial number using icloud

    how can I check serial number using icloud?

    If you are talking about an iPhone and you simply tap on settings/general/about
    Both IMEI and Serial numbers are there to see.
    You can use the *#06# short code on the phone keyboard to see IMEI as well
    Or connect your iphone to iTunes on a PC/Mac
    Click on the device in side bar and summary button at top left of browser window
    In the top panel you have :-
    Name of the device
    Capasity
    Build Version/Software version - Mouse click on it to change which is displayed
    Serial Number/UDID Identifyer - Mouse click on it to change which is displayed
    Phone number /IMEI -Mouse click on it to change which is displayed
    Its very easy to see both numbers if you actually have the device.

  • HT5019 how can I check if my lap top can work with Airplay

    How can I check if my laptop supports Airplay

    Open iTunes and turn on your Apple TV.
    Turn on "Home Sharing" on both devices.
    You'll see the Airplay icon in the iTunes window.
    Airplay "mirroring" is not supported by your OS but Airplay via iTunes is.

  • How can i reopen all windows from last session on safari 6?

    how can i reopen all windows from last session on safari 6?
    finally found it .... sorry ...
    Response:
    System Preferences > General
    Uncheck "Close windows when quitting an application"
    Close
    Ensure you have empty the Homepage on Safari
    Safari > Preferences
    Homepage = empty

    Or...  from the Safari menu bar click History > Reopen All Windows from Last Session

  • IP Job in BW finished, but how can I check the IDoc receive status in BW ?

    Hi,experts
    After I execute a Infopackage with loading more than 200000 records data, the infopackage monitor show me yellow light, 186020 from 200000 records. this infomation still show me till now, seaval hours,it looks pause here.
    And I check the request in the R/3, the Job has finished. as you know it means the R/3 push the IDoc already finished.
    and how can I do now ? or how can I check the IDoc receive status in BW side?

    Hi,
    I too had the same problem, i executed the following to solve the proble, may be this will help you:
    1) Go to T-code SM58 and select TRFC and press F6,
    2) For manual push of I-Docs, GO to T-COde BD87 select perticular idoc and see the status if it is not executed properly then do the manual push by pressing Execute option,
    Thanks,

  • Control-k key binding broken. How can I check and change my key bindings?

    I use the Terminal app a lot. Unfortunately I am not able to use the control-k shortcut to cut lines in the terminal anymore. How can I check (and change) the Terminal key bindings?
    Thank you!

    Basing on your input, you should get the following values:
    1) session keys
    SK_ENC: 6DCE2A99BACB5207A7A96A92F114D66C
    SK_MAC: 0D446132B168F75CD6F0A780693A4DD3
    SK_DEK: 19F7B0F94837F32874B29B5EFB7809F6
    2) host cryptogram
    1B781553209748EA
    3) Retail MAC
    01761103B810F00E
    Summing up, the External Authenticate command should have the following value:  84 82 01 00 10 1B781553209748EA 01761103B810F00E.
    Try to compare it with your results.
    Regards

Maybe you are looking for