How do I get access to the parent window native pointer?

Under Windows:
I need to get access to the native pointer for an applications frame (in this case a JFrame).
I need to do this because I want to display property pages in a native dialog box. These property pages are supplied by driver software, are themselves native, and require a valid CWnd handle in order to become active and therefore visible.
Hence I need access to the native peer. Is there a way to do this?

ok andrew, when i compile the given code i receive the following errors:
hwndex.java:19: cannot resolve symbol
symbol  : class DrawingSurfaceInfo
location: class HwndEx
      DrawingSurfaceInfo drawingSurfaceInfo =
      ^
hwndex.java:20: cannot resolve symbol
symbol  : class DrawingSurface
location: class HwndEx
         ((DrawingSurface) comp.getPeer()).getDrawingSurfaceInfo();
           ^
hwndex.java:20: warning: getPeer() in java.awt.Component has been deprecated
         ((DrawingSurface) comp.getPeer()).getDrawingSurfaceInfo();
                               ^
hwndex.java:24: cannot resolve symbol
symbol  : class Win32DrawingSurface
location: class HwndEx
         Win32DrawingSurface win32DrawingSurface =
         ^
hwndex.java:25: cannot resolve symbol
symbol  : class Win32DrawingSurface
location: class HwndEx
               (Win32DrawingSurface) drawingSurfaceInfo.getSurface();
                ^
4 errors
1 warningand i consulted the document for "getPeer()" and there it is said that "getPeer()" method has been deprecated since JDK 1.1 so how can one use the above code. please give the code in more appropriate way.

