java-gnome-developer Mailing List for The java-gnome language bindings project (Page 48)
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: Ben K. <be...@ba...> - 2005-03-22 14:04:54
|
Hi Jonathon, Sorry to chime in late here (I just signed up to the developer list yesterday) but an rpm for FC3 already has that fix and it's in my java- gnome repo: http://people.redhat.com/bkonrath/java-gnome/i386/ The original upstream bug was: http://bugzilla.gnome.org/show_bug.cgi?id=161190 I should apologize for not putting this in Tom Fitzsimmons' repo - I guess I forgot. I will co-ordinate a transfer to his repo today. BTW, good work tracking this down, as I recall it was a little bit tricky :) Cheers, Ben |
From: Clint A. <ca...@au...> - 2005-03-22 13:51:57
|
The getType() method in DataColumn has a line that confuses me, maybe someone can explain: public Type getType(){ if (type != null){ Type t = type; type = null; // <-- here's the confusing line -- return t; }else throw new RuntimeException("The type either hasn't been set, or has already been requested and destroyed"); } Why is type being set to null here? The reason I'm worrying about this is that I'm trying to construct a ListStore that is created with an array of DataColumnStrings. When the array gets passed to the ListStore constructor, the DataColumn.getType() method is called, and now all my DataColumnStrings have a type of null! :-/ |
From: Joao V. <jvi...@ya...> - 2005-03-22 12:18:42
|
So finally the mistery is solved ;) I'd like to ask for 2 things: remove the rpm of libglade 2.8.2 from the repository (possibly replacing it with a newer one, but not necessarily), and someone change bug http://bugzilla.gnome.org/show_bug.cgi?id=169261 to 'solved'. Cheers! J.V. --- Mark Howard <mh...@ti...> wrote: > Thanks for all your effort trying to fix this. If it had been relevant to the > core java-gnome, we would certainly applied it. Please don't let it be the first > path you submit ;) > This list is ideal for any patches you want to discuss or have checked. > Alternatively, for small items, irc is usually a good place to start. If your > patch doesn't get the attention straight away (since the developers are too busy > with other projects), please add it to bugzilla, so it doesn't get lost. > > BTW: it is traditional to submit patches as diffs between the old and new > version - this helps the patch reviewer see exactly what's changed and avoids > problems of overwriting recent changes if you changes aren't based on the very > latest version. > To generate a diff, just call diff -u old-file new-file. Don't forget the -u -- > that makes it more readable. Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ |
From: Mark H. <mh...@ti...> - 2005-03-22 09:53:56
|
Thanks for all your effort trying to fix this. If it had been relevant to the core java-gnome, we would certainly applied it. Please don't let it be the first path you submit ;) This list is ideal for any patches you want to discuss or have checked. Alternatively, for small items, irc is usually a good place to start. If your patch doesn't get the attention straight away (since the developers are too busy with other projects), please add it to bugzilla, so it doesn't get lost. BTW: it is traditional to submit patches as diffs between the old and new version - this helps the patch reviewer see exactly what's changed and avoids problems of overwriting recent changes if you changes aren't based on the very latest version. To generate a diff, just call diff -u old-file new-file. Don't forget the -u -- that makes it more readable. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Jonathon L. <j...@co...> - 2005-03-22 09:25:16
|
I must beg all of your forgiveness, my last post was hasty, non-thought through, and inconsiderate. The patch, was to modify the sources of : http://people.redhat.com/fitzsim/java-gnome/i386/libglade-java-2.8.2-1.i386.rpm which is what all the Fedora 3 rpms are built from. The source code in this file (for whatever reason) is missing a critical line. My file replaced that line. I thought that this line was missing from all libglade-java source, which is why I thought I had a patch. But it is only for the fitzsim ones. So, to tie it all up, the problems with java-gnome libglade under Fedora 3, are because of the rpms, not java-gnome. And the ListenerDelegate.create error can be solved, simply by using an earlier version from the same website: http://people.redhat.com/fitzsim/java-gnome/i386/libglade-java-2.8.1-2.i386.rpm J. |
From: Jonathon L. <j...@co...> - 2005-03-22 09:06:37
|
Greetings all, I'm a bit excited to announce my first patch (ever). This patch (which is the whole addition of a single line), makes libglade-java work under Fedora 3. Heck, what am I posting this on the 'developer' list for, I'm a 'hacker' ;) Here's the modified LibGlade.java file, just copy it over the appropriate file in the libglade source tree, and rebuild. (I think this may be the wrong list to post this on, but you must understand, I'm very excited) J. |
From: Ralph H. <ra...@gm...> - 2005-03-22 08:45:51
|
Hi, i written a program that's use a swing.JTable, i will porting the program to java-gnome. I'm not found why can make a Jtable in java-gnome. What must i use. I hope you can help me. ---------- Swing JTabble....... public JTable getJTableSerien() { if (jTableSerien == null) { serienTableModel = new GuiSerienTableModel(control); serienTableSorter = new GuiTableSorter(serienTableModel); jTableSerien = new JTable(serienTableSorter); serienTableSorter.setTableHeader(jTableSerien.getTableHeader()); jTableSerien.addMouseListener(control); jTableSerien.setName("serienTable"); jTableSerien.setTableHeader(jTableSerien.getTableHeader()); jTableSerien.getColumnModel().getColumn(0).setMaxWidth(330); jTableSerien.getColumnModel().getColumn(1).setMaxWidth(45); jTableSerien.getColumnModel().getColumn(2).setMaxWidth(45); jTableSerien.getColumnModel().getColumn(3).setMaxWidth(270); jTableSerien.getColumnModel().getColumn(4).setMaxWidth(270); jTableSerien.getColumnModel().getColumn(3).setCellRenderer(new TableCellRenderer() { public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column){ JTextPane p = new JTextPane(); if (isSelected) { p.setForeground(table.getSelectionForeground()); p.setBackground(table.getSelectionBackground()); } else{ p.setForeground(table.getForeground()); p.setBackground(table.getBackground()); } String val = ""; p.setMargin(new Insets(0, 0, 0, 0)); if (value == null) value = ""; val = value.toString(); p.setText(val); if(getSearch().length()>=1){ SerFormatter.highlight(p, getSearch()); }else{ SerFormatter.removeHighlights(p); } return p; } Greets Ralph ------------------------------- -- Ralph Henneberger <ra...@gm...> |
From: Jonathon L. <j...@co...> - 2005-03-22 08:28:59
|
thanks for the speedy response, another query though, the following code determines when the left-most enter key (on a standard australian/america= n 101 ithink) is pressed, but does not include the right most (one on the number pad) public void command_entered(KeyEvent event) { int keyval =3D event.getKeyval(); if (keyval =3D=3D KeySymbol.Return.getValue()) { System.out.println("Enter Pressed"); } } Is there a neat way to do respond to both enter keys, or do I have to go: if (keyval =3D=3D KeySymbol.Return.getValue() || keyval =3D=3D 65421) { thanks J. >> >> In Gdk, you'd use GDK_Return , is there an equivalent in java-gnome? > > Yes, use org.gnu.gdk.KeySymbol. This is already in my TODO list, to > document it better... > > Cheers, > J.V. > > > > > > > > Yahoo! Mail - Com 250MB de espa=E7o. Abra sua conta! > http://mail.yahoo.com.br/ > > > --__--__-- > > Message: 3 > Date: Mon, 21 Mar 2005 13:54:16 -0500 > From: Andrew Overholt <ove...@re...> > To: Java Gnome Developers Mailinglist > <jav...@li...> > Reply-To: Andrew Overholt <ove...@re...> > Subject: [Java-gnome-developer] "Java-GNOME Con 1" > > Hi, > > Some of us up here in the Red Hat Canada office in Toronto would like t= o > host a semi-official get-together on 2005-04-02. It won't be some > fancy-schmancy sponsored event or anything, but we have a room where we > can > work together. We'd like it to be a hackfest-type day of getting stuff > done. Jeff Morgan says he can make it and anybody else who wants to co= me > is welcome. All we ask is that you email one of us to make sure we kno= w > you're coming and so that we can give you details. > > Thanks, > > Ben Konrath & Andrew Overholt > Pseudo-organizers of "Java-GNOME Con 1" > > > --__--__-- > > Message: 4 > Subject: Re: [Java-gnome-developer] "Java-GNOME Con 1" > From: Andrew Cowie <an...@op...> > To: jav...@li... > Organization: Operational Dynamics > Date: Tue, 22 Mar 2005 08:27:18 +1100 > > On Mon, 2005-21-03 at 13:54 -0500, Andrew Overholt wrote: >> Some of us up here in the Red Hat Canada office in Toronto would like = to >> host a semi-official get-together on 2005-04-02. > > Beat me to it. > > I'm going to be in Toronto the first week of April, and am thrilled tha= t > Jeff is planning to make the trip up as well. > > Putting faces to names (not to mention hoisting a pint or two) has > always given a significant boost to open source projects, and I look > forward to meeting Jeff, Ben, Andrew, Thomas, and anyone else who can > make it. > > AfC > Sydney > > -- > Andrew Frederick Cowie > Managing Director > > Phone relays worldwide: > Sydney +61 2 9977 6866 > New York +1 646 472 5054 > Toronto +1 416 848 6072 > London +44 207 1019201 > > OPERATIONAL DYNAMICS > Operations Consultants and Infrastructure Engineers > specializing in technology strategy, changes & upgrades, > enterprise architecture, and performance improvement for > mission critical systems & the people who run them. > > http://www.operationaldynamics.com/ > > > > > --__--__-- > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > End of java-gnome-developer Digest > |
From: Andrew C. <an...@op...> - 2005-03-21 21:27:25
|
On Mon, 2005-21-03 at 13:54 -0500, Andrew Overholt wrote: > Some of us up here in the Red Hat Canada office in Toronto would like to > host a semi-official get-together on 2005-04-02. Beat me to it. I'm going to be in Toronto the first week of April, and am thrilled that Jeff is planning to make the trip up as well. Putting faces to names (not to mention hoisting a pint or two) has always given a significant boost to open source projects, and I look forward to meeting Jeff, Ben, Andrew, Thomas, and anyone else who can make it. AfC Sydney -- Andrew Frederick Cowie Managing Director Phone relays worldwide: Sydney +61 2 9977 6866 New York +1 646 472 5054 Toronto +1 416 848 6072 London +44 207 1019201 OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers specializing in technology strategy, changes & upgrades, enterprise architecture, and performance improvement for mission critical systems & the people who run them. http://www.operationaldynamics.com/ |
From: Andrew O. <ove...@re...> - 2005-03-21 18:54:33
|
Hi, Some of us up here in the Red Hat Canada office in Toronto would like to host a semi-official get-together on 2005-04-02. It won't be some fancy-schmancy sponsored event or anything, but we have a room where we can work together. We'd like it to be a hackfest-type day of getting stuff done. Jeff Morgan says he can make it and anybody else who wants to come is welcome. All we ask is that you email one of us to make sure we know you're coming and so that we can give you details. Thanks, Ben Konrath & Andrew Overholt Pseudo-organizers of "Java-GNOME Con 1" |
From: Joao V. <jvi...@ya...> - 2005-03-21 12:10:53
|
--- Jonathon Love <j...@co...> wrote: > G'day, > > I'm wanting a person to be able to enter a command into an Entry, and then > push enter. > > I can read the event.keyval , and see if it is equal to 65421 or 65293 , > (the two enter keys), but I was wondering if there weren't some slightly > more readable literal in java-gnome? > > In Gdk, you'd use GDK_Return , is there an equivalent in java-gnome? Yes, use org.gnu.gdk.KeySymbol. This is already in my TODO list, to document it better... Cheers, J.V. Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ |
From: Jonathon L. <j...@co...> - 2005-03-21 10:19:45
|
G'day, I'm wanting a person to be able to enter a command into an Entry, and then push enter. I can read the event.keyval , and see if it is equal to 65421 or 65293 , (the two enter keys), but I was wondering if there weren't some slightly more readable literal in java-gnome? In Gdk, you'd use GDK_Return , is there an equivalent in java-gnome? J. |
From: Jonathon L. <j...@co...> - 2005-03-19 22:43:01
|
> If it"s not asking too much, could you also please send the modified > version you made of ListenerDelegate.java? here 'tis, attached, and pasted. /* * LibGlade support for libglade for Java-Gnome * * The Java-Gnome bindings library is free software distributed under * the terms of the GNU Library General Public License version 2. */ /** * ListenerDelegate: abstract base class for Java-GNOME event listener * delegate classes which connect to glade-specified event handlers. * * @author Tom Ball */ package org.gnu.glade; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import org.gnu.gnome.event.AppBarListener; import org.gnu.gnome.event.ClientListener; import org.gnu.gnome.event.ColorPickerListener; import org.gnu.gnome.event.DateEditListener; import org.gnu.gnome.event.DruidPageChangeListener; import org.gnu.gnome.event.DruidPageSetupListener; import org.gnu.gnome.event.FontPickerListener; import org.gnu.gtk.Widget; import org.gnu.gtk.event.AdjustmentListener; import org.gnu.gtk.event.ButtonListener; import org.gnu.gtk.event.CalendarListener; import org.gnu.gtk.event.CellRendererTextListener; import org.gnu.gtk.event.CheckMenuItemListener; import org.gnu.gtk.event.ColorButtonListener; import org.gnu.gtk.event.ComboBoxListener; import org.gnu.gtk.event.ContainerListener; import org.gnu.gtk.event.DialogListener; import org.gnu.gtk.event.EntryListener; import org.gnu.gtk.event.ExpanderListener; import org.gnu.gtk.event.ExposeListener; import org.gnu.gtk.event.FocusListener; import org.gnu.gtk.event.FontButtonListener; import org.gnu.gtk.event.GtkEvent; import org.gnu.gtk.event.GtkEventType; import org.gnu.gtk.event.ItemListener; import org.gnu.gtk.event.KeyListener; import org.gnu.gtk.event.LifeCycleListener; import org.gnu.gtk.event.MenuItemListener; import org.gnu.gtk.event.MouseListener; import org.gnu.gtk.event.MouseMotionListener; import org.gnu.gtk.event.NotebookListener; import org.gnu.gtk.event.OptionMenuListener; import org.gnu.gtk.event.RangeListener; import org.gnu.gtk.event.ScaleListener; import org.gnu.gtk.event.SpinListener; import org.gnu.gtk.event.TextBufferListener; import org.gnu.gtk.event.TextViewListener; import org.gnu.gtk.event.ToggleListener; import org.gnu.gtk.event.ToolBarListener; import org.gnu.gtk.event.ToolButtonListener; import org.gnu.gtk.event.TreeModelListener; import org.gnu.gtk.event.TreeSelectionListener; import org.gnu.gtk.event.TreeViewColumnListener; abstract class ListenerDelegate { protected String signal; // the signal being fired by GTK protected Object owner; // the object which contains custom handler // methods protected Method handler; // the owner's handler method for this signal protected Object target; // the optional object to send the handler public ListenerDelegate(String signal, Object owner, Method handler, Object target) throws NoSuchMethodException { this.signal = signal; this.owner = owner; this.handler = handler; this.target = target; } private static Method getHandlerMethod(Object owner, String handlerName) throws NoSuchMethodException { Method[] methods = owner.getClass().getMethods(); int n = methods.length; for (int i = 0; i < n; i++) { Method m = methods[i]; if (m.getName().equals(handlerName)) { return m; } } throw new NoSuchMethodException(owner.getClass().getName() + '.' + handlerName); } public boolean fireEvent(GtkEvent event) { return fireEvent(event, 0.0); } public boolean fireEvent(GtkEvent event, double value) { Object[] params = null; Object ret = null; try { Widget source = (Widget)event.getSource(); //System.err.println("fireEvent: source:"+source); GtkEventType typeNeeded = source.getEventType(signal); //System.err.println("fireEvent: typeNeeded:"+typeNeeded); if (event.getType() == typeNeeded) { Class[] paramTypes = handler.getParameterTypes(); // handlers have optional event and target parameters int n = paramTypes.length; //System.err.println("fireEvent: n:"+n); if (n == 2) // <handler>(event, target); params = new Object[] { event, target }; else if (n == 1) // <handler>(event); params = new Object[] { event }; else // <handler>(); params = new Object[0]; //System.err.println("fireEvent: owner:"+owner+", event:"+event+", target:"+target); ret = handler.invoke(owner, params); // return type is either null (if void) or boolean return (ret != null && ret.getClass().equals(Boolean.TYPE)) ? ((Boolean)ret).booleanValue() : false; } /* else ignore event */ } catch (InvocationTargetException e) { System.err.println("ListenerDelegate.fireEvent(" + event + "): " + e.getTargetException()); e.getTargetException().printStackTrace(); } catch (Exception e) { System.err.println("ListenerDelegate.fireEvent(" + event + "): " + e); e.printStackTrace(); System.err.println("params:"+params+", ret:"+ret); } return false; } static ListenerDelegate create(String signal, Class listenerClass, Object owner, String handlerName, Object target) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException { try { Method handler = getHandlerMethod(owner, handlerName); Class delegateClass = (Class)delegateClassMap.get(listenerClass); if (delegateClass == null) { String listenerClassName = listenerClass.getName(); String delegateClassName = (String) delegateMap.get(listenerClassName); delegateClass = Class.forName(delegateClassName); delegateClassMap.put(listenerClass, delegateClass); } if (delegateClass == null) throw new ClassNotFoundException("No libglade delegate for " + listenerClass.getName()); Constructor ctor = delegateClass.getConstructor(new Class[] { String.class, Object.class, Method.class, Object.class }); return (ListenerDelegate)ctor.newInstance(new Object[] { signal, owner, handler, target }); } catch (NoSuchMethodException e) { throw e; } catch (InvocationTargetException e) { throw e; } catch (Exception e) { e.printStackTrace(); throw new InvocationTargetException(e, "ListenerDelegate.create failure"); } } // Map GTK and GNOME listener interfaces to their respective delegates. private static Map delegateMap = new HashMap(); private static Map delegateClassMap = new HashMap(); static { delegateMap.put("org.gnu.gtk.event.AdjustmentListener", "org.gnu.glade.AdjustmentDelegate"); delegateMap.put("org.gnu.gtk.event.ButtonListener", "org.gnu.glade.ButtonDelegate"); delegateMap.put("org.gnu.gtk.event.CalendarListener", "org.gnu.glade.CalendarDelegate"); delegateMap.put("org.gnu.gtk.event.CellRendererTextListener", "org.gnu.glade.CellRendererTextDelegate"); delegateMap.put("org.gnu.gtk.event.CheckMenuItemListener", "org.gnu.glade.CheckMenuItemDelegate"); delegateMap.put("org.gnu.gtk.event.ColorButtonListener", "org.gnu.glade.ColorButtonDelegate"); delegateMap.put("org.gnu.gtk.event.ComboBoxListener", "org.gnu.glade.ComboBoxDelegate"); delegateMap.put("org.gnu.gtk.event.ContainerListener", "org.gnu.glade.ContainerDelegate"); delegateMap.put("org.gnu.gtk.event.DialogListener", "org.gnu.glade.DialogDelegate"); delegateMap.put("org.gnu.gtk.event.EntryListener", "org.gnu.glade.EntryDelegate"); delegateMap.put("org.gnu.gtk.event.ExpanderListener", "org.gnu.glade.ExpanderDelegate"); delegateMap.put("org.gnu.gtk.event.ExposeListener", "org.gnu.glade.ExposeDelegate"); delegateMap.put("org.gnu.gtk.event.FocusListener", "org.gnu.glade.FocusDelegate"); delegateMap.put("org.gnu.gtk.event.FontButtonListener", "org.gnu.glade.FontButtonDelegate"); delegateMap.put("org.gnu.gtk.event.ItemListener", "org.gnu.glade.ItemDelegate"); delegateMap.put("org.gnu.gtk.event.KeyListener", "org.gnu.glade.KeyDelegate"); delegateMap.put("org.gnu.gtk.event.LifeCycleListener", "org.gnu.glade.LifeCycleDelegate"); delegateMap.put("org.gnu.gtk.event.MenuItemListener", "org.gnu.glade.MenuItemDelegate"); delegateMap.put("org.gnu.gtk.event.MouseListener", "org.gnu.glade.MouseDelegate"); delegateMap.put("org.gnu.gtk.event.MouseMotionListener", "org.gnu.glade.MouseMotionDelegate"); delegateMap.put("org.gnu.gtk.event.NotebookListener", "org.gnu.glade.NotebookDelegate"); delegateMap.put("org.gnu.gtk.event.OptionMenuListener", "org.gnu.glade.OptionMenuDelegate"); delegateMap.put("org.gnu.gtk.event.RangeListener", "org.gnu.glade.RangeDelegate"); delegateMap.put("org.gnu.gtk.event.ScaleListener", "org.gnu.glade.ScaleDelegate"); delegateMap.put("org.gnu.gtk.event.SpinListener", "org.gnu.glade.SpinDelegate"); delegateMap.put("org.gnu.gtk.event.TextBufferListener", "org.gnu.glade.TextBufferDelegate"); delegateMap.put("org.gnu.gtk.event.ToggleListener", "org.gnu.glade.ToggleDelegate"); delegateMap.put("org.gnu.gtk.event.ToolBarListener", "org.gnu.glade.ToolBarDelegate"); delegateMap.put("org.gnu.gtk.event.ToolButtonListener", "org.gnu.glade.ToolButtonDelegate"); delegateMap.put("org.gnu.gtk.event.TreeModelListener", "org.gnu.glade.TreeModelDelegate"); delegateMap.put("org.gnu.gtk.event.TreeSelectionListener", "org.gnu.glade.TreeSelectionDelegate"); delegateMap.put("org.gnu.gtk.event.TreeViewColumnListener", "org.gnu.glade.TreeViewColumnDelegate"); delegateMap.put("org.gnu.gtk.event.TextViewListener", "org.gnu.glade.TextViewDelegate"); delegateMap.put("org.gnu.gnome.AppBarListener", "org.gnu.glade.AppBarDelegate"); delegateMap.put("org.gnu.gnome.ClientListener", "org.gnu.glade.ClientDelegate"); delegateMap.put("org.gnu.gnome.ColorPickerListener", "org.gnu.glade.ColorPickerDelegate"); delegateMap.put("org.gnu.gnome.DateEditListener", "org.gnu.glade.DateEditDelegate"); delegateMap.put("org.gnu.gnome.DruidPageChangeListener", "org.gnu.glade.DruidPageDelegate"); delegateMap.put("org.gnu.gnome.DruidPageSetupListener", "org.gnu.glade.DruidPageDelegate"); delegateMap.put("org.gnu.gnome.FontPickerListener", "org.gnu.glade.FontPickerDelegate"); } } |
From: Jonathon L. <j...@co...> - 2005-03-19 00:10:51
|
All the runExample examples work, so I presume the problem is in libGlade. glade file: <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkWindow" id="window1"> <property name="visible">True</property> <property name="title" translatable="yes">window1</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">False</property> <property name="skip_pager_hint">False</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <child> <widget class="GtkButton" id="button"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">button</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_clicked" last_modification_time="Sat, 19 Mar 2005 00:08:48 GMT"/> </widget> </child> </widget> </glade-interface> source file: package test; import org.gnu.glade.LibGlade; import org.gnu.gtk.Gtk; public class Test { public static void main(String[] args) { Gtk.init(args); Test turtle = new Test(); Gtk.main(); } public Test() { try { LibGlade moo = new LibGlade("/home/j/Projects/tmp/tmp.glade", this); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void on_button_click() { System.out.println("click"); } } > Could you please send a copy of the java code and glade > file. I would be happy to take a look at this and help > with a resolution. |
From: Joao V. <jvi...@ya...> - 2005-03-18 16:57:01
|
If it's not asking too much, could you also please send the modified version you made of ListenerDelegate.java? Thanks, J.V. --- Jeff Morgan <ku...@gm...> wrote: > Could you please send a copy of the java code and glade > file. I would be happy to take a look at this and help > with a resolution. > > > On Sat, 27 Oct 2001 21:10:48 +1000 (EST), Jonathon Love > <j...@co...> wrote: > > I get the same error using gij > > > > java.lang.NullPointerException > > at org.gnu.glade.ListenerDelegate.getHandlerMethod(java.lang.Object, > > java.lang.String) (Unknown Source) > > at org.gnu.glade.ListenerDelegate.create(java.lang.String, > > java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object) > > (Unknown Source) > > at org.gnu.glade.LibGlade.connect(java.lang.String, int, > > java.lang.String, java.lang.String, int, boolean) (Unknown Source) > > at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, > > boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) > > (/usr/lib/libgcj.so.5.0.0) > > at g_hash_table_foreach (/usr/lib/libglib-2.0.so.0.400.7) > > at glade_xml_signal_autoconnect_full (/usr/lib/libglade-2.0.so.0.0.4) > > at Java_org_gnu_glade_LibGlade_glade_1xml_1signal_1autoconnect_1full > > (/usr/lib/libgladejava2.8.so.2.8.2) > > at _Jv_JNIMethod.call(ffi_cif, void, ffi_raw, void) > > (/usr/lib/libgcj.so.5.0.0) > > at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Object, > > java.lang.String) (Unknown Source) > > at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Object) > > (Unknown Source) > > at turtle.Turtle.Turtle() (Unknown Source) > > at turtle.Turtle.main(java.lang.String[]) (Unknown Source) > > java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ |
From: Ka-Hing C. <ka...@gm...> - 2005-03-18 16:34:04
|
> gcj > -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/lib/glade2.8.jar -lgtkjava-2.6 and -lgladejava2.8 --main=com.osnetwork.Main -o bin/jquote src/com/osnetwork/Main.java > gcj: and: No such file or directory > make: *** [native] Error 1 You don't want the and between gtkjava-2.6 and gladejava2.8 -khc |
From: Luca M. <luc...@ti...> - 2005-03-18 14:18:38
|
On Thu, 2005-03-17 at 22:39 +0100, Abcdefg wrote: > --------- Oorspronkelijk bericht -------- > Van: Luca Merolla <luc...@ti...> > Naar: jav...@li... > <jav...@li...> > Onderwerp: [Java-gnome-developer] How to compile native with gcj > Datum: 17/03/05 22:24 >=20 > > Hi, > > I'm trying to compile a sample program natively with gcj but I got this > > annoying message: > > ... > > How can I solve this? > > Thanks in advance > > >=20 > Hi, >=20 > I had the same problem some time ago because the name has changed, it sho= uld > be -lgtkjava-2.6 and -lgladejava2.8 >=20 > David >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer I have changed LIBS with "-lgtkjava-2.6 and -lgladejava2.8" and now when I try to compile with "make native" I got this: gcj -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/= lib/glade2.8.jar -lgtkjava-2.6 and -lgladejava2.8 --main=3Dcom.osnetwork.Ma= in -o bin/jquote src/com/osnetwork/Main.java gcj: and: No such file or directory make: *** [native] Error 1 Which file or directory is looking for? Thanks in advance --=20 Luca Merolla <luc...@ti...> |
From: Leonardo M. <leo...@gm...> - 2005-03-18 13:36:05
|
This is one example... On Fri, 18 Mar 2005 07:01:26 -0500, Jeff Morgan <ku...@gm...> wrote: > Could you please send a copy of the java code and glade > file. I would be happy to take a look at this and help > with a resolution. >=20 > On Sat, 27 Oct 2001 21:10:48 +1000 (EST), Jonathon Love > <j...@co...> wrote: > > I get the same error using gij > > > > java.lang.NullPointerException > > at org.gnu.glade.ListenerDelegate.getHandlerMethod(java.lang.Object, > > java.lang.String) (Unknown Source) > > at org.gnu.glade.ListenerDelegate.create(java.lang.String, > > java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object) > > (Unknown Source) > > at org.gnu.glade.LibGlade.connect(java.lang.String, int, > > java.lang.String, java.lang.String, int, boolean) (Unknown Source) > > at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, > > boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) > > (/usr/lib/libgcj.so.5.0.0) > > at g_hash_table_foreach (/usr/lib/libglib-2.0.so.0.400.7) > > at glade_xml_signal_autoconnect_full (/usr/lib/libglade-2.0.so.0.0.4= ) > > at Java_org_gnu_glade_LibGlade_glade_1xml_1signal_1autoconnect_1full > > (/usr/lib/libgladejava2.8.so.2.8.2) > > at _Jv_JNIMethod.call(ffi_cif, void, ffi_raw, void) > > (/usr/lib/libgcj.so.5.0.0) > > at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Objec= t, > > java.lang.String) (Unknown Source) > > at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Objec= t) > > (Unknown Source) > > at turtle.Turtle.Turtle() (Unknown Source) > > at turtle.Turtle.main(java.lang.String[]) (Unknown Source) > > java.lang.reflect.InvocationTargetException: ListenerDelegate.create fa= ilure > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users= . > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > >=20 > -- > Jeffrey Morgan >=20 > "The highest reward for a man's toil is not > what he gets for it, but what he becomes by it" > - Jon Ruskin >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer >=20 --=20 Leonardo Marques=20 :@ Deleta logo esse outlook e esse internet explorer a=ED... :@ http://www.getfirefox.com - http://www.mozilla.org/products/thunderbird/ Bras=EDlia - DF |
From: Olivier E. <ev...@pr...> - 2005-03-18 12:36:18
|
Hi All, First, thanks a lot for your great work!!! I'm working to make a local linux distribution to help my friends to understand what it mean freedom and sharing. Two weeks ago, I decided to build tools with java-gnome and gcj. It is really exciting to see java & java-gnome working without any jre!!! I began to build the gui installer and his partedjava library helper. I also discovered eclipse that I directly adopted. I learned on your makefile.am and config.ac and adepted the gtkjava to my partedjava. Now I can build with eclipse and distribute with configure/make. Here is my question. The gui installer depend on libpartedjava and lpartedjava depend on the jni libpartedjni.so. When I use java and eclipse all is working perfectly. But when I try to build natively, I get an link error only for jni methodes: ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::create_devices(JArray<org::gnu::parted::Device*>*)' ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::init_device()' ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::get_partitions(org::gnu::parted::Device*)' ../libpartedjava.so: undefined reference to `org::gnu::parted::Device::init_parted()' and %>objdump -T /usr/lib/libpartedjava.so |grep init_parted %>00000000 D *UND* 00000000 _ZN3org3gnu6parted6Device11init_partedEv I think that I have a bad link option but I don't know where, you will find on attach the make.am for the partedjava & partedjni, and the makefile for gui Installer. Have you any idea? Cheers, Olivier -- __________________ | gelux is a cow ? | ------------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || http://gelux.programmer.ch |
From: Bruno D. <bdu...@be...> - 2005-03-18 12:35:27
|
On jeu, 2005-03-17 at 21:55 +0100, Luca Merolla wrote: > Hi, > I'm trying to compile a sample program natively with gcj but I got this > annoying message: > > make native > gcj > -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/lib/glade2.8.jar -lgtkjar2.6 -lgnomejar2.8 --main=com.osnetwork.Main -o bin/jquote src/com/osnetwork/Main.java > /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgtkjar2.6 > collect2: ld returned 1 exit status > make: *** [native] Error 1 > > I have used the Makefile from java-gnome website made by NickG, I just > changed this variables: > > INCLUDES=/usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/lib/glade2.8.jar > LIBS=-lgtkjar2.6 -lgladejar2.8 > LIBPATH=/usr/lib > FILES=src/com/osnetwork/Main.java > MAIN=com.osnetwork.Main > TARGET=bin/jquote > > How can I solve this? > Thanks in advance > Where are your .so located ? I think you should add the -L flags, tellings gcj where to find your .so files, in order for the linker (ld in this case) to link the program to them. Like this (if .so files are in /usr/lib) : gcj [...] -lgtkjar2.6 -L/usr/lib [...]. Don't know if it's clear or not :). I may be wrong, but the error raised by ld is telling me it's the solution. -- Bruno Dusausoy <bdu...@be...> |
From: Jeff M. <ku...@gm...> - 2005-03-18 12:01:37
|
Could you please send a copy of the java code and glade file. I would be happy to take a look at this and help with a resolution. On Sat, 27 Oct 2001 21:10:48 +1000 (EST), Jonathon Love <j...@co...> wrote: > I get the same error using gij > > java.lang.NullPointerException > at org.gnu.glade.ListenerDelegate.getHandlerMethod(java.lang.Object, > java.lang.String) (Unknown Source) > at org.gnu.glade.ListenerDelegate.create(java.lang.String, > java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object) > (Unknown Source) > at org.gnu.glade.LibGlade.connect(java.lang.String, int, > java.lang.String, java.lang.String, int, boolean) (Unknown Source) > at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, > boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) > (/usr/lib/libgcj.so.5.0.0) > at g_hash_table_foreach (/usr/lib/libglib-2.0.so.0.400.7) > at glade_xml_signal_autoconnect_full (/usr/lib/libglade-2.0.so.0.0.4) > at Java_org_gnu_glade_LibGlade_glade_1xml_1signal_1autoconnect_1full > (/usr/lib/libgladejava2.8.so.2.8.2) > at _Jv_JNIMethod.call(ffi_cif, void, ffi_raw, void) > (/usr/lib/libgcj.so.5.0.0) > at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Object, > java.lang.String) (Unknown Source) > at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Object) > (Unknown Source) > at turtle.Turtle.Turtle() (Unknown Source) > at turtle.Turtle.main(java.lang.String[]) (Unknown Source) > java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |
From: Jonathon L. <j...@co...> - 2005-03-18 11:21:37
|
I get the same error using gij java.lang.NullPointerException at org.gnu.glade.ListenerDelegate.getHandlerMethod(java.lang.Object, java.lang.String) (Unknown Source) at org.gnu.glade.ListenerDelegate.create(java.lang.String, java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object) (Unknown Source) at org.gnu.glade.LibGlade.connect(java.lang.String, int, java.lang.String, java.lang.String, int, boolean) (Unknown Source) at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0) at g_hash_table_foreach (/usr/lib/libglib-2.0.so.0.400.7) at glade_xml_signal_autoconnect_full (/usr/lib/libglade-2.0.so.0.0.4) at Java_org_gnu_glade_LibGlade_glade_1xml_1signal_1autoconnect_1full (/usr/lib/libgladejava2.8.so.2.8.2) at _Jv_JNIMethod.call(ffi_cif, void, ffi_raw, void) (/usr/lib/libgcj.so.5.0.0) at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Object, java.lang.String) (Unknown Source) at org.gnu.glade.LibGlade.LibGlade(java.lang.String, java.lang.Object) (Unknown Source) at turtle.Turtle.Turtle() (Unknown Source) at turtle.Turtle.main(java.lang.String[]) (Unknown Source) java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure |
From: Leonardo M. <leo...@gm...> - 2005-03-18 11:00:34
|
I have the same configurations... jdk1.5.0 under fedora 3 packages from http://people.redhat.com/fitzsim/java-gnome/ --=20 Leonardo Marques=20 :@ Deleta logo esse outlook e esse internet explorer a=ED... :@ http://www.getfirefox.com - http://www.mozilla.org/products/thunderbird/ Bras=EDlia - DF |
From: Jonathon L. <j...@co...> - 2005-03-18 10:44:24
|
I was having the same problem, so I did what you said. changing from line 160 in file ListenerDelegate.java: } catch (Exception e) { throw new InvocationTargetException(e, "ListenerDelegate.create failure"); } to } catch (Exception e) { e.printStackTrace(); throw new InvocationTargetException(e, "ListenerDelegate.create failure"); } I got the following output: java.lang.NullPointerException at org.gnu.glade.ListenerDelegate.getHandlerMethod(ListenerDelegate.java:82) at org.gnu.glade.ListenerDelegate.create(ListenerDelegate.java:142) at org.gnu.glade.LibGlade.connect(LibGlade.java:178) at org.gnu.glade.LibGlade.glade_xml_signal_autoconnect_full(Native Method) at org.gnu.glade.LibGlade.<init>(LibGlade.java:94) at org.gnu.glade.LibGlade.<init>(LibGlade.java) at turtle.Turtle.<init>(Turtle.java:24) at turtle.Turtle.main(Turtle.java:18) java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure I'm using jdk1.5.0, under fedora 3, using the libgtk etc. packages from http://people.redhat.com/fitzsim/java-gnome/ let us know if you want any more experiments performed. J. |
From: Andrew C. <an...@op...> - 2005-03-18 00:31:31
|
On Thu, 2005-17-03 at 22:39 +0100, Abcdefg wrote: > I had the same problem some time ago because the name has changed, it should > be -lgtkjava-2.6 and -lgladejava2.8 Which raises an interesting point. Is that name change a) a bug, or b) to be expected for all the other libraries. Jeff, I think we need to tell people about these things in our release announcements. AfC Sydney -- Andrew Frederick Cowie Management Consultant Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |