How to take Peer window ID in Mac OS?

Hi,
I have to take native peer window Id in Mac OS using Java.
For Linux, I know we can do it as below.
Class cl = Class.forName("sun.awt.X11ComponentPeer");
java.lang.reflect.Method m = cl.getMethod("getContentWindow", null);
Object obj = m.invoke(comp.getPeer());
long windowId = Long.parseLong(obj.toString());
Since there is awt package on Mac Java, I don't know how to take window ID.
If anybody has experience on this please help me.

Thanks for the reply. But i wonder how to Empty Trash. I didnt find Trash in my Left Bar in Find window. Thanks in advance.
Best Regards,
Ujwal

Similar Messages

  • Best way to port all Windows XP files, applicaitons and data form my PC over to iMac and how to run those Windows apps on Mac?ns on Mac?

    I have a Windows XP machine with apps, files and data.  I want to get all that over to my Mac, and also run those apps under Windows XP or even Windows 7 on my Mac.  Im wondering:
    1.  How best to get those files over to my Mac
    2.  How to run those apps and use my Windows based files/data on my Mac
    3.  How best to run Windows on my Mac....either partitiion my Mac's hard drive and boot up either Windows or MAC OS, or run some other program where I can easily switch back and forth form Windows to MAC OS, or perhaps get it all on an external hard drive, maybe partition that Windows/MAC OS and boot from that?
    Thanks!

    I agree you would benefit by using virtualizaiton software. Virtual Box is one alternative the commercial apps for doing virtualization are Parallels and VMWare Fusion which you also might be interested in for their support and updates.
    Also you may benefit by book marking and using:
    Mac 101 , Switch 101 & Find Out How Video tutorials
    For your MS Office apps then I'd STRONGLY recommend using the native Office For Mac versions, you can find these on Amazon for less than $100 and then you can run the apps natively rather than having to lean on MS Windows. Also for your Financial and Tax software you also may want to use OS X apps too, for example I used Quicken for over 20 years (PC mostly and some Mac) but switched to iBank. Also for tax software I have used Quicken's Turbo Tax, this also runs natively on OS X.
    In other words for your stated needs I don't see much reason to stay with MS Windows. You may have other considerations, if you do please state them, some may be real issues and some may be easily overcome.

  • How do you run Windows on a Mac?

    I have had a Dual Core MacBook Pro since last July, but I have never run Windows on it. Could someone here please explain to me how I can run Windows on my Mac, how to switch between Windows and Mac OSX, and if Windows Vista is able to be run on a Mac. Or, at least point me in an article already posted on this subject. Thank you!
    MacBook Pro   Mac OS X (10.4.8)   17" Screen, 2.16 GHz Processor, 1 GB RAM, 120 GB Hard Drive

    Please search the discussions before posting. You'll find hundreds of threads detailing how to run Windows on a Mac and could have answered your own question. Or better yet, just search Google.
    http://www.apple.com/macosx/bootcamp/

  • How can I uninstall Windows from my mac?

    how can i uninstall windows from my mac?

    Use the Boot Camp Assistant in the /Applications/Utilities/ folder to return the drive to a single partition setup. If you were running Windows from a disk image, delete that image.
    (60975)

  • How to take a picture with my mac bok pro???

    Years ago I took pictures and selfies with my MacBook Pro. After spending a lot of time only using my phone to take pics I'm only trying now to take one simple pic of my dog on the other side of my computer screen tonight. Now I can't seem to find out how to do this. The i-Photo at the bottom of the screen only shows me old photos and asks for locations. No. I try to look for help on my Mac to no avail. THE REST OF MY MICROSOFT FRIENDLY FAMILY ARE AMUSED. The 'support' is horrible, I find out through YAHOO - not Apple or my computer - that I need to go through Photo Booth. I remember seeing that years ago. Why is there no photo booth icon at the bottom of my screen??? When did it change to i-Photo, and why aren't the two integrated?? Why do I have to find answers through yahoo? I managed to get photo booth up for a while on my mac book, but seriously, I can't be doing this all the time, now it's gone again and still I have no pic of my dog hating the back of my screen. And I can't find it again! The question is still: How do I take a photo with my mac book? Please DO NOT refer me to a link. NOT LOOKING FOR AN AUTOMATED ANSWER. Also, some additional feedback, Siri is really inferior compared to OK Google in providing directions, answering general questions (understanding voice questions and providing answers) and making voice command calls. I will not be buying an Apple watch for now. I need to see a lot of other improvements, even only how to ask questions about existing products and features and get snappy answers, before I invest in a new Apple product. Disappointed, I always rooted for Apple.

    Feel all better now?
    1. The Photo Booth.app is located in the Applications directory of Macintosh HD on Mac OS X systems. But some Microsoft Friendly Family conspirator might have changed the name of the internal storage device, removed the Photo Booth.app icon from the Dock, or possibly deleted the app.
    2. Photo Booth.app never DID change to iPhoto.app, or Photos.app. It always was and still is Photo Booth.app.
    3. iPhoto and Photos (introduced in Yosemite 10.10.3) are separate programs primarily designed for organizing and editing digital photos, and cannot take selfies.
    Once you 'snap' an image with Photo Booth, the images are displayed in the 'film roll' that appears at the bottom of the Photo Booth application after you snap the first image. Clicking on an image in that film roll will select it. Control+clicking offers the option to export or delete the image. Once an image is selected with a single click, click the "upload" icon beneath the film roll to see the options available.
    (Yosemite 10.10.2 version illustrated below. Screen transparency means that the background image colors bleed through the menus illustrated below.)
    4. There is a fast way to find and start the application called Photo Booth.app.
    Click on the Spotlight icon in the upper right corner of your computer screen to search your computer for Photo Booth.app. Yes, there is a space between the words Photo and Booth. Press the enter/return key to open the application which will also enable the user-facing camera and illuminate a green LED.
    Click the red button to initiate a 3-step countdown and a simulated flash of the screen to provide more light.
    5. Once Photo Booth.app is open and running, 'right click' (if the Secondary click feature of your mouse or trackpad has been enabled in , System Preferences) on the Photo Booth program icon in the bottom 'Dock' of your screen, and select Options, Keep In Dock. That will keep the Photo Booth icon in the bottom program dock for fast future use.
    Save your rant. It is a violation of Terms of Use, and moderators will delete your messages. If you persist, ranting will get you banned from these forums for repeated violations. You are talking to volunteers here, not "Apple Inc." Provide meaningful feedback directly to Apple at apple.com/feedback, or click on Contact Us at the bottom of any forum support page.

  • How do I install Windows on my Mac?

    i'm very new with mac, but i'm just concern if it's safe to put windows on mac?
    and sorry to ask this, what are the procedures to have windows? how expensive?
    Message was edited by: Macbeth Abuzo

    You can either use Boot Camp, Parallels Desktop, or VMware Fusion to run Windows on your Mac. Many people have done this without running into problems.
    (23570)

  • How to boot to Windows XP from Mac Desktop

    Hi
    I have just installed Lepard/BootCamp/Windows XP and am wondering how to get to Windows from Mac when I'm logged on to Mac. I can access it via System Preferences but end up resetting my start up preferences to Windows in order to reboot from there. When I installed Windows it put a folder on my Mac Desktop that has the windows info -- does anyone know how to quickly reboot to Windows? On the XP side, there is a boot camp icon in system tray that allows you to choose to boot over to Mac from there. But not on the Mac side. Apple Tech Support told me there must be an easier way than going through the Sys Pref startup options but he was unable to find it. Suggested I try here. Any hep appreciated!

    I know about the Option key ... when I power on the computer and hold that down, it gives me the option to choose one OS or the other, instead of going to the one I've set in Sys Pref startup ...
    My question is when I have the Mac OS running and want to go to Windows ... the only way I seem to be able to do it is go back into Sys Pref and change the startup OS to windows. It will then give me the option to restart and go there right now, which will get me into Windows but at the cost of resetting the preferred startup OS.
    On the Windows side there is the option to set the start up OS as well, so maybe that's the key? I wondered why you would need to set it on both sides, or have the ability. Maybe that's it! There has to be a better way to go from Mac to Windows than via the Sys Pref option.

  • How can I run Windows on my Mac?

    I want to place games on my computer. However, some of the games I want to play are not compatible with my Mac and I want to know how to run Windows on my Mac.

    Welcome to Apple Support Communities
    Your Intel Mac comes with Boot Camp, that allows you to install Windows into your Mac. See > http://www.apple.com/support/bootcamp
    Go to this website, look for your Mac model under "Boot Camp requirements by Mac model" and choose one Windows version.
    Then, open Boot Camp Assistant and follow the steps to install Windows. Follow Apple's steps > http://manuals.info.apple.com/MANUALS/1000/MA1636/en_US/boot_camp_install-setup_ 10.8.pdf

  • How do I use windows with my mac

    How do I use windows with my imac?  I need to know which program I need.

    use the built in boot camp or a program such as Parallels or VMware Fusion.

  • How to best run windows on my mac and what version?

    I want to run windows on my mac by partitioning part of an external hard drive.  What version of windows should I license, use parralels or fusion, and any other recommendations?

    There are two ways to run Windows on an Apple computer.
    1. Use Bootcamp Assistant to create a Bootcamp partition then install Windows on the Bootcamp partition. http://www.apple.com/support/bootcamp/. Use Windows 7. Windows in a Bootcamp partition will not boot nor run from an external drive. You must use the first internal drive.
    2. Use a virtual machine like Parallels, Fusion, or VirtualBox and install Windows as the guest operating syste. See the virtual machine sites for instructions. Use whichever version of Windows you want.

  • How do you download windows on to mac and get it setup?

    HELP ME!!!!!!!

    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
         1. Install the Apple Boot Camp software.  Purchase Windows
             XP w/Service Pak2, Vista, or Windows 7.  For Boot Camp
             4.0 and above you can only use Windows 7 or later. Follow
             instructions in the Boot Camp documentation on
             installation of Boot Camp, creating Driver CD, and
             installing Windows.  Boot Camp enables you to boot the
             computer into OS X or Windows.
         2. Parallels Desktop for Mac and Windows XP, Vista Business,
             Vista Ultimate, or Windows 7.  Parallels is software
             virtualization that enables running Windows concurrently
             with OS X.
         3. VM Fusion and Windows XP, Vista Business, Vista Ultimate,
             or Windows 7.  VM Fusion is software virtualization that
             enables running Windows concurrently with OS X.
         4. CrossOver which enables running many Windows
             applications without having to install Windows.  The
             Windows applications can run concurrently with OS X.
         5. VirtualBox is an Open Source freeware virtual machine such
             as VM Fusion and Parallels that was developed by Solaris.
             It is not as fully developed for the Mac as Parallels and VM
             Fusion.
    Note that VirtualBox, Parallels, and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech Labs- Virtualization Benchmarks, January 2013 | MacTech for comparisons of Boot Camp, Parallels, and VM Fusion. Benchmarks of all of the above except Crossover can be found in Benchmarking Parallels, Fusion, and VirtualBox Against Boot Camp - The Mac Observer. Boot Camp is only available with Leopard or later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How do I run Windows explorer on mac

    I need to run Windows 7 for some applications. How do I do this?

    I vote VMWare Fusion for your needs, Kevin.
    I've got a 2.4MHz Macbook 7.1 & I've been using Fusion to run Windows 7 Ultimate for quite a while now. I've got Win7 all updated, it shares my Macbook's network connection just like it had its very own, shares Mac folders so that those Mac folders (or even the entire Mac file structure, if I wanted to) are accessible inside Win7, & I can Copy [Cmnd-C] & Paste [Cmnd-V] info back & forth between the two OS's by just Cmnd-Tab switching back & forth between the two. Nearly seamless integration between the two.
    My Windows 7 actually works better & more problem-free on my Mac, in fact, than any Windows I've ever had running on any PC machine. Believe it or not. Just as fast too, if not faster. And I don't think I have EVER seen one of those mean nasty little Windows popup messages with text and a "So whatya wanna do, bucko?" question in 'em that only a Redmond software engineer could understand.
    A couple of caveats though......
    Hard drive space: Lots of it. Not knowing how much it'd take, I initially set the space my Win7 would take up on my Mac at 60GB, though Windows 7 itself is now taking up only 37GBs inside that initial 60GB allotment. I haven't yet discovered how to make that allotment size smaller, to 40GBs for example, without maybe messing something up, & I don't have the harddrive space to duplicate the 60GB file as backup. Gotta break out my external drives I guess.
    And in addition to the 60Gigs of static, unchangeable space it takes up on my Mac's SSD, it uses another quarter Gig or so of my SSD's free space for its virtual memory requirements (see the Activity Monitor screenshot below).
    RAM: Lots & lots of that, too. Right around 2.25GBs of Real RAM Memory it uses. I outfitted my Macbook with 8GBs though, so running Win7 along with 6 to 10 other Mac apps, including Photoshop, is usually not a problem. Close with that many other apps, but usually not a problem.
    If VMWare Fusion looks like a good way to you for you to get Windows 7 running on your Mac (personally, I think it's SO cool), I'd use Craigslist to find a good deal on a copy of Fusion, Kevin.
    Here's a Google hitlist showing a nationwide Craigslist search result for people selling VMWare Fusion disks last month & this month. Looks like $25 or so bucks is all it'd take, on average:
    site:craigslist.org mac OR macintosh AND "vmware fusion" AND "intext:2012-09" OR "intext:2012-10" -macbook
    Happy Mac'in, Kevin!
    Kevin Kendall

  • How deep into a windows directory can Mac access?

    Well, after moving, and attempting to move numerous files (from a networked XP laptop, with an externally USB mounted hdd), I've found that there are some files that it will not allow me to move.
    I get the same error message-- not having sufficient privileges to move the files.
    I'd set my access permissions to allow the users to change the files. Which I'm assuming means they can edit the files, and save an updated version at the source, as well as moving/copying the files.
    So, I'm curious about two things.
    1- is there a level of "depth into a directory" that Mac cannot access a networked drive through a PC?
    2-Are there certain directory sizes that Mac just can't copy from?
    well, ok... maybe some more too....
    3- the file transfer starts off great, and then after a while it sends me the above referenced error msg stating that I don't have privileges to access the file.
    At first I thought maybe the network connection failed, but I can still access the folders in question. Then, I remembered that even windows has a 255 character limit to pathway strings that it can read.
    Hence my two initial questions.
    any ideas?
    Thank you in advance.

    While the issue was answered-- it just made my job more frustrating-- I was hoping for a bypass so I'd not have to take so long to deal with it.
    The problem was that I'd set so many folder levels that it'd exceeded the 255 or 1024 character limit that XP has.
    Thus, my attempts to move entire directories was met with rejection due to the exceeded limits..... argh..... so much for being "smart" on my realizing what a perfect filing cabinet I had at my finger tips-- I am a lousy filer, and can never think of how to file things. The directory structure helped me overcome that "weakness," or so I thought.......

  • How do i install windows 8 on mac?

    i have just bought the new mac mini, and i want to install windows 8 pro on it, i have an disc with the windws software and a external dvd drive.
    im confused over all them who tells about it, beacuse they either download or have windows 7 already installed, i have non of them, so can anybody help me for a newbee?
    mikkel

    mikkel-kj wrote:
    These apps paralells and fusion and virtualbox, are they in Mac App Store? And when I have the app installed what then, now it ain't only bootcamp what shall I do now to install windows 8?
    Mikkel
    Parallels, Fusion, and VirtualBox are available from their respective sites. Read their installation instructions which explain how to install Windows.

  • How do i run windows programs on mac

    How do i run a windows program on my mac? Is there a particular application for it? or do i need to download and install a virtual windows software? - if so, can anyone suggest any names for software. I've heard about virtual box.

    Why ask here instead of the ones for Macbook series, or for Windows on Mac, aka Boot Camp.
    VirtualBos is just the VM free for running Windows as guest OS under Mac OS, and then why exclude what or type program? Maybe game that needs to run natively, or that your notebook would have troubke with disk spa e, RAM, or your processor.
    Windows runs hotter, too, so that is another concern.
    Mire Q's than answers.

Maybe you are looking for

  • More Fun with NULLs and Empty Strings

    Greetings, I ran across this behavior recently and thought I'd share with the forum. I'm running 10.2.0.2. Note the difference in behavior between passing and explicit NULL in the parameter vice passing an empty string (''): CREATE OR REPLACE PROCEDU

  • Error In Adadmin Re-Create Grants And Synonyms For Apps Schema

    HI, I upgraded the my DB from 9.2.6 to 10.2.4.It was sucessfull. While doing Postupgradayion steps - Recreate grants and synonym for apps a. Log in to server with applmgr user b. Execute adadmin c. Choose -> Maintain Applications Database Entities me

  • File Type Associations--no mp4

    From Alias(.pix) to XML (.xml), I can find NO mp4 in the File Type Association list, found in the Edit-Preferences dialogue. What? No mp4?!?!

  • How to turn on my ipad

    Guys, can someone help me?  I was watching movie on my iPad and suddenly I felt asleep. When I woke up, I couldn't turn the iPad back on, even went I plugged it. The screen was left  completely plain without. What can i do to get this

  • External HD kills bluetooth

    I have a external AcomData external IDE USB 2.0 hard drive enclosure with a internal 320GB IDE drive. If i start up my iMac with the drive turned on Bluetooth will be disabled and wifi will not work. After about 3 min the Bluetooth gets the unavailab