Similar Messages

  • How do I get rid of the adjust window in iphoto.  It is stuck there and it won't go away.

    How do I get rid of the 'adjust' window on my photo.  I click on the x and it does nothing.  Is it hung?  I thought apple didn't hang.

    Close iPhoto and do the following: make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • How do we get access to the new 9.6 workspace?

            Hi,
    I'm part of EAP for a will now and I was able to get any new release until 9.6.
    I understand that this release will be part of a new workspace to still get feedback on 9.2
    How do we get access to 9.6 workspace and download?
    thanks,
    Fred          

    I have access now,
    thanks for your speed ... I was dreaming of this version
    Fred

  • How do I get rid of the subscriptions window on my iPad

    my version is 8.1.2 (12B440)
    how can I get rid of the history, shared links, reading list that is always showing

    You can turn it off via Settings > General > Passcode Lock

  • I am having trouble with the firefox security question it keeps asking me for a pass word. I dont remember entering any and none of my passwords will clear it. How do I find out what my pssw was and how do I get rid of the security window?

    the security window pops up everytime we try to do anything. I didnt set up this security window and have no idea what the password might be. How do I rid myself of this window the security isnt needed

    Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • How do I get rid of the Photoshop window my files are docked into?

    all files opened in Photoshop CC are 'docked' or nested in window called' Photoshop Window"? How do I break the relationship, so my files are independent from that window?
    Mind you, 'Float in Window' option is NOT gonna cut it because while seemingly independent, when the 'Photoshop Window' is closed - ALL my documents close as well. Can you help?

    In CS6 is at the bottom so most people miss cause they think alphabetically like me. Though at all possible CC did something with this.

  • How to I get access to the Captivate object in javascript within an HTML file?

    I'm still struggling with this and would really appreciate any help/guidance you can .
    here's what I've got right now:
    var g_bIsInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
    document.write("<P><H1> g_bIsInternetExplorer=" + g_bIsInternetExplorer + "</H1></P>");
    document.write("<P><H1> setting objCP....</H1></P>");
    var objCp = g_bIsInternetExplorer ? Captivate : document.Captivate;
    document.write("<P><H1> set objCP....</H1></P>");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    document.write("<P><H1> description=" + description + "</H1></P>");
    I've published the captivate project.. I then launch it and then launch the html file that has this code in it
    It does everyting up thru and including line 3
    But it seems to fail on line 4..
    Any ideas /suggestions?
    Thanks in advance.

    Hey Jim - thank you thank you thank you
    Here's what was up with my code:
    This worked:
    alert("about to set objCP...");
    var objCp = document.Captivate;
    alert("completed setting of objCP, about to set get cpInfoDescription...");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    alert("description=" + description);
    This did NOT work:
    document.write("<P><H1> AT BEGINNING </H1></P>");
    alert("about to set objCP...");
    var objCp = document.Captivate;
    alert("completed setting of objCP, about to set get cpInfoDescription...");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    alert("description=" + description);
    ====
    I'm guessing the 2nd didn't work because i tried to get the captivate object AFTER the script wrote something to an HTML file.  I'm ultimately trying to get Captivate to generate a report for the user to report out what they did in response to the various quiz questions in the course (in HTML in table).   I've posted a query on how to do this here: http://forums.adobe.com/message/5120417#5120417
    Any chance you could take a look at this posting and let me know your thoughts on how best to do this .. It seems like this would be a fairly common thing to do .. It comes stock in Articulate Storyline (through their 'Report.HTML') but I haven't found a comparable one in Captivate.
    Thanks again!
    tom.

  • How do I get access to the SODIMM memory slots on a Pavilion Sleekbook 14-b010us? (Under Keyboard?)

    I think the memory slots are located on the motherboard under the keyboard, but I don't know how to release the keyboard once the designated screws are released. Any tips would be appreciated.
    This question was solved.
    View Solution.

    Hi:
    Below is the link to the service manual for your notebook.
    http://h10032.www1.hp.com/ctg/Manual/c03590565.pdf
    Please refer to chapter 4, pages 39 - 42 for info on how to remove the keyboard.
    Looks to me that there is a lot more involved to install memory than just removing the keyboard. 

  • I have an 8GB Ipod Touch 2nd Gen.  The apps I already purchased don't seem to work anymore and when I go to re-install, I can't because it says I need a software update.  How can I get access to the apps that I purchased?

    Due to having a gen 2 Ipod, I can't download any apps from the app store.  Plus, many of my previously downloaded apps (that I bought) aren't working...so I can't even re-download them since I still have 4.2.1.  HELP!!!  Rediculous that I can't use apps I paid for on the same device that I purchased them on. 
    <Edited by Host>

    A 2G iPod can only go as high as 4.2.1
    Many developers when they updated their apps to support iOS 5 and 6 dropped compatibility for iOS 4.2.1 and earlier.
    Your only way is if you have the version that was compatible on your computer such as in the recycle bin/trash or in a computer file backup. In that case delete the current version that is in your iTunes App library and replace it with the older version. Then sync.

  • When a I open a pdf in firefox, one window opens (empty all white) and then the proper pdf. Then I have to close two windows. How do I get rid of the empty window?

    As above.

    Hello Tyler, I am trying to get rid of this page because I would like to go staight to google.

  • I'm using Ubuntu 11.04 The firefox menu-bar is on the top of the screen - how can I get it into the firefox window?

    Maybe I'm an idiot - this does seem a very simple issue. I can right click on the tab bar and check things like Navigation Bar, or Add-on bar and they all work fine - but the menu bar is stuck on the top of the screen and appears when I role over it. However, sometimes when firefox is automatically opened by some other application (LibreOffice) it comes up in a window with menu-bar onboard. I'm sorry if this is so obvious to everybody else - but it is irritating to me

    Try hitting '''F11'''.

  • How to get access to the HTTP-Manager Tomcat ?

    How to get access to the HTT-Manager Tomcat ?
    Whe i do:
    http://localhost:8080 - i have access to the Kablink.
    How i can get access to the Tomcat Manager ??
    Serg

    Originally Posted by skoltogyan
    How to get access to the HTT-Manager Tomcat ?
    Whe i do:
    http://localhost:8080 - i have access to the Kablink.
    How i can get access to the Tomcat Manager ??
    Serg
    Hey Serg,
    I don't think that's possible with the tomcat config that is supplied with Vibe.
    You might get a better answer in the community space for Vibe/Kablink at vibe.novell.com, direct link being atm: https://vibe.novell.com/ssf/a/do?p_n...beonprem_url=1
    Cheers,
    Willem

  • How do I get access to recent Creative cloud offer  re Kelby one

    How do I get access to the recent Offer re Kelby One?  I paid for a year subscription to Creative Cloud and it said there was an offer of three moths access

    There are no serials. Refer to this:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Mylenium

  • How do you get access to window?

    When you do a typical System.out.print-whatever it prints a stream of text onto that default java window which popped up when you executed your program. My question is, how do you get access to this particular window, so you can resize it, clear it, or put text in specific locations instead of at the end of a buffer... any tips will be appreciated. thanks

    hmm so there is no way to do anything special to that dos-like window except append text to it? Is there a way at least to remove text from it? (sorta like printing dots and then removing them?)

  • How to create a Child Window without closing the parent Window

    Hi All,
    I have a requirement to create a child window without closing the parent window. I have to click an item in the parent window, then one child window should get open. The parent window should not be closed before closing the child window.
    Kindly help me in this.
    Thanks and Regards,
    Myvizhi

    Hi All,
    I found the solution for this. I have created a new page. Then i created an item as link item style in the parent page and i have set the following properties in the Link item:
    Destination URI : OA.jsp?page=/seagate/oracle/apps/seasoa/que/webui/SeaSoaHeaderDetailPG&headerId={@ErrHeaderId}&retainAM=Y&addBreadCrumb=Y&backPage=S
    Target Frame     : _blank
    This is opening the new child window without closing the parent window.
    Thanks and Regards,
    Myvizhi

Maybe you are looking for

  • Virtual Catalogs in 10g database

    I have heard that you need an 11g catalog to use virtual catalogs. I have also heard that it's possible to run an 11g catalog from a 10g database. Is there a way to create the 11g catalog on a 10g database directly, or do I need to make it in an 11g

  • How to use url to open report and refresh report's data,but the report's toolbar haven't "refresh data" button

    Post Author: madbird CA Forum: WebIntelligence Reporting HI, scenario is I hope use url to open the report,and refresh the report data,but I didn't the user use the "refresh data" button to refresh the report's data.How to do that? regards

  • How to Recreate DashboardBuilder IMT Analytics for Use in BI workspaces 4.x

    Hi, With the conversion of the SAP BusinessObjects Dashboard Builder product to SAP BusinessObjects BI workspaces, support for the universal-based visualization analytics was removed. The list of available analytics was eliminated from the module lib

  • SB600 RAID 0 on SATA 1 & 2 with a DVD SATA on SATA 4?

    Can I have my 2 HD's connected to SATA 1 & 2 (SB600) in a RAID 0 config and also have my DVD on the SB600 (say on SATA 4)?  When I try, I no longer see the DVD reported and can't make it a boot device (which I need). Based on some reviews, it looked

  • PDF to Binary

    Hi, I create a Adobe Interactive Form, I need to display this PDF in SAP portal, then I need to develop a RFC to return this PDF file, I read in other post that the way is to convert de PDF to binary file a return this binary file like a paremeter in