java-gnome-developer Mailing List for The java-gnome language bindings project (Page 39)
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: pulihora j. <pul...@gm...> - 2005-06-28 00:57:28
|
thanks Ismael, it works. I tried doing some development in c/c++, after working in java for some tim= e=20 they look barbaric. Now i can do gnome development in my language java, I know it will be fun. On 6/27/05, Ismael Juma <ml...@ju...> wrote: >=20 > Hi, >=20 > On Sun, 2005-06-26 at 21:54 -0500, Pulihora Ramaraju wrote: > > Hi gurus, > > I have been trying to play with java-gnome on my new fedora core-4, it > > distributes java-gnome rpms. > > > > When I run sample programs I am getting Unsatisfied link error saying > > that gtkjni2.6.so <http://gtkjni2.6.so> is not in the path. > > I searched my hard drive to find out location of gtkjni2.6.so<http://gt= kjni2.6.so>,=20 > it is > > not there and instead I found libgtkjni2.6.so <http://libgtkjni2.6.so>.= =20 > I copied > > libgtkjni2.6.so <http://libgtkjni2.6.so> to gtkjni2.6.so<http://gtkjni2= .6.so>.=20 > I added these libraries to my $PATH > > and jvm arg -Djava.library.path, even then I am getting this error. > [...] >=20 > All you have to do is add the directory where libgtkjni-2.6.so<http://lib= gtkjni-2.6.so>is > located to your java.library.path. So in FC4, you would do: >=20 > java -Djava.library.path=3D/usr/lib/ <...> >=20 >=20 > Regards, > Ismael >=20 > P.S. You have to reinstall the java-gnome rpms if you want it to work > though. >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net <http://SF.Net> email is sponsored by: Discover Easy Linux=20 > Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclic= k > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Ismael J. <ml...@ju...> - 2005-06-27 07:13:57
|
Hi, On Sun, 2005-06-26 at 21:54 -0500, Pulihora Ramaraju wrote: > Hi gurus, > I have been trying to play with java-gnome on my new fedora core-4, it > distributes java-gnome rpms. > > When I run sample programs I am getting Unsatisfied link error saying > that gtkjni2.6.so is not in the path. > I searched my hard drive to find out location of gtkjni2.6.so, it is > not there and instead I found libgtkjni2.6.so. I copied > libgtkjni2.6.so to gtkjni2.6.so. I added these libraries to my $PATH > and jvm arg -Djava.library.path, even then I am getting this error. [...] All you have to do is add the directory where libgtkjni-2.6.so is located to your java.library.path. So in FC4, you would do: java -Djava.library.path=/usr/lib/ <...> Regards, Ismael P.S. You have to reinstall the java-gnome rpms if you want it to work though. |
From: Pulihora R. <pul...@gm...> - 2005-06-27 02:54:38
|
Hi gurus, I have been trying to play with java-gnome on my new fedora core-4, it=20 distributes java-gnome rpms. When I run sample programs I am getting Unsatisfied link error saying that= =20 gtkjni2.6.so <http://gtkjni2.6.so> is not in the path. I searched my hard drive to find out location of gtkjni2.6.so<http://gtkjni2.6.so>, it is not there and instead I found libgtkjni2.6.so <http://libgtkjni2.6.so= >.=20 I copied libgtkjni2.6.so <http://libgtkjni2.6.so> to gtkjni2.6.so<http://gtkjni2.6.so>. I added these libraries to my $PATH and jvm arg -Djava.library.path, even= =20 then I am getting this error. I uninstalled 2.6 java-gnome and installed 2.4 java-gnome rpms, even then I= =20 am having same problems. I tried compiling from latest sources, getting an error saying that it need= s=20 gcj, do I need to install gcj and give a build. Can't I build from sources= =20 with java 5.0 compiler? If any body has a working java-gnome on fedora core 4, please let me know. thanks pulihora |
From: pancake <pa...@ph...> - 2005-06-25 18:29:07
|
fix the gtk2.6.jar path inside your MANIFEST or just put your jar into the = classpath and execute your main class using the classpath: java -cp myjar.jar:${CLASSPATH} Main On Sat, 25 Jun 2005 13:57:10 -0300 marcio ribeiro <mar...@gm...> wrote: > Hello personal... > everything well...=20 >=20 > I am creating a file *. jar of an application that makes use of the > java-gnome, but when I will execute the application it returns me the > following error. >=20 > java.lang.NoClassDefFoundError: org/gnu/gtk/Gtk. >=20 > Now the same application being executed in the console works correctly. >=20 > java - My jar application. jar >=20 > I am using my WinXP CLASSPATH is like this: >=20 > .;%CLASSPATH%;C:\java-gnome\share\java\gtk2.6.jar;C:\java-gnome\share\jav= a\glade2.10.jar >=20 > Thank . >=20 > --MarcioRibeiro-- >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dclick > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
From: marcio r. <mar...@gm...> - 2005-06-25 16:57:13
|
Hello personal... everything well...=20 I am creating a file *. jar of an application that makes use of the java-gnome, but when I will execute the application it returns me the following error. java.lang.NoClassDefFoundError: org/gnu/gtk/Gtk. Now the same application being executed in the console works correctly. java - My jar application. jar I am using my WinXP CLASSPATH is like this: .;%CLASSPATH%;C:\java-gnome\share\java\gtk2.6.jar;C:\java-gnome\share\java\= glade2.10.jar Thank . --MarcioRibeiro-- |
From: Thijs 'L. L. <la...@sa...> - 2005-06-25 12:36:46
|
Heya Igor, The data that is typd in the the TextView is stored in a TextBuffer, I=20 suggest you do this: text =3D (TextView)libg.getWidget("My textview drawn in the glade"); TextBuffer buffer =3D text.getBuffer(); String data =3D buffer.getText(buffer.getStartIter, buffer.getEndIter, tr= ue); with this you get the data from the start till the end of the text view=20 with all the hidden chars (which is what the last param stands for. Hope this will get you going, Greets, Thijs 'Lamex' Leibbrand igor hiarley wrote: > Hello personal everything in... > my name is igor hiarley and it is a pleasure to do part of the list. > > do I have a question to do, as I recover the data typed in a TextView?=20 > I am using Glade to create the screens. in my class Java in I did like=20 > this. > > private TextView text; > LibGlade libg =3D new LibGlade ("........") > .... > text =3D (TextView)libg.getWidget("My textview drawn in the glade"); > > Which done the method that I use to recover the data type by the user=20 > in TextView??? > > Does some other component that I can use in the place of the textView=20 > that supports multiple text lines exist??? > > Thank you!!! > > _________________________________________________________________ > Chegou o que faltava: MSN Acesso Gr=E1tis. Instale J=E1!=20 > http://www.msn.com.br/discador > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dcl= ick > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
From: igor h. <igo...@ho...> - 2005-06-25 12:21:40
|
Hello personal everything in... my name is igor hiarley and it is a pleasure to do part of the list. do I have a question to do, as I recover the data typed in a TextView? I am using Glade to create the screens. in my class Java in I did like this. private TextView text; LibGlade libg = new LibGlade ("........") .... text = (TextView)libg.getWidget("My textview drawn in the glade"); Which done the method that I use to recover the data type by the user in TextView??? Does some other component that I can use in the place of the textView that supports multiple text lines exist??? Thank you!!! _________________________________________________________________ Chegou o que faltava: MSN Acesso Grátis. Instale Já! http://www.msn.com.br/discador |
From: Igor F. <if...@re...> - 2005-06-23 15:28:40
|
Hi all, I'm still banging my head on a variation of this problem. With the TreeView I ended up creating a timer that would fire off after the mouse handler was invoked, get the current selection and find what was clicked on that way. Now I'm having this problem with a TextView. However, if I right-click on a TextView, the selection isn't changed. So my approach doesn't work. The only plausible way I see of doing this is to map the mouse location to a lineNum/offset in the TextView somehow. After digging through the java docs for a while, I can't find anything appropriate. Does anyone know of a way this can be accomplished? Thanks, Igor On Fri, 2005-06-17 at 10:37 -0400, Igor Foox wrote: > Hi, > > I'm trying to get context-sensitive popup menus to appear in a tree > view. I want to be able to figure out which row the mouse is over in my > popup handler method (which uses MouseListener). The problem is that I > can't find anything that will tell me the location of the mouse over the > TreeView, only the current selection, so if I click on anything other > than the currently selected item, this won't work. Is there any > convenient way I can extract this information? > > > Thanks, > Igor > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
From: Andrew C. <an...@op...> - 2005-06-22 03:40:33
|
On Tue, 2005-21-06 at 15:17 -0400, Sami Wagiaalla wrote: > CustomEvents that i add are not getting handled until I move the mouse > over my widgets. I used to think that Thread.yield() did the trick, and it did in one working example I had. But then I used the exact same code in a piece of production code, and it *didn't* work - mouse movement (ie, a Gtk event) required. Grr. I recalled a comment someone made on IRC, and in a flash of inspiration, speculated that if a GtkTimer was running, maybe it awakening would cause an event which would get the main loop to fire. This seems to work. Code snippet: Timer _ticker = null int INTERVAL = 50; ... _ticker = new Timer(INTERVAL, new Fireable() { private long last; public boolean fire() { long now = System.currentTimeMillis(); System.err.println("Timer fired. Elapsed " + (now - last) + ", compared to interval "+INTERVAL); last = now; return true; } }); _ticker.start(); I know others have discussed the fundamental bug lurking down in the way that CustomEvents is hooked into the main loop, but I don't off hand know what that diagnosis is. AfC Sydney -- We treat all communications to be in confidence and to the personal attention of the intended recipient. Messages are conveyed with the expectation that commercial best effort measures will be taken by both parties to maintain confidentiality and to prevent disclosure to unauthorized persons. Unless stated otherwise and digitally signed, this email is not to be construed as a contract. Attention is drawn to our standard terms and conditions, http://www.operationaldynamics.com/about/faq/terms/ which serve as a guideline to help shape expectations. Actual terms will be presented in a formal proposal and are as individually agreed between us and each client. Corporate details, our privacy policy, and related information can be obtained on by contacting us electronically or in writing at GPO Box 4339, Sydney, NSW, 2001, Australia. ABN 94 103 213 136 If this message was received in error or you are not the intended recipient please notify us immediately, destroy this original, and delete it from any electronic or archive systems it may have been stored on. |
From: Thijs 'L. L. <la...@sa...> - 2005-06-21 21:39:14
|
Heya, use Thread.yield() method... greets, Thijs 'Lamex' Leibbrand Sami Wagiaalla wrote: > Hi Everybody, > > CustomEvents that i add are not getting handled untill I move the > mouse over my widgets. > Does any body have a fix for this, or a pointer to a working example > > Thanx, > Sami > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
From: Ismael J. <ml...@ju...> - 2005-06-21 21:31:31
|
On Mon, 2005-06-20 at 14:41 -0400, Igor Foox wrote: > Hi, > > I'm having a problem using DataColumnObjects. I have the following code: > > ___________________________________________ > TreeIter storeIter = store.appendRow(null); > > store.setValue(storeIter, referenceDataColumn, varRep); > Object obj = store.getValue(storeIter, referenceDataColumn); > System.out.println(obj); > ___________________________________________ > > Here referenceDataColumn is an object of type DataColumnObject. > >From what I understand I should be able to get my object back, however > this prints null everytime through the code. Did anyone have these > problems before, is there anything special I need to do to store my > objects in a DataColumnObject? [...] Hi, At first glance, this looks like http://bugzilla.gnome.org/show_bug.cgi?id=301239 . Is this what you're seeing? It has been fixed for some time, but after the last stable release I think. Regards, Ismael |
From: Sami W. <swa...@re...> - 2005-06-21 19:17:40
|
Hi Everybody, CustomEvents that i add are not getting handled untill I move the mouse over my widgets. Does any body have a fix for this, or a pointer to a working example Thanx, Sami |
From: Ismael J. <ml...@ju...> - 2005-06-21 18:19:25
|
On Mon, 2005-06-20 at 14:41 -0400, Igor Foox wrote: > Hi, > > I'm having a problem using DataColumnObjects. I have the following code: > > ___________________________________________ > TreeIter storeIter = store.appendRow(null); > > store.setValue(storeIter, referenceDataColumn, varRep); > Object obj = store.getValue(storeIter, referenceDataColumn); > System.out.println(obj); > ___________________________________________ > > Here referenceDataColumn is an object of type DataColumnObject. > >From what I understand I should be able to get my object back, however > this prints null everytime through the code. Did anyone have these > problems before, is there anything special I need to do to store my > objects in a DataColumnObject? [...] Hi, At first glance, this looks like http://bugzilla.gnome.org/show_bug.cgi?id=301239 . Is this what you're seeing? It has been fixed for some time, but after the last stable release I think. Regards, Ismael |
From: Igor F. <if...@re...> - 2005-06-21 18:05:48
|
Here is a very simple test case, which shows what I was talking about in the previous email. I just create a TreeStore with a single DataColumnObject, I add a string to it, and try to get it back. Instead I get null. Did anyone else encounter this? Thanks, Igor On Mon, 2005-06-20 at 14:41 -0400, Igor Foox wrote: > Hi, > > I'm having a problem using DataColumnObjects. I have the following code: > > ___________________________________________ > TreeIter storeIter = store.appendRow(null); > > store.setValue(storeIter, referenceDataColumn, varRep); > Object obj = store.getValue(storeIter, referenceDataColumn); > System.out.println(obj); > ___________________________________________ > > Here referenceDataColumn is an object of type DataColumnObject. > >From what I understand I should be able to get my object back, however > this prints null everytime through the code. Did anyone have these > problems before, is there anything special I need to do to store my > objects in a DataColumnObject? > > Thanks, > Igor > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
From: Igor F. <if...@re...> - 2005-06-21 16:55:53
|
Hi Andrew, Thanks for the mail. I've attached a tarball of the code in the state that it was at the time of my initial email. Since then I've changed my code and it now works. What I had is a TreeStore, with 2 TreeFilters on top of it, and another TreeFilter on top of one of the first ones. I've removed this stacking of filters and that resolves the problem. However, I don't know if stacking Filters is legal, but due to lack of any contrary evidence I assume it should be. In any case, what I found from my debugging is that it seems to be a problem with this stacking of filters. What would happen is that while the bottom filter (if you imagine them stacked up) is in its filter() method, the top filter would get called in the middle, this caused some problems, and hence the warnings I was getting. If anyone can make any sense of it, I think it would be probably useful. Thanks, Igor On Sun, 2005-06-19 at 14:02 +0930, Andrew Cowie wrote: > On Mon, 2005-13-06 at 14:03 -0400, Igor Foox wrote: > > I'm having problem tracing this problem down, it seems that in my sample > > program it doesn't happen, but happens in the real program. > > Gotta love it. > > > I must admit > > that the program has somewhat a spaghetti structure > > That's ok. Ordinarily there is a pretty high bar in the Open Source > world before releasing code, because we are afraid to be judged on our > pasta code. (I took over a month out from coding to write a configure > and Makefile scheme, just so others would be able to build my project). > > But in this case, tracking down bugs in obscure corner cases of > java-gnome that have not previously been exercised is more important. So > if you can tarball your code in some manner, then others can try and > replicate the problem. > > AfC > Adelaide > |
From: Igor F. <if...@re...> - 2005-06-20 18:41:47
|
Hi, I'm having a problem using DataColumnObjects. I have the following code: ___________________________________________ TreeIter storeIter = store.appendRow(null); store.setValue(storeIter, referenceDataColumn, varRep); Object obj = store.getValue(storeIter, referenceDataColumn); System.out.println(obj); ___________________________________________ Here referenceDataColumn is an object of type DataColumnObject. >From what I understand I should be able to get my object back, however this prints null everytime through the code. Did anyone have these problems before, is there anything special I need to do to store my objects in a DataColumnObject? Thanks, Igor |
From: Andrew C. <an...@op...> - 2005-06-19 12:51:03
|
On Fri, 2005-17-06 at 21:34 +0200, Michael Kanis wrote: > Is writing applets even possible with java-gnome? No, no one has wrapped those libraries as yet. AfC Sydney |
From: Andrew C. <an...@op...> - 2005-06-19 04:32:43
|
On Mon, 2005-13-06 at 14:03 -0400, Igor Foox wrote: > I'm having problem tracing this problem down, it seems that in my sample > program it doesn't happen, but happens in the real program. Gotta love it. > I must admit > that the program has somewhat a spaghetti structure That's ok. Ordinarily there is a pretty high bar in the Open Source world before releasing code, because we are afraid to be judged on our pasta code. (I took over a month out from coding to write a configure and Makefile scheme, just so others would be able to build my project). But in this case, tracking down bugs in obscure corner cases of java-gnome that have not previously been exercised is more important. So if you can tarball your code in some manner, then others can try and replicate the problem. AfC Adelaide -- Andrew Frederick Cowie Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Michael K. <mk...@gm...> - 2005-06-17 19:34:42
|
Hello, I'm new to java-gnome and this list. I already played a bit around with the API and also wrote a little app. Now I would like to turn it into a panel applet, but I don't have clue, how to do this and where to begin. Also I didn't find anything about this on the website... Is writing applets even possible with java-gnome? Regards, Michael |
From: Igor F. <if...@re...> - 2005-06-17 14:37:58
|
Hi, I'm trying to get context-sensitive popup menus to appear in a tree view. I want to be able to figure out which row the mouse is over in my popup handler method (which uses MouseListener). The problem is that I can't find anything that will tell me the location of the mouse over the TreeView, only the current selection, so if I click on anything other than the currently selected item, this won't work. Is there any convenient way I can extract this information? Thanks, Igor |
From: Ralph H. <ra...@gm...> - 2005-06-16 04:55:00
|
Hello, i have a Problem with the TreeView. I'm write a little TestProgram with TreeView, i have (a little Code for example). I will when the Program start's , i will selectet a Column by default. The default Column is by the most start diffrent. I have not found a example todo this. Can you give ma a little example. I hope you understand my bad english! Greets Ralph Create TreeView from a glade-file ---------- GuiProgram --------------- .... private void initTreeViewBouquet() { tvBouquet.getSelection().addListener((TreeSelectionListener) this); dc = new DataColumn[2]; dc[0] = new DataColumnString(); dc[1] = new DataColumnString(); lsBouquet = new ListStore(dc); control.readBouquets(lsBouquet, dc); tvBouquet.setModel(lsBouquet); tvBouquet.setEnableSearch(true); tvBouquet.setAlternateRowColor(true); tvBouquet.setHeadersVisible(true); TreeViewColumn col0 = new TreeViewColumn(); CellRendererText render0 = new CellRendererText(); col0.packStart(render0, true); col0.addAttributeMapping(render0, CellRendererText.Attribute.TEXT,(DataColumnString) dc[1]); col0.setTitle("Bouquet"); tvBouquet.appendColumn(col0); tvBouquet.setSearchDataColumn(dc[1]); //tvBouquet.setSelectionColumn(control.getCulumnForSelection()) //TODO } ---------- GuiProgram --------------- i'm filling the TreeView... --------- ControlProgram ------------- ... public void readBouquets(ListStore ls, DataColumn dc[]){ ArrayList t = new ArrayList(ControlMain.getInstance().getBoxAccess().getBouquetList()); this.setBouquetList(t); TreeIter it = null; ls.clear(); for (int i = 0; i < t.size(); i++){ it = ls.appendRow(); ls.setValue(it, (DataColumnString) dc[0], new String(""+i)); ls.setValue(it, (DataColumnString) dc[1], (String)((BOBouquet)t.get(i)).getBouquetName()); } } public xxxx getCulumnForSelection(){ //TODO } --------- ControlProgram ------------- -- Ralph Henneberger <ra...@gm...> |
From: pancake <pa...@ph...> - 2005-06-15 20:38:21
|
-- - Using gtk layout manger for java programmer in TODO :) -- - Using Gtk.TreeView for java programmer it's done by me in the java-gnome wiki -- I want to write them but I'm not a native speaker/writer. -- I'll gladly review and translate if someone write them. don't worry. use the wiki: http://java-gnome.sourceforge.net/cgi-bin/bin/save/Main/LayoutTutorial recently opened by me :) i'm on exams, but I promise to write there. |
From: Dongsu J. <io...@he...> - 2005-06-15 18:35:31
|
Hi, The official gtk tutorial shows the details of GtkTable and GtkBox widgets, so we called layout manager. http://www.gtk.org/tutorial/ch-packingwidgets.html IMHO, the combination of GtkTable and GtkBox is simple than GridBagLayout but powerful enough. To make an easy approach for java-gnome, we need following tutorials: - Using gtk layout manger for java programmer - Using Gtk.TreeView for java programmer I want to write them but I'm not a native speaker/writer. I'll gladly review and translate if someone write them. pancake wrote: >>hi, >>it's not an attribute of GtkLabel(exactly GtkMisc, the superclass of). >>you may use Gtk.Misc.setAlignment() method to do. >> >> > >ok, thanks..and how to put it as width=100% ? without using a Table...may be good to create a tutorial about how to use Table widget. > > > > >>BTW, your apps looks great. How can i try it? ;) >> >> > > >it's a alpha-beta-release :) just for impatient users like you: > >http://news.nopcode.org/ClasspathBrowser.tgz > >would be good if someone looks at my gtkhtml problem report. My app crashes on that. > >The javadoc URL is hardcoded (by now) to the sun webpage. But this will be soon configurable :) > >enjoy. > > >------------------------------------------------------- >This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput >a projector? How fast can you ride your desk chair down the office luge track? >If you want to score the big prize, get to know the little guy. >Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >_______________________________________________ >java-gnome-developer mailing list >jav...@li... >https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > |
From: Igor F. <if...@re...> - 2005-06-13 18:04:13
|
On Mon, 2005-06-13 at 13:14 -0400, Igor Foox wrote: > > On Mon, 2005-06-13 at 14:59 +0100, Ismael Juma wrote: > > On Mon, 2005-06-13 at 09:51 -0400, Igor Foox wrote: > > > Hi, > > > > > > I'm playing around with TreeModels, TreeFilters and so on... At one > > > point I have a TreeStore and on top of it I build a TreeModelFilter. At > > > some point I wait for a user to click on an element in a TreeView that > > > is built on the TreeModelFilter and then get an iterator for the > > > TreeModelFilter based on the selection. It seems that when I do that I > > > get a warning from GTK, although everything works. This warning does not > > > creep up when I step through the code, only when it is run at full > > > speed. Any idea what this might be caused by? Am I safe to ignore it? > > [...] > > > > No, this should not happen. Would you mind opening a bug report with the > > information you gave here and if possible, a small test case? Also, > > please mention the version of the libraries where this happens. Thanks. > > > > Regards, > > Ismael > > Hi Ismael, > > I have been trying to reproduce the problem, by constructing a simple > test case, unfortunately the simple test case doesn't show the problem, > only my not-so-simple program does :). > I'll try to get at the root. > > Igor I'm having problem tracing this problem down, it seems that in my sample program it doesn't happen, but happens in the real program. I must admit that the program has somewhat a spaghetti structure since I am only getting to know java-GNOME and GTK, so I'm experimenting with things and add more and more on top. The problem seems to occur even when references to the TreeModelFilter are replaced with references to the TreeStore, only then it is harder to produce. Can someone shed any light on what the error is supposed to mean, and what it might be related to? Thanks, Igor ------------------- java.lang.Exception: gtk_tree_model_filter_ref_node: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) java.lang.Exception: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) (java-gnome:7726): GLib-GObject-CRITICAL **: g_object_set_property: assertion `G_IS_VALUE (value)' failed (java-gnome:7726): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed java.lang.Exception: gtk_tree_model_filter_real_unref_node: assertion `filter->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) java.lang.Exception: gtk_tree_model_filter_ref_node: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) java.lang.Exception: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) (java-gnome:7726): GLib-GObject-CRITICAL **: g_object_set_property: assertion `G_IS_VALUE (value)' failed (java-gnome:7726): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed java.lang.Exception: gtk_tree_model_filter_real_unref_node: assertion `filter->priv->stamp == iter->stamp' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:55) at com.redhat.uicopy.WindowLauncher.main(WindowLauncher.java:170) |
From: Igor F. <if...@re...> - 2005-06-13 17:14:39
|
On Mon, 2005-06-13 at 14:59 +0100, Ismael Juma wrote: > On Mon, 2005-06-13 at 09:51 -0400, Igor Foox wrote: > > Hi, > > > > I'm playing around with TreeModels, TreeFilters and so on... At one > > point I have a TreeStore and on top of it I build a TreeModelFilter. At > > some point I wait for a user to click on an element in a TreeView that > > is built on the TreeModelFilter and then get an iterator for the > > TreeModelFilter based on the selection. It seems that when I do that I > > get a warning from GTK, although everything works. This warning does not > > creep up when I step through the code, only when it is run at full > > speed. Any idea what this might be caused by? Am I safe to ignore it? > [...] > > No, this should not happen. Would you mind opening a bug report with the > information you gave here and if possible, a small test case? Also, > please mention the version of the libraries where this happens. Thanks. > > Regards, > Ismael Hi Ismael, I have been trying to reproduce the problem, by constructing a simple test case, unfortunately the simple test case doesn't show the problem, only my not-so-simple program does :). I'll try to get at the root. Igor |