Linked by Eugenia Loli on Fri 7th Dec 2007 06:25 UTC, submitted by poundsmack
Qt Jambi ships as a single Java library, or JAR (Java Archive) file, plus a handful of tools, including an interface layout and design tool, and an Eclipse plug-in. Trolltech uses its vaunted Qt C++ library as the GUI engine and puts Java wrappers around it. This approach uses the JNI (Java Native Interface) to call the necessary functions from Java. More here.
Thread beginning with comment 289404
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[7]: Unconvinced
by mikeurbandz on Fri 7th Dec 2007 20:47 UTC in reply to "RE[6]: Unconvinced"
mikeurbandz
Member since:
2007-10-29

> Can I develop a Gnome application in Java where I
> can create a Gnome control panel applet? No.

Um.. Yes, actually, you can.

> Can I create a Gnome system tray applet using Java?
> No.

Um... Wrong again. Yes you can.

> Do Swing applications adopt the right look and feel
> of the Gnome environment? No.

You are batting a thousand here. Cause you are wrong again.

Both of your first things can be accomplished with something called JDIC, Java Desktop Integration Components, which are a part of SwingX, and are scheduled to be included in the actual Java distribution soon.

As for the third one, Java 6_01 and later pick up the GNOME loon and feel just fine. So well, that you almost certainly wouldn't be able to tell the difference.

You really should get your facts straight about Java before you post this kind of stuff. It's clear you haven't used Java to do any desktop development in at least a couple of years.

Of course, you can also use the Java GNOME bindings. So not only can you do everything you claimed can't be done in Java. But there is more than one way you can do it in Java.

Edited 2007-12-07 20:52

Reply Parent Score: 2

RE[8]: Unconvinced
by segedunum on Fri 7th Dec 2007 21:12 in reply to "RE[7]: Unconvinced"
segedunum Member since:
2005-07-06

Um.. Yes, actually, you can.

Oh right. So I can open Netbeans or Eclipse or whatever, create a new project called 'Gnome Control Panel Applet' and it will give me a Gnome Control Panel Applet project with the UI designer and all the boiler plate code required?

Um... Wrong again. Yes you can.

Oh right. So I can open Netbeans or Eclipse or whatever, create a new project called 'Gnome System Tray Applet' and it will give me a Gnome System Tray Applet project with the UI designer and all the boiler plate code required?

Oh, and I can write all the Gnome Control Panel and System Tray Applet code completely in Java?

As for the third one, Java 6_01 and later pick up the GNOME loon and feel just fine. So well, that you almost certainly wouldn't be able to tell the difference.

1. It's taken them ten years to get anywhere near it.

2. They're not Java Gnome applications, and you're not using any of the desktop environment at all. They are Java applications with some inherited look and feel, which isn't hard to do. Creating an application or applet on the 'Java Desktop System' goes a whole lot deeper than that.

3. I haven't seen a Java 6 app yet.

You really should get your facts straight about Java before you post this kind of stuff.

No, you just don't understand what I'm talking about.

Of course, you can also use the Java GNOME bindings. So not only can you do everything you claimed can't be done in Java. But there is more than one way you can do it in Java.

So for the first couple of points in this comment, you're confirming they're both a no then?

Edited 2007-12-07 21:13

Reply Parent Score: 4

RE[9]: Unconvinced
by mikeurbandz on Fri 7th Dec 2007 21:25 in reply to "RE[8]: Unconvinced"
mikeurbandz Member since:
2007-10-29

> Oh right. So I can open Netbeans or Eclipse
> or whatever, create a new project called 'Gnome
> Control...

You are backpeddling and trying to change your requirements now though. You never said "Can I open my IDE and create it having a ready made framework for me". You flat out said it couldn't be done. And it CAN be done.

And actually, if you wanted to write a plugin for NetBeans or Eclipse that had support for that project type, you could even do it the way you want. Select "GNOME panel applet" as the project type and then just fill in the blanks.

> 1. It's taken them ten years to get anywhere near
> it.

So? You are changing your story again. You never said "it took to long to get there" you said "It can't be done". And you were wrong. That's all there is to it. You were wrong.

> They are Java applications with some inherited
> look and feel, which isn't hard to do. Creating
> an application or applet on the 'Java Desktop
> System' goes a whole lot deeper than that.

I know it does. And that is where JDIC comes in. JDIC IS using the native desktop environment. That's the point of JDIC.

> No, you just don't understand what I'm talking
> about.

Yes, I do understand what you are talking about. But you haven't ever heard of JDIC. That much is obvious. Because you are making technical claims about it now that aren't correct. JDIC DOES use the native desktop environment. That is why you are able to write GNOME panel applets and such using it.

> So for the first couple of points in this
> comment, you're confirming they're both a no then?

No. I am saying YES. And I am telling you that you are the one who doesn't understand. Not me. JDIC != Swing L&F emulation. JDIC is a different animal altogether, that actually does integrate with the native desktop environment to allow to to write things like panel applets in Swing that you could not otherwise write using just straight Swing.

Edited 2007-12-07 21:30

Reply Parent Score: 2

RE[9]: Unconvinced
by anda_skoa on Fri 7th Dec 2007 21:51 in reply to "RE[8]: Unconvinced"
anda_skoa Member since:
2005-07-07

Oh right. So I can open Netbeans or Eclipse or whatever, create a new project called 'Gnome System Tray Applet' and it will give me a Gnome System Tray Applet project with the UI designer and all the boiler plate code required?


Basically yes, because system tray does not have applets, but rather embeds windows created by another application using Xembed.

Thus a "system tray applet" is any application which has a system tray window component and Java can do those.

Reply Parent Score: 2