New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

How to get the contents displayed inside MAC Native Dialog into a Java componet/Image

Post Reply New Thread Subscribe

Thread Tools

Member Since: Nov 26, 2009
Posts: 1
vijay.kachhawal is on a distinguished road

vijay.kachhawal is offline
Hi All,

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,
QUOTE Thanks

Post Reply New Thread Subscribe

« QT Framework precompilation with XCode | itunes database »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Mac Songs The mac 13 Switcher Hangout 7 05-06-2010 12:35 AM
Disillusioned Mac desigener switches to Windows mogwai Schweb's Lounge 21 05-11-2006 02:05 PM
JAVA 1.4.2 on MAC OS 10.2 ChrisKnox OS X - Operating System 0 09-23-2003 04:21 PM
contents of retailed boxed Mac OS X 10.2 kjm Schweb's Lounge 5 07-31-2003 01:46 AM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 09:03 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?