[Kde-java] java panels in native QT application?

Anders Norgaard biehl at binf.ku.dk
Mon Jan 16 16:54:37 CET 2006


On 1/16/06, Sandor Brockhauser <brockhauser at embl-grenoble.fr> wrote:
> Hi,

Hi Sandor,

I am no expert on KDEJAVA - so I'm just telling you what my
understanding of the situation is.


KDE java and QT java are (now at least) java classes that mirror the
api of KDE and QT classes. When you call methods on the java classes
the call is passed on via JNI to the "real" QT/KDE library.
There is no connection between the QT/KDE java classes and the SWING API.

>
> I would like to integrate my java (swing) panels into an existing Qt
> application.
> As far as I see, KDEJAVA can be used to build nativ Qt guis in java, but
> (for my curiosity:)
> Can it be also used for integrating Qt widgets (even a basic canvas)
> into a swing (or awt/swt) application?

I'd say no. As none of the QT/KDE java classes have the type
JComponent or whatever the class you can add to swing apps is called.

> Would you have any suggestion how to integrate my existing java (swing)
> panels into my separate Qt application?

I think that the easiest by far would be to "port", that is rewrite,
one of the applications. Either write new QT panels in stead of the
swing ones you have. Or write a swing application and then integrate
your swing panels. The api's are not that different, so if you have a
basic design,  you won't need to change much.

Hope I am of help, and that I dont misguide you,
Anders


>
> Thank you,
> Sandor
>
> _______________________________________________
> Kde-java mailing list
> Kde-java at kde.org
> https://mail.kde.org/mailman/listinfo/kde-java
>


More information about the Kde-java mailing list