java-gnome-developer Mailing List for The java-gnome language bindings project (Page 2)
Brought to you by:
afcowie
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(37) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(2) |
Feb
(20) |
Mar
(20) |
Apr
(8) |
May
|
Jun
(1) |
Jul
(6) |
Aug
(39) |
Sep
(37) |
Oct
(34) |
Nov
(50) |
Dec
(22) |
2002 |
Jan
(7) |
Feb
(13) |
Mar
(32) |
Apr
(16) |
May
(26) |
Jun
(20) |
Jul
(32) |
Aug
(7) |
Sep
(2) |
Oct
(11) |
Nov
(3) |
Dec
(35) |
2003 |
Jan
(11) |
Feb
(3) |
Mar
(8) |
Apr
(3) |
May
(11) |
Jun
(20) |
Jul
(11) |
Aug
(29) |
Sep
(13) |
Oct
(91) |
Nov
(185) |
Dec
(207) |
2004 |
Jan
(108) |
Feb
(171) |
Mar
(207) |
Apr
(113) |
May
(22) |
Jun
(53) |
Jul
(69) |
Aug
(43) |
Sep
(34) |
Oct
(182) |
Nov
(101) |
Dec
(61) |
2005 |
Jan
(86) |
Feb
(45) |
Mar
(106) |
Apr
(67) |
May
(70) |
Jun
(47) |
Jul
(19) |
Aug
(34) |
Sep
(24) |
Oct
(45) |
Nov
(20) |
Dec
(58) |
2006 |
Jan
(21) |
Feb
(21) |
Mar
(16) |
Apr
(24) |
May
(24) |
Jun
(47) |
Jul
(20) |
Aug
(8) |
Sep
(13) |
Oct
(7) |
Nov
(23) |
Dec
(2) |
2007 |
Jan
|
Feb
(14) |
Mar
(3) |
Apr
(11) |
May
(1) |
Jun
(15) |
Jul
(2) |
Aug
(5) |
Sep
(10) |
Oct
(5) |
Nov
(1) |
Dec
|
2008 |
Jan
|
Feb
(13) |
Mar
(13) |
Apr
(4) |
May
(2) |
Jun
(1) |
Jul
(5) |
Aug
(7) |
Sep
(2) |
Oct
(14) |
Nov
(11) |
Dec
(12) |
2009 |
Jan
(30) |
Feb
(4) |
Mar
(16) |
Apr
(9) |
May
(9) |
Jun
(7) |
Jul
(6) |
Aug
(3) |
Sep
(14) |
Oct
(8) |
Nov
(12) |
Dec
(9) |
2010 |
Jan
(4) |
Feb
(27) |
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(13) |
Jul
(6) |
Aug
(15) |
Sep
(15) |
Oct
(12) |
Nov
(11) |
Dec
(9) |
2011 |
Jan
(12) |
Feb
(11) |
Mar
|
Apr
(3) |
May
|
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(8) |
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
(10) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
(2) |
Sep
(7) |
Oct
(7) |
Nov
|
Dec
(4) |
2013 |
Jan
(8) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(3) |
Jun
(3) |
Jul
(16) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2014 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Johan G. <joh...@gm...> - 2013-07-21 08:26:26
|
On 21/07/13 02:20, Andrew Cowie wrote: > On Sat, 2013-07-20 at 00:38 +0100, Johan Groth wrote: >> Hi, >> I've just installed libjava-gnome-java on a Ubuntu 13.04 box (only >> Linux dist I've got available). Fired up Eclipse Juno, added the >> library to my project (and the docs of course) and tried to run it but >> I'm getting an exception! What is going on here? > >> Exception in thread "main" java.lang.ExceptionInInitializerError >> at org.gnome.gtk.Gtk.init(Gtk.java:95) > This is bizarre. > >> Caused by: java.lang.NullPointerException >> at >> org.freedesktop.bindings.Plumbing.loadNativeCode(Plumbing.java:192) >> at org.freedesktop.bindings.Plumbing.<clinit>(Plumbing.java:110) >> ... 2 more > Ok, that's more interesting. > > This means the code at line 191 returned null. [which is why I'm so > particular about not chaining method calls]. So ProtectionDomain's > getCodeSource() is returning null. That's annoying; . It doesn't here. > > What version of Java are you using? And, can you describe how you're > running the program (from within Eclipse? from the command line?). I'm running it from within Eclipse and using java7. Same code running from within Netbeans 7.3. DANGER: (null)-WARNING, Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-OZp7FBDLKz: Connection refused Exception in thread "main" org.gnome.glib.FatalError: (null)-WARNING Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-OZp7FBDLKz: Connection refused at org.gnome.gtk.GtkMain.gtk_init(Native Method) at org.gnome.gtk.GtkMain.init(GtkMain.java:54) at org.gnome.gtk.Gtk.init(Gtk.java:95) at uk.org.linuxgrotto.ui.DesktopFileEditor.main(DesktopFileEditor.java:15) Java Result: 1 java version "1.7.0_25" OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) Regards, Johan |
From: Andrew C. <an...@op...> - 2013-07-21 01:36:39
|
On Sat, 2013-07-20 at 00:38 +0100, Johan Groth wrote: > Hi, > I've just installed libjava-gnome-java on a Ubuntu 13.04 box (only > Linux dist I've got available). Fired up Eclipse Juno, added the > library to my project (and the docs of course) and tried to run it but > I'm getting an exception! What is going on here? > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.gnome.gtk.Gtk.init(Gtk.java:95) This is bizarre. > Caused by: java.lang.NullPointerException > at > org.freedesktop.bindings.Plumbing.loadNativeCode(Plumbing.java:192) > at org.freedesktop.bindings.Plumbing.<clinit>(Plumbing.java:110) > ... 2 more Ok, that's more interesting. This means the code at line 191 returned null. [which is why I'm so particular about not chaining method calls]. So ProtectionDomain's getCodeSource() is returning null. That's annoying; . It doesn't here. What version of Java are you using? And, can you describe how you're running the program (from within Eclipse? from the command line?). AfC Sydney |
From: Johan G. <joh...@gm...> - 2013-07-20 15:24:48
|
On 20/07/13 13:37, Guillaume Mazoyer wrote: > Hi, > > 2013/7/20 Johan Groth <joh...@gm...>: >> I've just installed libjava-gnome-java on a Ubuntu 13.04 box (only Linux > Do you have libjava-gnome-jni installed too? I do indeed. $ ll /usr/lib/lib*jni* lrwxrwxrwx 1 root root 22 Jul 19 22:53 /usr/lib/libgtkjni-4.1.2.so -> jni/libgtkjni-4.1.2.so $ ll /usr/lib/jni/lib* -rw-r--r-- 1 root root 1208816 Sep 10 2012 /usr/lib/jni/libgtkjni-4.1.2.so -rw-r--r-- 1 root root 72232 Jun 6 2011 /usr/lib/jni/libjnidispatch.so Regards, Johan |
From: Guillaume M. <res...@gm...> - 2013-07-20 12:38:00
|
Hi, 2013/7/20 Johan Groth <joh...@gm...>: > I've just installed libjava-gnome-java on a Ubuntu 13.04 box (only Linux Do you have libjava-gnome-jni installed too? Regards, -- Guillaume Mazoyer - https://respawner.fr/ |
From: Johan G. <joh...@gm...> - 2013-07-19 23:38:48
|
Hi, I've just installed libjava-gnome-java on a Ubuntu 13.04 box (only Linux dist I've got available). Fired up Eclipse Juno, added the library to my project (and the docs of course) and tried to run it but I'm getting an exception! What is going on here? The program is this: package uk.org.linuxgrotto.ui; import org.apache.log4j.Logger; import org.gnome.gtk.Gtk; /** * The class instantiates the main window. * * @author jgroth * */ public class DesktopFileCreator { private static Logger log = Logger.getLogger(DesktopFileCreator.class); public static void main(String[] args) { Gtk.init(args); } } Exception in thread "main" java.lang.ExceptionInInitializerError at org.gnome.gtk.Gtk.init(Gtk.java:95) at uk.org.linuxgrotto.ui.DesktopFileCreator.main(DesktopFileCreator.java:63) Caused by: java.lang.NullPointerException at org.freedesktop.bindings.Plumbing.loadNativeCode(Plumbing.java:192) at org.freedesktop.bindings.Plumbing.<clinit>(Plumbing.java:110) ... 2 more This is so minimal it can't be any smaller and yet an exception. Regards, Johan |
From: Alexey T. <a.m...@gm...> - 2013-07-03 08:33:17
|
Is there any solution on this problem? |
From: Alexey T. <a.m...@gm...> - 2013-06-14 12:52:51
|
Yes, I ran java-gnome tests and they passed fine. But I didn't find usage of sendClick method... This code should to press button "TEST". After that clicked[0] should be true. But it is false... Window window; final boolean[] clicked = new boolean[]{false}; final Button button; Gtk.init(new String[]{}); window = new Window(); Box box = new Box(Orientation.HORIZONTAL, 3); button = new Button("TEST"); box.add(button); button.connect(new Clicked() { @Override public void onClicked(Button source) { clicked[0] = true; } }); window.add(box); window.showAll(); Glib.idleAdd(new Handler() { @Override public boolean run() { org.gnome.gtk.Test.sendClick(button, MouseButton.LEFT, ModifierType.NONE); System.out.println(clicked[0]); return false; } }); Gtk.main(); |
From: Andrew C. <an...@op...> - 2013-06-14 11:40:54
|
On Fri, 2013-06-14 at 13:56 +0400, Alexey Titov wrote: > I'm trying to invoke > org.gnome.gtk.Test.sendClick( > button, MouseButton.LEFT, ModifierType.NONE). Mouse pointer moves to > the button, but no onClick event occurs. I can't understand what is > wrong. Please help... I haven't tested org.gnome.gtk.Test in a while; it's possible X server or other changes have caused it to break. [I'm assuming java-gnome's test suite is working for you? If you haven't tried it might be worth a shot just to check everything else is working] Can you post a small runnable code fragment somewhere that shows what you're trying to do? Happy to try it for you. AfC Sydney |
From: Alexey T. <a.m...@gm...> - 2013-06-14 09:56:55
|
Hello. I'm trying to make a simple test with one button and Clicked event handler. I'm trying to invoke org.gnome.gtk.Test.sendClick( button, MouseButton.LEFT, ModifierType.NONE). Mouse pointer moves to the button, but no onClick event occurs. I can't understand what is wrong. Please help... |
From: Big G. <ear...@gm...> - 2013-05-18 11:28:33
|
Hi list, I managed to get Eclipse working with Java Gnome. Now I want to derive my own container widget, and customise the drawing of it somewhat. Is there any documentation for how to do this? There's loads for Gtkmm ... For anyone wondering about Java Gnome on Fedora, I installed the packages, and had to copy the jar to my home directory and chown it, otherwise Eclipse blew up and didn't recognise the jar file. Then you right click the jar, and add the path to the Javadoc. Anyway, any help with containers would be great. Ta, Gaz |
From: Guillaume M. <res...@gm...> - 2013-05-10 01:40:05
|
As you might have seen the 4.1.3 version is out! Release notes http://java-gnome.sourceforge.net/NEWS.html#4.1.3 Tarball http://ftp.gnome.org/pub/gnome/sources/java-gnome/4.1/java-gnome-4.1.3.tar.xz Up-to-date Ubuntu (for 12.04, 12.10 and 13.04) packages are also available in our PPA https://launchpad.net/~java-gnome/+archive/ppa -- Guillaume Mazoyer - https://respawner.fr/ <http://respawner.fr/> |
From: Big G. <ear...@gm...> - 2013-05-09 21:56:42
|
Hi, I've been trying to use java-gnome with Eclipse and getting nowhere. I installed java-gnome on Fedora, fired up eclipse, pasted one of your example classes in and added the gtk JAR file to the build path. But, I still get ... The import org.gnome cannot be resolved Any thoughts? |
From: iamamoocow d. <lis...@ya...> - 2013-04-16 15:36:16
|
http://www.peche-stergoz.com/pulqjtrc/5se/zev987pk |
From: iamamoocow d. <lis...@ya...> - 2013-04-15 16:58:02
|
http://www.orthoreliefhospital.com/vvbry/madfsc/1f619/bw297dqn/opy |
From: Alexey T. <a_t...@ma...> - 2013-03-06 12:03:57
|
Hello! Hi I'm trying to explore java-gnome sources. I found one strange thing. In GtkCellRenderer.java there is a following code: static final void connect(CellRenderer self, GtkCellRenderer.RenderSignal handlerInstance, boolean after) { connectSignal(self, handlerInstance, GtkCellRenderer.class, "render", after); } However, there is no signal "render" in GtkCellRenderer according to GTK documentation. Is this an error or I just don't understand something? Thank you. |
From: iamamoocow d. <lis...@ya...> - 2013-02-06 20:30:35
|
http://www.catherine-perrier.com/qnxsq/1d3kin0rllbnu2lm6jpjw0comumhqjhz.png |
From: Niranjan R. <nh...@gm...> - 2013-01-21 19:01:12
|
On 01/20/2013 07:37 PM, Andrew Cowie wrote: > <http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Test.html#sendKey(org.gnome.gtk.Widget, org.gnome.gdk.Keyval, org.gnome.gdk.ModifierType)> > > might be what you want, though, as mentioned that's very much for > testing. > > If you're trying to "make something happen" that's bound to a keystroke, > then you might be better off with Actions and triggering the action() > directly. > > AfC > Sydney > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer Thank you. As you mentioned I am trying to "make something happen". Unfortunately call is deep inside webkit and webkit gtk does not expose any API for that. Right now only way seems to be sending key/mouse events but I'll keep investigating. Regards, Niranjan |
From: Andrew C. <an...@op...> - 2013-01-21 03:37:58
|
<http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Test.html#sendKey(org.gnome.gtk.Widget, org.gnome.gdk.Keyval, org.gnome.gdk.ModifierType)> might be what you want, though, as mentioned that's very much for testing. If you're trying to "make something happen" that's bound to a keystroke, then you might be better off with Actions and triggering the action() directly. AfC Sydney |
From: Niranjan R. <nh...@gm...> - 2013-01-21 01:39:03
|
Greetings, I would like to do something similar to http://stackoverflow.com/questions/6796191/how-to-send-key-events-to-webkit-webview-control or similar to copied answer from stack overflow question. I could see the handlers for receiving events, but could not see anything that can emit the events. How can I achieve this? event = gtk.gdk.Event(gtk.gdk.KEY_PRESS) event.keyval = gtk.keysyms.Return event.time = 0 browser.emit('key-press-event', event) Regards, Niranjan |
From: Andrew C. <an...@op...> - 2013-01-16 11:20:19
|
Hi Niranjan, On Thu, 2013-01-10 at 13:30 -0800, Niranjan Rao wrote: > Seems like java-gnome treats like GTK warnings as fatal errors. That's true. The reason is that a Gtk-WARNING is an indication that an illegal argument was passed to a function. How is the program supposed to continue if that has been done? More to the point, in Java we debug uncaught exceptions aka programming errors by seeing a stack trace that takes us right through the code path that led from the developer's mistake to the code which checked for the condition. We do our best to have guards in the bindings layer, but there are a fair number of conditions which arise because of mistakes that don't become apparent until runtime due to the very dynamic nature of GTK. Anyway, yes: to make java-gnome fit in to Java programming better, WARNINGs are converted to unchecked exceptions. > Is there > any flag that I can use to say log the warning, but don't treat it as > fatal error. No there isn't. We can have a conversation on java-gnome-hackers if you want to talk about engineering a different solution to this, but you'd have to answer the question of how what you want to do is better than the programmer getting an unchecked exception that they have to deal with so as to correct their code. > I have integrated webkit and in general it works fine and I get most of > the functionality of web kit I care to have. Depending upon what we are > doing, sometime we have to enable WBKIT_DEBUG flag and use it with > webkit debug version. If we switch webkit to standard library and forget > to remove the WEBKIT_DEBUG flag, webkit just logs a warning about log > not being available. This causes java gnome to crash. Sounds like it is doing the right thing? If you the programmer have forgotten to do something, shouldn't the program terminate? > We would prefer to > see those warning so that we know what's happening. > Normally you will get the warnings on stdout/stderr, but our code runs > with daemon/xvfb combo Shouldn't the output end up in ~/.xsession-errors, then? AfC Sydney |
From: Andrew C. <an...@op...> - 2013-01-16 11:20:18
|
On Mon, 2013-01-14 at 09:11 -0200, Igor H. Vieira wrote: > I've did a research on the Internet looking for > tutorials/documentations In the java-gnome source tree there is an example at tests/prototype/Designer.java ; you might have a look at that and give it a try? > I already know how to create a UI from the code using the Java > Gnome/GTK. You're probably better off just doing that, then. To be honest, that's what we tend to recommend; Glade always seems like such a great idea, but pretty soon you end up needing to write code to do non-trivial work anyway, at which point the complexity of dealing with .ui files & code is greater than just having code. Speaking personally, button = new Button(); button.setLabel("Hello"); and button = (Button) builder.getObject("button42") button.setLabel("Hello"); amounts to much the same thing while the latter is definitely more fragile in the face of change. IMHO, anyway. AfC Sydney |
From: Igor H. V. <zig...@gm...> - 2013-01-14 11:11:49
|
I've did a research on the Internet looking for tutorials/documentations to explain me how to use a UI designed in Glade in a Java Gnome project, but no luck. I already know how to create a UI from the code using the Java Gnome/GTK. Anyway, I'd like to use a Glade UI that I've created in a Java Gnome/Gtk project, but I have no idea from where to start. Please tell me: - which packages I need to install; - how to integrate the UI I've create with Glade (the .glade file) with my Java Gnome/Gtk project (specifically in Eclipse); - and give an example. Thanks in advance. That's how my Glade UI looks (Just click the image to see it bigger): http://i.stack.imgur.com/cgX9C.png This is the XML code of the UI above: <?xml version="1.0" encoding="UTF-8"?> <interface> <!-- interface-requires gtk+ 3.0 --> <object class="GtkWindow" id="window1"> <property name="can_focus">False</property> <property name="window_position">center</property> <child> <object class="GtkFixed" id="fixed1"> <property name="visible">True</property> <property name="can_focus">False</property> <child> <object class="GtkEntry" id="entry1"> <property name="width_request">162</property> <property name="height_request">25</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="halign">start</property> <property name="valign">end</property> <property name="invisible_char">•</property> </object> <packing> <property name="x">11</property> <property name="y">49</property> </packing> </child> <child> <object class="GtkEntry" id="entry2"> <property name="width_request">162</property> <property name="height_request">25</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="halign">start</property> <property name="valign">end</property> <property name="invisible_char">•</property> <property name="invisible_char_set">True</property> </object> <packing> <property name="x">271</property> <property name="y">49</property> </packing> </child> <child> <object class="GtkLabel" id="label"> <property name="height_request">25</property> <property name="visible">True</property> <property name="can_focus">False</property> <property name="label" translatable="yes">*</property> </object> <packing> <property name="x">216</property> <property name="y">49</property> </packing> </child> <child> <object class="GtkButton" id="button"> <property name="label" translatable="yes">Calculate!!!</property> <property name="use_action_appearance">False</property> <property name="width_request">84</property> <property name="height_request">27</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> <property name="use_action_appearance">False</property> </object> <packing> <property name="x">181</property> <property name="y">93</property> </packing> </child> </object> </child> </object> </interface> |
From: Niranjan R. <nh...@gm...> - 2013-01-10 21:30:43
|
Seems like java gnome treats like GTK warnings as fatal errors. Is there any flag that I can use to say log the warning, but don't treat it as fatal error. I have integrated webkit and in general it works fine and I get most of the functionality of web kit I care to have. Depending upon what we are doing, sometime we have to enable WBKIT_DEBUG flag and use it with webkit debug version. If we switch webkit to standard library and forget to remove the WEBKIT_DEBUG flag, webkit just logs a warning about log not being available. This causes java gnome to crash. We would prefer to see those warning so that we know what's happening. Normally you will get the warnings on stdout/stderr, but our code runs with daemon/xvfb combo and we don't have stdout/stderror always readable. Regards, Niranjan |
From: Maarten B. <boe...@ya...> - 2013-01-03 12:11:50
|
Hi all, I was wondering why the GTK bindings are not a separate standalone release from the Gnome bindings. Just as GTK is a popular toolkit for building user interfaces with Python *but without gnome*, they could become a popular alternative for Java and JVM-based scripting languages as well. It would also allow a release on Windows where the Gnome libraries are not available (but the GTK libs and its dependencies are). Maarten |
From: Billy B. <84....@gm...> - 2012-12-18 09:08:50
|
Hi, I am going to write a map viewer application and use DrawingArea to draw map with its overlays. The map render library is written in C and I am starting to write its JNI wrapper. The wrapper will be periodically invoked in the ExposeEvent and needs to access some X11 objects, like Display, Screen, Window, Colormap, etc, which are created by java-gnome. Is there any way to access it because I haven't found the corresponding methods of these functions (http://developer.gnome.org/gdk/unstable/gdk-X-Window-System-Interaction.html) ? I'm using java-gnome 4.0.20 Best Regards, Billy |