Map the XCreateWindow to Frame or window in C and JNI

I am having a window which is created in C++ using 'XcreateWindow' function
I am using JNI as a interface
How do i get the Window Id / handle to java frame.
If I am giving any actionlistener to my frame that has to be reflected in C window
Anybody can send me the full source code too.

Linux_Java wrote:
How do i get the Window Id / handle to java frame.You can't get it from within Java, that much I know, and in fact since it is an OS construct it is meaningless in java. If you are working with MS Windows, I'm guessing that your best bet is to play with some of the functions in the User32 library, such as enumerateWindows and such, and by doing this you'll find out how to get a handle on the JFrame. If it's unix/linux (and given your name, that is a reasonable assumption) then I have no idea.
If I am giving any actionlistener to my frame that has to be reflected in C windowNo idea what you mean here.
Anybody can send me the full source code too.Doesn't this kind of go against the philosophy of these forums?
Also, consider posting this sort of question in the JNI forum where you will have a much better chance of getting a JNI guru who actually knows what he's talking about instead of, well, me.

Similar Messages

  • HT204053 I recently replaced the hard drive on my Windows 7 computer and lost all of my music content. It should be on the iCloud, however. How can I get it back to iTunes? Can I "reverse-synch" and send it FROM my iPhone TO my computer?

    I recently replaced the hard drive on my Windows 7 computer and in the process lost all my music. I think it should be on the iCoud. Can I get it back from the iCloud to my computer? Or can I "reverse-synch" FROM my iPhone TO iTunes?

    All the music you purchased from iTunes can be re-downloaded, all the music you acquired without purchasing from iTunes can be accessed using Senuti (not free). The combination of these 2 will get your music back.

  • I tried to update my photo albums in my Iphone 4S. I could not, and the old photos were removed. I tried again to copy the albums in the Iphone from a PC Windows XP folder and it does not work.

    I tried to update my photo albums in my Iphone 4S. I could not, and the old photos were removed. I tried again to copy the albums in the Iphone from a PC Windows XP folder and it does not work.

    You can't activate any GSM iPhone without a valid sim card installed in the phone.
    So, yes, you need to get a sim card.

  • What is the most powerful books for Windows server 2008 and R2?

    Hi,
    There are many books out there that cover Windows server 2k8 and its R2 successor but i wonder which ones to focus on. In the same time, all books are for one purpose, "Windows Server 2008". Each author has his/her own view on the platform. I don't
    want to read them all just to avoid confusions and complications.
    These are the list of books that i have along with books that i finished reading them:
    Exam 70-640 Configuring Windows Server® 2008 Active Directory® (Finished this)
    Exam 70-642 Configuring Windows Server 2008 Network Infrastructure (Finished this)
    Exam 70-643 Configuring Windows Server 2008 Application Infrastructure
    (Finished this)
    Exam 70-646 Windows_Server__2008_Server_Administrator_Second_Edition (Finished this)
    Mastering_Windows_Server_2008_R2 (Finished this)
    McGraw.Hill.Microsoft.Windows.Server.2008.Administration.Feb.2008
    McGraw.Hill.Microsoft.Windows.Server.2008.The.Complete.Reference.Feb.2008
    OReilly.Windows.Server.2008.The.Definitive.Guide.Mar.2008
    Sams.Teach.Yourself.Windows.Server.2008.in.24.Hours.May.2008
    Sybex.MCTS.Windows.Server.2008.Active.Directory.Configuration.Study.Guide
    Windows Server 2008 Active Directory Resource Kit (Finished this)
    Windows Server 2008 Networking and Network Access Protection (Finished this)
    Windows Server 2008 Unleashed
    Windows Server 2008 R2 Unleashed
    Do you think the unfinished books worth reading?
    Appreciate your help.

    Thank you for the reply. My goal is to read everything (ins and outs) about Win 2008 and R2 platforms before i jump into Win 2012. I have pretty good experience in certain roles in Win 2008 such ADDS and ADCS. As clarified, i've finished a good number of
    books but i want to make sure that i didn't miss a single piece of information that maybe covered in another book.
    Honestly, i find the Technet docs are informative but daunting. On the other hand, books written by authors are more friendly because authors can throw jokes while explaining a certain technology, which makes the reader more attracted to the topic. In addition,
    examples, practices, labbing, and quizzes in the books are more fun.

  • I updated my email for itunes and now the sign in to icloud window opens up and i can not use my device

    I updated my email to my Itunes account. Now when i try to use my iphone and ipad a window pops up and says sign in to icloud but it has the old email address on it. Even after I hit cancel it immediately comes back and does not let me use my devices. How do i get this to stop?

    Hello, wagonbjorn. 
    Thank you for visiting Apple Support Communities.
    You may find this article helpful with the issue you are experiencing.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/TS5223
    Cheers,
    Jason H.

  • Despite having the File Associations in both Windows Control Panel and Firefox Options set to Windows Media Player for *.mwv files Firefox tries to open them with Foxit pdf Reader, which bombs out - what now?

    Making this entry from my Linux computer which handles the situation correctly.The real situation involves only a Toshiba laptop running Windows XP.

    I used this link for tiff http://www.nrl.navy.mil/content.php?P=IMAGES
    QT was opening the tiff files. When going into the QT control panel Browser>Mime settings>Images-Still image files I was able to uncheck tiff, which held. I was also able to uncheck all the file types under File Types tab(Images-Still image files) in the QT control panel. However the preference would not hold. Went into Start>Set Program Access and Defaults that also was of no help.
    The only way I was able to get QT to release the tiff's from the website I posted was to go into the Folder Options control panel for File Types and change the tif & tiff from QT picture viewer to windows picture and fax viewer.
    So not sure why the QT control panel will not respond, there are other file types in the Folder options control panel on this computer other than tiff's that are still associated to QT, but didn't try changing them, perhaps that needs to be done?
    Good post I didn't realize this before reading your post, if I come across anything further I'll post back.

  • Lion: failure to honor the un-setting of "Restore windows when quitting and re-opening apps" ?

    I have noticed an annoying "feature" of Lion, and I'm hoping that someone might have found a workaround.
    If I uncheck Preferences->General->Restore windows when quitting and re-opening apps, some of my apps still seem to ignore that setting after a restart.
    Here's a scenario which illustrates the problem:
    Uncheck the Preferences setting mentioned above.
    Open up a few Finder windows.
    Open up a few Terminal windows.
    In the Terminal Preferences, disable everything related to Window Groups.
    Do a Logout or a Restart. Uncheck Reopen windows when logging back in.
    Relog in.
    Open one Terminal window.
    After step 6, all of the Finder windows which were previously open before Logout or Restart will also reopen.
    After step 7, all of the Terminal windows which were previously open before Logout or Restart will reopen, in addition to the single Terminal window which is manually opened after login.
    The only way I can prevent this from happening to Terminal is to add the following two lines right before the final </dict> tag in /Applications/Utilities/Terminal.app/Contents/Info.plist:
    <key>LSUIElement</key>
    <string>1</string>
    However, this has the undesirable side-effect of not showing anything about Terminal in the menu bar or the dock.
    None of this used to happen in Snow Leopard, Leopard, or Tiger. Does anyone know how I can disable this unwanted window-opening-after-relogin behavior in Lion?
    Thanks in advance.

    To urabus. Thank you for your reply. Unfortunately, this is does not work for me. Furthermore, even if it did work the way you said, it would not be a viable alternative for me.
    When I hold down the Option key and select the Terminal menu, I see this: Quit and Keep Windows, not Quit and Discard Windows. If I let go of the Option key, this menu entry changes to simply Quit Terminal. Therefore, I don't even have the option to quit and discard my windows.
    As I mentioned, however, even if I had the option you mention, it is not desirable for me. When I restart, I want the OS to properly close all my open windows in the same way that it did in Snow Leopard, Leopard, and Tiger. It is not desirable for me to have to manually close some or all of my apps in a special way before restart, simply to cause them to behave the way that un-checking Restore windows when quitting and re-opening apps is supposed to control.
    Here is one reason (out of several), for why I don't want this auto-reopen-windows-on-restart "feature": some of my Terminal windows run ssh sessions to remote sites. It is a Bad Thing for these ssh sessions to be auto-restored after Restart, without my having to specificially initiate these sessions.
    IMHO, Apple should offer an alternative to this undesirable behavior. For example, during the shutdown procedure which is part of a Restart, we are asked if we want to kill any open Terminal windows. The "Quit and Discard Windows" option could be offered at that point ... but it isn't.
    Furthermore, as I mentioned above, this unwanted behavior also occurs in Finder.
    Is there any option that I can set in my system or in the defaults for com.apple.Terminal and com.apple.Finder which would force an automatic "Quit and Discard Windows" on restart or re-login?
    Updated to add second paragraph which explains how hitting the Option key when selecting the Terminal menu does not work.

  • I downloaded the latest important update to windows vista yesterday, and since then Firefox crashes very soon after enetering the portal of any website I visit, and I want to know if the windows vista update could be doing this?

    Yesterday (23rd March) my computer appeared to perform an auto update of windows vista and since then every time time use firefox it crashes shortly after entering a web portal (after about 1-5 seconds). It even crashes on the BBC news page which I always use to check stability. I have been using Firefox for years and it has just started doing this. However, I examined the programme files and actaully cannot see a windows vista update for yesterday, but I can see that there was a Firefox update, so now I'm a bit confused. Looking at the program files in more details it appears that there was a very major update of Firefox taking place including lots of file extensions. You should also know that your password recovery process doesn't work. I never got the email that is supposed to help me recover a lost password. I am really disappointed with Firefox doing this. It's costing me time and money. Can you help before I give up and go back to using Windows explorer (ugh!). I have thought of simply removing Firefox and starting again with a new download but that might not solve the probelm and I will lose my bookmarks.

    I have an update to my message posted yesterday regarding Firefox crash after vista update. Today it got worse when Firefox wouldn't open at all and Windows explorer also stopped working. Curiously, email was still working, and when I checked another (little used) account on the same PC, I got a perfect connection with Firefox and Explorer. I had to conclude that the latest updates of Vista have interacted with some application only found in my main account on the PC. I tried opening Firefox in its safe mode and I tried opening explorer without Plug ins, but neither worked. Finally I decided the only answer was to do a system restore and wind back the windows software to where it was before the problem. I now have Firefox and explorer restored to working order, but I still don't understand why, because I got a message saying the system restore hasn't worked. Full Comprehension of the cause is beyond my capability, but through trial and error as described above I seem to have fixed it. The suspect vista updates are KB2505189 , and KB2524375.

  • I have the latest itunes version on windows 8.1 and it's stuck on stage 2 of 8

    Hi.  I have latest version of itunes and have uninstalled and reinstalled twice but it keeps getting stuck at stage 2 of back up.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    You need to use the 64-bit installer for 64-bit Windows, but the main iTunes application is 32-bit.
    tt2

  • I tried to install the latest itunes on my Windows 8 computer and it is not responding. Nothing happens.

    I got an HP computer with Windows 8 already loaded on it. I have tried unsuccessfully for months to put itunes on this computer. I try and then give up. All I am able to get is a non-responsive program. Just a white screen with a blue spinning circle. I have tried several suggestions - run in administrator mode, try changing the compatibility, but am lost and frustrated. I am not very technologically savvy, so please help!

    Hello cnitz,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Start iTunes in Safe Mode
    Open iTunes in Safe Mode to isolate any interference from plug-ins or scripts not manufactured by Apple.
    Hold down Shift–Control while opening iTunes. You should see a dialog that says "iTunes is running in safe mode" before iTunes finishes starting up.
    Click Continue.
    See if the issue you're experiencing persists in Safe Mode.
    Best of luck,
    Mario

  • I want to copy the contents of an active window i LabView and paste that into a Word document programatically

    I am developing an analyse program which produces a large number of results and graphs for each file. These results are presented in different windows one at a time.
    It is possible to programmatically generate these windows and print each window before generating the next one. I would like, however, to be able to generate one window, copy it to the clipboard (Alt+Printscreen), (this function is available through knowledgebase), and then paste the contents of the clipboard into a word document. This second step is the problem. By this way a large number of analyses can be done and all the results and graphs will be copied to one Word document
    for later study.
    Has anyone any idea how to do this?

    You can use ActiveX to paste anything that is in the clipboard into a word document, just follow the logical flow, application, documents, add, paragraph, last, range and paste using property nodes.
    Hope this helps

  • Which register cleaner or tune up software is the best to use for windows vista,windows 7 and windows 8.1 as professional?

    hi,
    I like to know wich register cleaner or tune up software is the best to use for windows vista- windows7- and windows 8.1.
    I like to know the proffesional  version of it which I can use for my clients  every where  unlimitted to clean unwanted keys  of registry and improve performance.(specialy in Dutch language).
    thanks
    johan
    h.david

    I second what Kate Li said.  There's no need for a registry cleaner!  Don't do it! I run Windows systems for years and they keep running as light and fast as when they're new.
    What I *do* recommend is regularly reviewing the list of programs set to run in the background using a tool to show you what starts in various ways called Autoruns, which can be found here:
    http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
    This tool can be used to disable things you don't need.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

  • My iMac loses connection to the keyboard/mouse while installing Windows 7 on Bootcamp

    I have used bootcamp assistant to install windows 7 on my brand new iMac.  I used a flash stick to install the Windows OS.
    When I rebooted the system, the iMac gave me an error message that it couldn't find a bootable disk and it asked for a bootable disk to be connected and to press any key.  I did press a key, but it did not respond.  I found later that both my usb keyboard and usb mouse don't have power.
    I manually restarted and used pressed the option key to select the flash stick as my bootable device.  It loaded and started to boot and load windows to the point it presented me with a screen to select the language etc.  They key board and mouse seesed to work. I couldnt type nor move the mouse.
    I tried again using the Bluetooth keyboard and mouse but I got the same problem.
    Is my iMac broken?  Or did I do something wrong.
    I have installed the latest version of mavericks and installed all the updates.
    Please help.
    Thanks.
    Tareq

    I called the local seller who sold me the iMac regarding this problem.  He confirmed that they had many problems with the latest iMac (Late 2013) Windows 7 installation and recommended that I install Windows 8 instead.
    I am not excited about Windows 8 as I need to buy a new license and get used to a new interface.
    I downloaded a fresh copy of Windows 8 (without a license of course) just to test that.  I repeated the who process.  I am glad to report that I was able to get past the first screen to select language and local setting and was able to use the mouse and keyboard.  I stopped on the second screen where it prompted me to enter the license number.
    My concern is that I go and buy a Windows 8 license to find that it will not install as well.  Any suggestions?
    Why Can't I install Windows 7 on this iMac (latest 2013)?  Has anyone else face the same problem?  is there any solution?
    Any ideas?
    Tareg

  • When I minimize a window in INDD and then open a new file, my minimized window pops back up. How do I keep it minimized?

    When I minimize a window in INDD and then open a new file, my minimized window pops back up. How do I keep it minimized?

    amandaecarroll wrote:
    How do I keep it minimized?
    Actually, I suspect you can't. You get various behaviors based on a combination of settings in Preferences > Interface; namely Open Documents as Tabs and Enable Floating Document Window Docking; but it doesn't seem to make much sense as far as I can tell. Throw in the additional "application frame" wildcard on a Mac, and even just exploring the effects of the settings and drawing conclusions about them gets tricky. It sounds like you've got your windows floating, whereas I suspect many if not most users have opted for the more structured and seemingly more logical tabbed/docked method, in which case they haven't encountered your issue and don't really understand it. One might ask; if your new/current document is "in front" then what difference does it make if others behind it are minimized, maximized, or something in between?

  • Windows 8.1 and AMD radeon HD 6700m switchable graphics on HP pavilion dv7

    Hello all
    First would like to give positive feedback because my former problem was solved here but this thing appears again.
    I have HP pavilion dv 7
    i7 -2670QM (2.20ghz)
    (8 GB Ram)
    Windows 8.1
    So my problem is with the switchable graphic as it is stated in the subject.
    I had windows 7 previously and I had no problems with switchable graphics-
    When I bought licenced win 8 the problems started and are continuing in my 8.1 upgrade.
    I tried several thing, from turning off switchable mode in BIOS, turn it off in win desktop, uninstalling drivers or blocking drivers and it still doesn't help
    It's a shame that with a computer like this I can't play a bit better games that I was able to when I had win7.
    The main problem is that when the game instals it checks your computer and tell you if it's ok or not-and everytime I get that I have intel HD3000 graphics. and not AMD radeon hd 6700m graphic card.
    Can anybody tells me how to fix this thing? I don't have any problems in display adapter-all drivers are good to go, i have the latest amd catalyst software.
    It would be a shame to buy win 8 if 7 was good and better working on this issue.
    Thank you for help

    Hello again GregaSlo,
    It is good to hear from you again!
    To prevent your system from crashing, and gain access to your fingerprint reader, I recommend performing a backup and recovery of your system's operating system. This can be done by following this document on Backing Up Your Files (Windows 7), as well as Performing an HP system recovery (Windows 7). This should help recover your system back to factory defaults.
    If the issue persists, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    I hope this helps!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for

  • How can I view just music - not videos - in the libary and playlists?

    I've noticed that when creating smart playlists and viewing the libarary I cannot filter out videos... is there a way to do this without having to just uncheck the videos and pretend they aren't there or is this something that apple didn't think of?

  • ITunes Rating Stars Not Solid.

    I've noticed from time-to-time that my rating stars seem to be hollow and no longer solid. What does this happen?

  • Delete database in unix

    Hi, We have a database DEVDB1 and We do not need it anymore. I want to delete it and all the files related to it. Is there a process to follow or a command line to do it? aside from using OUI deinstall? because i can not run gui windows. Can I just r

  • How to place toggle buttons in webui

    Hello, How to add toggle buttons in webui. I kept three button for status in quotation as open inprocess and completed. But problem with button is we are unable to find in which status the quotation is. so I want place toggle buttons instead of butto

  • J2EE is not starting up

    Deployed kernel and IGS through JSPM without any error but the J2EE engine is not starting up automatically at the end and ask to see the file START_SERVICE_00null_01 START_SERVICE_00null_01: service start pending Current state 2 Exit code 0 wait poi