11-26-2009, 10:17 AM #1
How to get the contents displayed inside MAC Native Dialog into a Java componet/Image
- Member Since
- Nov 26, 2009
I am working on a java application which communicates with C++ dynamic
library. The library returns the output (in the form of textual & Picture information)
on a native MAC dialog (DialogPtr -- An opaque type that represents a dialog in MAC) which I am creating using "Resorcerer" software for
MAC. The library is purely developed using C++.
My requirement is to get the native dialog output on any of the Java
component (JPanel or JFrame etc).
The similar C++ library also exists in my project for Windows OS. We are using VC++ for reading the DLL. The library is written in the similar fashion for Windows OS also. For Windows, we are passing
CImage.getDC() : CImage is an Image class similar as BufferedImage for java. "getDC()" method returns the Handler for Device Contenxt (HDC).
By passing the above value, we are able to get the whole information of Native Dialog onto the CImage object and then we are displaying the CImage on a MFC dialog.
This is the reason, I am looking for similar solution for MAC C++ Library. This library is also drawing the information using HDC (representing CGraphPtr for MAC) on the Native Dialog.
Is there any way to get that information on any of the java component/image object?
Is there any way to map the native dialog to any of the Java AWT/swing
component directly on MAC?
Or is it possible to get the information which is displaying inside the
native dialog to be directly displayed on JPanel?
Or can we import the content of native dialog on some java Image object so
that I can draw that image on a JPanel?
Any workaround/help in this regard will be of great help for me.
Provide me any links/URLs which I can go through to solve this issue.
Thanks & Regards,
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By EspeShine in forum OS X - Apps and GamesReplies: 0Last Post: 06-07-2011, 09:31 PM
By macman4hire in forum OS X - Operating SystemReplies: 1Last Post: 03-15-2011, 12:41 PM
By mostlylost in forum Apple DesktopsReplies: 0Last Post: 11-18-2009, 04:27 PM
By zimbu1234 in forum Apple NotebooksReplies: 2Last Post: 02-22-2009, 09:55 PM
By Rakham in forum iPod Hardware and AccessoriesReplies: 0Last Post: 09-19-2007, 10:18 PM