This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Gtk peer access with CNI


>>>>> "Sandor" == Sandor Bodo-Merle <sbodomerle@gmail.com> writes:

Sandor> can someone point me how to access the GtkWidget of a peer
Sandor> component from a native method?  I figured it out how to do
Sandor> this via JNI but i cant see how to do it with CNI.  I
Sandor> appreciate any hints.

You could do it pretty much the same way, I think.  Just access the
private fields of the peers.  But, I would recommend against it.

This isn't supported, and will probably break.  For one thing we are
most likely going to BC-compile AWT, Swing, and the peers, and CNI and
BC don't really work that well together (yet).

There is also the 'libjawt' stuff; this is a portable way to access
the underlying rendering surface of the awt peers.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]