java-gnome-developer Mailing List for The java-gnome language bindings project (Page 69)
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: Jerry H. <jh...@fe...> - 2004-10-04 17:15:12
|
You seem to think Java is not used for Open Source work. You may in fact be correct at least for highly visible applications. How many public Desktop applications do you know of that are written in Java? I can count them on one hand. But library's? Hundreds of not thousands. Just look at Jakarta! Hibernate, Castor. There are tons of examples. Behind the scene, Java is used immensely. Desktop applications inside corporations, when not built using some Microsoft language, are almost always Java. You rarely hear about these unless you work for a company in question. Where does Java-Gnome fit in? I'm not entirely sure. I recently discovered it while looking for a solution for my company's in house applications. We were originally however going to go with SWT. However, what changed our minds was the potential for RAD that Java-Gnome offers. Combined with Glade it is an unbeatable combination. I also think the API is quite a bit cleaner than SWT. I really like it! Hacking on Java-Gnome is something I am really interested in. I have a lot of ideas I am working on right now. A major stumbling block I am hitting is the build system you mention. I find the need to write JNI bindings for each widget that you want to wrap unnecessary and excessive. I would like to create GObjects from within Java (overriding TreeModel), so I am working on these things. Is anybody else? (Being able to inspect GObject vmethods would sure help!!!) After this, integrating a Glade designer into Eclipse should be a snap. One I'd be happy to work on. This is where it's at guys! We have an amazing potential for RAD that I can only classify as "kind of like VB". Quick prototyping and usage of widgets and forms. The difference being Java doesn't suck. ;) More visibility would help. It took me awhile to realize that there was even a Java-Gnome. If you'd like to hear some more of my ideas about getting rid of JNI, let me know. I have a lot of them. :0 Jerry Haltom |
From: Mark H. <mh...@ti...> - 2004-10-02 13:20:13
|
Hi, Java-gnome 2.x has small example applications built into it. 0.8 is now extremely old and deprecated. Please condiser upgrading to 2.6 On Sat, Oct 02, 2004 at 11:51:06AM +0200, <mu...@vo...> wrote: > Hi, > I need some example tests for libgtk-java-0.8.3. > mus > ------------------------------------------ > > Faites un voeu et puis Voila ! www.voila.fr > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: \ <mu...@vo...> - 2004-10-02 09:52:22
|
Hi, I need some example tests for libgtk-java-0.8.3. mus ------------------------------------------ Faites un voeu et puis Voila ! www.voila.fr |
From: Mark H. <mh...@ti...> - 2004-09-30 12:22:42
|
The code generators were used to create the original bindings. We have not used them since. Conversion to using Strings instead of byte[] was done manually, as was writing most of the interfaces. On Thu, Sep 30, 2004 at 02:00:01PM +0530, Ashish Gupta wrote: > Hi > i am trying to generate JNI wrappers for C library using Java-gnome > code genrator (version 2.6.1). What i understand is code generator > utilises JNIprops.txt file for conversion of data types between C and > Java. I find corresponding to (char*) there is byte [] defined in > JNIprops.txt so there should be byte array in generated code but if > you see the Java code it has String instead of byte array. Am i using > some different code generator or can some one explain how to generate > String instead of byte array. > > Thanks > Ashish > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Ashish G. <ash...@gm...> - 2004-09-30 08:30:11
|
Hi i am trying to generate JNI wrappers for C library using Java-gnome code genrator (version 2.6.1). What i understand is code generator utilises JNIprops.txt file for conversion of data types between C and Java. I find corresponding to (char*) there is byte [] defined in JNIprops.txt so there should be byte array in generated code but if you see the Java code it has String instead of byte array. Am i using some different code generator or can some one explain how to generate String instead of byte array. Thanks Ashish |
From: \ <mu...@vo...> - 2004-09-29 15:36:49
|
Hi, Is there any java-gnome rpm for mandrake, with support for GTK+2.0 ? I have installed libgtk-java.0.8 and i want examples to test if it works. ------------------------------------------ Faites un voeu et puis Voila ! www.voila.fr |
From: Rishabh M. <rma...@gm...> - 2004-09-23 22:22:15
|
I have been fooling around some more and this is what I have got now:- I get this error when i try to open the About window: ListenerDelegate.fireEvent(org.gnu.gtk.event.MenuItemEvent[source=org.gnu.gtk.ImageMenuItem@816f6e0,id=ACTIVATE]): java.lang.UnsatisfiedLinkError: gnome_about_new java.lang.UnsatisfiedLinkError: gnome_about_new at org.gnu.gnome.About.gnome_about_new(Native Method) at org.gnu.gnome.About.init(About.java:42) at org.gnu.gnome.About.<init>(About.java) at org.jfortuneui.jfortuneui.on_about1_activate(jfortuneui.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.gnu.glade.ListenerDelegate.fireEvent(ListenerDelegate.java:114) at org.gnu.glade.ListenerDelegate.fireEvent(ListenerDelegate.java:86) at org.gnu.glade.MenuItemDelegate.menuItemEvent(MenuItemDelegate.java:20) at org.gnu.gtk.MenuItem.fireMenuItemEvent(MenuItem.java:197) at org.gnu.gtk.MenuItem.handleActivate(MenuItem.java:203) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:53) at org.jfortuneui.jfortuneui.main(jfortuneui.java:102) I have changed the method for activating the about window to look like this: public void on_about1_activate(MenuItemEvent event) { String title = "Java Fortune Teller"; String version = "Version " + appVersion; String license = "(c) Rishabh Manocha. Released under the(GPL). See COPYING for details."; String[] authors = { "Rishabh Manocha(rma...@cs...)" }; String[] documenters = { "Rishabh Manocha" }; String comments = "jfortuneui is a graphical/frontend interface to the command line program jfortune."; About about = new About(title, version, license, comments, authors, documenters, "", null); about.show(); } I get the above error string when i sue Gtk.init(args) in main instead of the code given in the tutorial: Program.initGnomeUI("jfortune", jfortuneui.appVersion, args); with this command the window does open but nothing can be done with it, while with Gtk.init(args) the window does not open at all, it only displays the above error string. can someone decode it for me and tell me what I might need to add/remove. Thanks --Rishabh On Wed, 22 Sep 2004 18:02:52 -0500, Rishabh Manocha <rma...@gm...> wrote: > Hey guys, > I finally seem to have been succesfull in getting the click events > taken care of etc.(I am using glade...and I love it). > I have one small problem though. Whenever I open the about > window(help->about), the window opens just fine but then the click > events do not respond. I have basically copied and pasted the code for > displaying the about window from the tutorial. > It was working when i initially made the design using glade. But then > somewhere along the way, it has stopped working. Has someone > experienced this before?? > You can check the java code and the glade file here: > > http://cvs.sourceforge.net/viewcvs.py/jfortune/GUI/org/jfortuneui/#dirlist > > You can check out screenshots here: > http://jfortune.sf.net/shots/ > > Thanks > Rishabh Manocha > |
From: Rishabh M. <rma...@gm...> - 2004-09-22 23:02:55
|
Hey guys, I finally seem to have been succesfull in getting the click events taken care of etc.(I am using glade...and I love it). I have one small problem though. Whenever I open the about window(help->about), the window opens just fine but then the click events do not respond. I have basically copied and pasted the code for displaying the about window from the tutorial. It was working when i initially made the design using glade. But then somewhere along the way, it has stopped working. Has someone experienced this before?? You can check the java code and the glade file here: http://cvs.sourceforge.net/viewcvs.py/jfortune/GUI/org/jfortuneui/#dirlist You can check out screenshots here: http://jfortune.sf.net/shots/ Thanks Rishabh Manocha |
From: Mark H. <mh...@ti...> - 2004-09-21 19:08:23
|
On Fri, Sep 17, 2004 at 11:53:07AM +0200, Stephane Konstantaropoulos wrote: > > test.java:23: reference to RadioButton is ambiguous, both method > > RadioButton(org.gnu.gtk.RadioButton[],java.lang.String,boolean) in > > org.gnu.gtk.RadioButton and method > > RadioButton(org.gnu.gtk.RadioButton,java.lang.String,boolean) in > > org.gnu.gtk.RadioButton match > > RadioButton radiobtn =3D new RadioButton(null,label,false); > Why not use RadioButton(0)? This could work... I think he means new Radiobutton( new RadioButton[0] {}, string, bool) Alternatively, you could cast the null to one of the two alternatives: (RadioButton) null --=20 .''`. Mark Howard : :' : `. `' http://www.tildemh.com=20 `- mh...@de... | mh...@ti...=20 |
From: Rishabh M. <rma...@gm...> - 2004-09-20 05:17:05
|
oh and i forgot to all...I do have the libglade libraries(the .so files) in /usr/lib/jni/ thanks --Rishabh On Mon, 20 Sep 2004 00:16:26 -0500, Rishabh Manocha <rma...@gm...> wrote: > umm...I dont seem to be able to compile files with glade objects. I > cant seem to find the libglade.jar file?? > I am using debian and i issued the command given on the java-gnome > website to install all the packages. > here is all what i have: > > ii libglade0-java 2.6.0.1-7 Dummy package to aid upgrade > ii libglade2-java 2.6.0.1-7 Java support for libglade gnome interface > ii libgnome0-java 2.6.0.1-7 Dummy package to aid upgrade > ii libgnome2-java 2.6.0.1-7 Java framework for creating GNOME applicatio > ii libgnome2-jni 2.6.0.1-7 Java framework for creating GNOME applicatio > ii libgtk0-java 2.6.0.1-7 Dummy package to aid upgrade > ii libgtk2-java 2.6.0.1-7 Gtk framework for Java > ii libgtk2-jni 2.6.0.1-7 GTK framework for Java > ii libjava-gnome- 2.6.0.1-7 API docs and example apps for GTK/GNOME java > > I know i might be irritating some people out here...but can someone > help me with this. I did get the libglade package from the sf site but > the src directory does not seem to compile and hence i cant create the > jar file myself. I will try to do this again though. > In the meanwhile...any and all suggestions are welcome...:) > --Rishabh > > > On Mon, 20 Sep 2004 09:56:22 +1000, Andrew Cowie > <an...@op...> wrote: > > On Sun, 2004-09-19 at 17:02 -0500, Rishabh Manocha wrote: > > > I figured i would first do some of the work by hand so that i get an > > > idea of the whole procedure and then move onto glade. > > > > Yeah, I tried that and ended up being tricked by the same inadequacies > > of UIInfo that you were. It's just not a very good way to do things. > > > > What I've settled on is using libglade for basic window layout, because > > it's really good at taking care of all the mundane property setting l > > (like packing on VBoxs, window sizes, gravity, etc) - and then I use > > straight up GTK calls to add elements to the UI as I need them. > > > > In particular, I've been testing libgtkhtml. There is *no* Glade support > > for GtkHtml widgets (that's not a Java issue - it's a Glade one). Rather > > than giving up on glade, I simply get the container that's where I want > > to put the widget from libglade (in this case "vbox1"): > > > > LibGlade glade = null; > > HTMLView gtkhtml = null; > > > > try { > > glade = new LibGlade("htmltest.glade", this); > > } catch (Exception e) { > > e.printStackTrace(); > > } > > > > VBox vbox = (VBox) glade.getWidget("vbox1"); > > > > instantiate the GtkHTML widget, > > > > HTMLDocument doc = new HTMLDocument(); > > try { > > doc.loadFile("htmltest.html"); > > } catch (Exception e) { > > e.printStackTrace(); > > } > > > > gtkhtml = new HTMLView(); > > gtkhtml.setDocument(doc); > > gtkhtml.setMinimumSize(10,40); > > > > and then pack the widget on the end of the vbox. > > > > vbox.packEnd(gtkhtml, true, true, 0); > > vbox.showAll(); > > > > Works pretty well. > > > > AfC > > Sydney > > > > -- > > Andrew Frederick Cowie > > > > OPERATIONAL DYNAMICS > > Operations Consultants and Infrastructure Engineers > > > > http://www.operationaldynamics.com/ > > > > > > > > > |
From: Rishabh M. <rma...@gm...> - 2004-09-20 05:16:33
|
umm...I dont seem to be able to compile files with glade objects. I cant seem to find the libglade.jar file?? I am using debian and i issued the command given on the java-gnome website to install all the packages. here is all what i have: ii libglade0-java 2.6.0.1-7 Dummy package to aid upgrade ii libglade2-java 2.6.0.1-7 Java support for libglade gnome interface ii libgnome0-java 2.6.0.1-7 Dummy package to aid upgrade ii libgnome2-java 2.6.0.1-7 Java framework for creating GNOME applicatio ii libgnome2-jni 2.6.0.1-7 Java framework for creating GNOME applicatio ii libgtk0-java 2.6.0.1-7 Dummy package to aid upgrade ii libgtk2-java 2.6.0.1-7 Gtk framework for Java ii libgtk2-jni 2.6.0.1-7 GTK framework for Java ii libjava-gnome- 2.6.0.1-7 API docs and example apps for GTK/GNOME java I know i might be irritating some people out here...but can someone help me with this. I did get the libglade package from the sf site but the src directory does not seem to compile and hence i cant create the jar file myself. I will try to do this again though. In the meanwhile...any and all suggestions are welcome...:) --Rishabh On Mon, 20 Sep 2004 09:56:22 +1000, Andrew Cowie <an...@op...> wrote: > On Sun, 2004-09-19 at 17:02 -0500, Rishabh Manocha wrote: > > I figured i would first do some of the work by hand so that i get an > > idea of the whole procedure and then move onto glade. > > Yeah, I tried that and ended up being tricked by the same inadequacies > of UIInfo that you were. It's just not a very good way to do things. > > What I've settled on is using libglade for basic window layout, because > it's really good at taking care of all the mundane property setting l > (like packing on VBoxs, window sizes, gravity, etc) - and then I use > straight up GTK calls to add elements to the UI as I need them. > > In particular, I've been testing libgtkhtml. There is *no* Glade support > for GtkHtml widgets (that's not a Java issue - it's a Glade one). Rather > than giving up on glade, I simply get the container that's where I want > to put the widget from libglade (in this case "vbox1"): > > LibGlade glade = null; > HTMLView gtkhtml = null; > > try { > glade = new LibGlade("htmltest.glade", this); > } catch (Exception e) { > e.printStackTrace(); > } > > VBox vbox = (VBox) glade.getWidget("vbox1"); > > instantiate the GtkHTML widget, > > HTMLDocument doc = new HTMLDocument(); > try { > doc.loadFile("htmltest.html"); > } catch (Exception e) { > e.printStackTrace(); > } > > gtkhtml = new HTMLView(); > gtkhtml.setDocument(doc); > gtkhtml.setMinimumSize(10,40); > > and then pack the widget on the end of the vbox. > > vbox.packEnd(gtkhtml, true, true, 0); > vbox.showAll(); > > Works pretty well. > > AfC > Sydney > > -- > Andrew Frederick Cowie > > OPERATIONAL DYNAMICS > Operations Consultants and Infrastructure Engineers > > http://www.operationaldynamics.com/ > > > > |
From: Abd S. S. <ko...@ax...> - 2004-09-20 01:34:43
|
Thanks. You can use either (RadioButton)null or you declare a radioButton varible and replace a 'null'. Tiago Cogumbreiro wrote: > Or simply cast it like: (RadioButton) null > > On Fri, 2004-09-17 at 09:53, Stephane Konstantaropoulos wrote: > >>Abd Shukur Sharif a écrit : >> >> >>>This is my code: >>>================ >>>public class test >>>{ >>> public static void create_button(String label) >>> { >>> RadioButton radiobtn = new RadioButton(null,label,false); >>> } >>>} >>> >>>After i compile with javac, the error is like this : >>>---------------------------------------------------- >>>test.java:23: reference to RadioButton is ambiguous, both method >>>RadioButton(org.gnu.gtk.RadioButton[],java.lang.String,boolean) in >>>org.gnu.gtk.RadioButton and method >>>RadioButton(org.gnu.gtk.RadioButton,java.lang.String,boolean) in >>>org.gnu.gtk.RadioButton match >>> RadioButton radiobtn = new RadioButton(null,label,false); >>> ^ >>>Anybody can help? Or may be needs to do something with RadioButton >>>Class in java-gnome ?? >> >> >>This is a Java error, the first argument that you pass: "null" , can be >>interpreted both as RadioButton or as RadioButton[], which confuses the >>compiler. >> >>Why not use RadioButton(0)? This could work... >> >>Stephane > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > --- > [This E-mail scanned for viruses by Declude AntiVirus] > > > . > --- [This E-mail scanned for viruses by Declude AntiVirus] |
From: Andrew C. <an...@op...> - 2004-09-19 23:56:28
|
On Sun, 2004-09-19 at 17:02 -0500, Rishabh Manocha wrote: > I figured i would first do some of the work by hand so that i get an > idea of the whole procedure and then move onto glade. Yeah, I tried that and ended up being tricked by the same inadequacies of UIInfo that you were. It's just not a very good way to do things.=20 What I've settled on is using libglade for basic window layout, because it's really good at taking care of all the mundane property setting l (like packing on VBoxs, window sizes, gravity, etc) - and then I use straight up GTK calls to add elements to the UI as I need them. In particular, I've been testing libgtkhtml. There is *no* Glade support for GtkHtml widgets (that's not a Java issue - it's a Glade one). Rather than giving up on glade, I simply get the container that's where I want to put the widget from libglade (in this case "vbox1"): LibGlade glade =3D null; HTMLView gtkhtml =3D null; try { glade =3D new LibGlade("htmltest.glade", this); } catch (Exception e) { e.printStackTrace(); } =09 VBox vbox =3D (VBox) glade.getWidget("vbox1"); instantiate the GtkHTML widget, HTMLDocument doc =3D new HTMLDocument(); try { doc.loadFile("htmltest.html"); } catch (Exception e) { e.printStackTrace(); } gtkhtml =3D new HTMLView(); gtkhtml.setDocument(doc); gtkhtml.setMinimumSize(10,40); and then pack the widget on the end of the vbox. vbox.packEnd(gtkhtml, true, true, 0); vbox.showAll(); Works pretty well. AfC Sydney --=20 Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ |
From: Rishabh M. <rma...@gm...> - 2004-09-19 22:29:30
|
hey guys, I changed the createMEnu section to so(I noticed that App has a method called setMenuBar which accepts a MenuBar object): public void createMenu() { MenuBar bar = new MenuBar(); MenuItem child = new MenuItem("File",false); Menu file = new Menu(); MenuItem quit = new MenuItem("Quit",false); quit.addListener(new ItemListener() { public void itemEvent(ItemEvent event) { fileExit(); } }); file.append(quit); child.setSubmenu(file); bar.append(child); this.app.setMenuBar(bar); } However this does not show a menubar at all. I feel I am so close but yet so far. Could someone pleaaaaase help me. Thanks --Rishabh On Sun, 19 Sep 2004 17:02:46 -0500, Rishabh Manocha <rma...@gm...> wrote: > Hi, > Thanks for your reply. > > > On Sun, 19 Sep 2004 11:05:07 +0100, Mark Howard <mh...@ti...> wrote: > > I've only looked at this quickly, but it seems that you've defined a listener > > for menu item events but not told the menuitems to use that listener. To make > > them use a listener, you must call MyMenuItem.addListener( MyMenuItemListener ) > > for each of them. > For which object do I call the addListener method. I am using an array > of UIInfo objects for the menu items and then just add them to the APP > object running the whole show. I dont see where i need to add the > addListener method. Could you help me out with this? > > One probably more important recommendation I have is to try using glade instead > > -- This makes it far easier to construct java-gnome guis. Unfortunately, > > development of the glade tutorial is stalled at the moment, but you should be > > able to pick it up easily enough. Ask here if you need more help > I figured i would first do some of the work by hand so that i get an > idea of the whole procedure and then move onto glade. > Thanks > Rishabh Manocha > > > > -- > > .''`. Mark Howard > > : :' : > > `. `' http://www.tildemh.com > > `- mh...@de... | mh...@ti... > > > |
From: Rishabh M. <rma...@gm...> - 2004-09-19 22:02:52
|
Hi, Thanks for your reply. On Sun, 19 Sep 2004 11:05:07 +0100, Mark Howard <mh...@ti...> wrote: > I've only looked at this quickly, but it seems that you've defined a listener > for menu item events but not told the menuitems to use that listener. To make > them use a listener, you must call MyMenuItem.addListener( MyMenuItemListener ) > for each of them. For which object do I call the addListener method. I am using an array of UIInfo objects for the menu items and then just add them to the APP object running the whole show. I dont see where i need to add the addListener method. Could you help me out with this? > One probably more important recommendation I have is to try using glade instead > -- This makes it far easier to construct java-gnome guis. Unfortunately, > development of the glade tutorial is stalled at the moment, but you should be > able to pick it up easily enough. Ask here if you need more help I figured i would first do some of the work by hand so that i get an idea of the whole procedure and then move onto glade. Thanks Rishabh Manocha > -- > .''`. Mark Howard > : :' : > `. `' http://www.tildemh.com > `- mh...@de... | mh...@ti... > |
From: Mark H. <mh...@ti...> - 2004-09-19 10:05:22
|
I've only looked at this quickly, but it seems that you've defined a listener for menu item events but not told the menuitems to use that listener. To make them use a listener, you must call MyMenuItem.addListener( MyMenuItemListener ) for each of them. One probably more important recommendation I have is to try using glade instead -- This makes it far easier to construct java-gnome guis. Unfortunately, development of the glade tutorial is stalled at the moment, but you should be able to pick it up easily enough. Ask here if you need more help -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Rishabh M. <rma...@gm...> - 2004-09-18 20:51:41
|
Could someone please help me with this. I have understood the rest of the tutorial but an not able to do much since i do not yet understand howto execute click events from the menu. I am attaching a smaller file for review. thanks Rishabh On Fri, 17 Sep 2004 00:54:46 -0500, Rishabh Manocha <rma...@gm...> wrote: > Hey guys, > I am a new user of java-gnome and let me just start off by saying > thank you to all the developers who have provided this great library. > I am new to dsigning GUI's so excuse my naiveity. > I was going through the tutorial given on the main java-gnome site. > Everything seems to work fine. Only that when I click the Quit button > or the Help/About button, I get nothing. As far as i can see through > the code, I think both of these click should lead to their respective > events? > I am attaching my java file along with this e-mail for you guys to look over. > Oh and my specs: debian sid kernel 2.6.4 with the Sun 1.4.2 sdk compiler and VM. > Thanks > Rishabh > > > > |
From: Tiago C. <cog...@li...> - 2004-09-17 19:39:14
|
Or simply cast it like: (RadioButton) null On Fri, 2004-09-17 at 09:53, Stephane Konstantaropoulos wrote: > Abd Shukur Sharif a =C3=A9crit : >=20 > > This is my code: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > public class test > > { > > public static void create_button(String label) > > { > > RadioButton radiobtn =3D new RadioButton(null,label,false); > > } > > } > > > > After i compile with javac, the error is like this : > > ---------------------------------------------------- > > test.java:23: reference to RadioButton is ambiguous, both method > > RadioButton(org.gnu.gtk.RadioButton[],java.lang.String,boolean) in > > org.gnu.gtk.RadioButton and method > > RadioButton(org.gnu.gtk.RadioButton,java.lang.String,boolean) in > > org.gnu.gtk.RadioButton match > > RadioButton radiobtn =3D new RadioButton(null,label,false); > > ^ > > Anybody can help? Or may be needs to do something with RadioButton > > Class in java-gnome ?? >=20 >=20 > This is a Java error, the first argument that you pass: "null" , can be > interpreted both as RadioButton or as RadioButton[], which confuses the > compiler. >=20 > Why not use RadioButton(0)? This could work... >=20 > Stephane |
From: Stephane K. <ste...@br...> - 2004-09-17 09:53:19
|
Abd Shukur Sharif a écrit : > This is my code: > ================ > public class test > { > public static void create_button(String label) > { > RadioButton radiobtn = new RadioButton(null,label,false); > } > } > > After i compile with javac, the error is like this : > ---------------------------------------------------- > test.java:23: reference to RadioButton is ambiguous, both method > RadioButton(org.gnu.gtk.RadioButton[],java.lang.String,boolean) in > org.gnu.gtk.RadioButton and method > RadioButton(org.gnu.gtk.RadioButton,java.lang.String,boolean) in > org.gnu.gtk.RadioButton match > RadioButton radiobtn = new RadioButton(null,label,false); > ^ > Anybody can help? Or may be needs to do something with RadioButton > Class in java-gnome ?? This is a Java error, the first argument that you pass: "null" , can be interpreted both as RadioButton or as RadioButton[], which confuses the compiler. Why not use RadioButton(0)? This could work... Stephane |
From: Abd S. S. <ko...@ax...> - 2004-09-17 08:49:50
|
This is my code: ================ public class test { public static void create_button(String label) { RadioButton radiobtn = new RadioButton(null,label,false); } } After i compile with javac, the error is like this : ---------------------------------------------------- test.java:23: reference to RadioButton is ambiguous, both method RadioButton(org.gnu.gtk.RadioButton[],java.lang.String,boolean) in org.gnu.gtk.RadioButton and method RadioButton(org.gnu.gtk.RadioButton,java.lang.String,boolean) in org.gnu.gtk.RadioButton match RadioButton radiobtn = new RadioButton(null,label,false); ^ Anybody can help? Or may be needs to do something with RadioButton Class in java-gnome ?? --- [This E-mail scanned for viruses by Declude AntiVirus] |
From: Rishabh M. <rma...@gm...> - 2004-09-17 05:54:48
|
Hey guys, I am a new user of java-gnome and let me just start off by saying thank you to all the developers who have provided this great library. I am new to dsigning GUI's so excuse my naiveity. I was going through the tutorial given on the main java-gnome site. Everything seems to work fine. Only that when I click the Quit button or the Help/About button, I get nothing. As far as i can see through the code, I think both of these click should lead to their respective events? I am attaching my java file along with this e-mail for you guys to look over. Oh and my specs: debian sid kernel 2.6.4 with the Sun 1.4.2 sdk compiler and VM. Thanks Rishabh |
From: Jeffrey M. <jef...@br...> - 2004-09-16 11:14:26
|
I am sad to admit that I haven't had a chance to look at it. I will try to take a look in the next couple of days. -Jeff On Thu, 2004-09-16 at 02:13, Jens Reimann wrote: > Hi, > > just wanted to known what you think about the properties patch I submitted? > > didn't hear much about that on the list!?! > > anything I can do?? > > jens reimann > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |
From: Andrew C. <an...@op...> - 2004-09-16 07:30:22
|
On Thu, 2004-09-16 at 07:13 +0000, Jens Reimann wrote: > didn't hear much about that on the list!?! It turns out there's a [need-approval-to-join] list called java-gnome- hackers which is where the development of java-gnome takes place, this list being intended for people *using* the gnome java bindings to actually write stuff. There hasn't been much traffic there either, but if you're submitting patches that's probably where they should go. Cheers, AfC Sydney --=20 Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ |
From: Jens R. <ct...@de...> - 2004-09-16 07:14:04
|
Hi, just wanted to known what you think about the properties patch I submitted? didn't hear much about that on the list!?! anything I can do?? jens reimann |
From: Cristian A. <cri...@go...> - 2004-09-09 14:50:36
|
Hello, Can anybody point me to a good tutorial on how to create my own Look and Feel for Java? Thanx, Cristian. |