java-gnome-developer Mailing List for The java-gnome language bindings project (Page 5)
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: Andrew C. <an...@op...> - 2011-04-28 13:50:01
|
On Tue, 2011-04-26 at 11:08 -0600, Adam Balan wrote: > My issue is that when I close one window I don’t want all my windows > to close. Current I am using Gtk.mainQuit(); to close windows. To force a Window to "close", call Widget's hide() on the Window you're finished with. // I'm done window.hide(); http://java-gnome.laptop/4.0/doc/api/org/gnome/gtk/Widget.html#hide() java-gnome takes care of the interaction between the underlying GObject and our Java Proxy object; actual disposal of the Window won't happen until all your Java references to the Window go out of scope (else you could resurrect it with show(), right?) AfC Ko Phi Phi P.S. Hackers: it is probable that the Widget.destroy() method newly available in 4.0.20 will have the same effect; someone needs to enable reference management debugging and test the has-user-ref interaction. See src/bindings/org/gnome/gtk/GtkWindowOverride.c |
From: Adam B. <a-...@ho...> - 2011-04-26 17:08:20
|
Hi All, Let's assume I have Program X that starts window c. Window c can create a new instance of its self by going something like: C c = new C(); c.newC(); // this starts the new instance. So now you have the main Window running along with a identical window sitting on top of it. My issue is that when I close one window I don't want all my windows to close. Current I am using Gtk.mainQuit(); to close windows. What's the proper way of doing this without actually closing all the windows tied to window c including its self? This should also apply when I click the x in the top. |
From: Luis M. V. <lui...@gm...> - 2011-02-25 18:00:38
|
Hi! Sorry for the delay in my answer. I'm have resolve my issue. I'm grate full to your help. Thank you. Best regards 2011/2/19 Kenneth Prugh <ken...@gm...> > On Thu, 17 Feb 2011 19:34:40 +0100 > Luis Muñoz Villarreal <lui...@gm...> wrote: > > > Hi! > > [snip] > > I don't undestand the reason of this issue. > > Could you help me? > > > > Best regards > > Hey, > > I figured out what was wrong. It seems you only need to call parse() on > the top level widget and just use that xml tree for all its children. > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > |
From: Kenneth P. <ken...@gm...> - 2011-02-19 05:05:19
|
On Thu, 17 Feb 2011 19:34:40 +0100 Luis Muñoz Villarreal <lui...@gm...> wrote: > Hi! > [snip] > I don't undestand the reason of this issue. > Could you help me? > > Best regards Hey, I figured out what was wrong. It seems you only need to call parse() on the top level widget and just use that xml tree for all its children. |
From: Andrew C. <an...@op...> - 2011-02-19 03:56:02
|
On Fri, 2011-02-18 at 17:01 +0100, Luis Muñoz Villarreal wrote: > Find enclosed two screenshot of the executing code examples. Oh, don't worry, we believe you that it doesn't work! We chatted about it on IRC in #java-gnome. I'm not sure if anyone had any ideas, but at least one person tried loading up your code [Kenneth remarked that it would have been easier if you attached files rather than including them inline in the email]. Glade *does* often make things more complicated, which is why I _personally_ recommend against trying to use it if you're just getting started with java-gnome, but it *is* powerful. Anyway, the one guess I had was that libglade was screwing with your TreeModel, but you are calling TreeView's setModel() in both cases, so that's not it. Hopefully someone else in the community will be able to figure it out. AfC Sydney |
From: Luis M. V. <lui...@gm...> - 2011-02-18 11:23:14
|
2011/2/18 Andrew Cowie <an...@op...> > On Thu, 2011-02-17 at 19:34 +0100, Luis Muñoz Villarreal wrote: > > > > > I'm using: > > libjava-gnome 4.0.14 > > Just FYI, there's a java-gnome PPA with up-to-date packages for Ubuntu > at ppa:java-gnome/ppa See if that helps your issue? > https://launchpad.net/~java-gnome/+archive/ppa Now, I'm using libjava-gnome-java 4.0.17, but with the same problem. > > > AfC > Sydney > > -- > Andrew Frederick Cowie > > Operational Dynamics is an operations and engineering consultancy > focusing on IT strategy, organizational architecture, systems > review, and effective procedures for change management: enabling > successful deployment of mission critical information technology in > enterprises, worldwide. > > http://www.operationaldynamics.com/ > > Sydney New York Toronto London > > > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |
From: Andrew C. <an...@op...> - 2011-02-18 02:25:31
|
On Thu, 2011-02-17 at 19:34 +0100, Luis Muñoz Villarreal wrote: > > I'm using: > libjava-gnome 4.0.14 Just FYI, there's a java-gnome PPA with up-to-date packages for Ubuntu at ppa:java-gnome/ppa See if that helps your issue? https://launchpad.net/~java-gnome/+archive/ppa AfC Sydney -- Andrew Frederick Cowie Operational Dynamics is an operations and engineering consultancy focusing on IT strategy, organizational architecture, systems review, and effective procedures for change management: enabling successful deployment of mission critical information technology in enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Luis M. V. <lui...@gm...> - 2011-02-17 18:36:06
|
Hi! I have a problem with the TreeView and Glade I'm using: libjava-gnome 4.0.14 Glade 3.6.7 Eclipse 3.6.1 Ubuntu 10.04 For example, in the next code, where I don't use glade, the TreeView show the information of TreeModel ---------------8<--------------------- public class ExampleWithoutGlade { public ExampleWithoutGlade() { Window win = new Window(); DataColumnString placeName = new DataColumnString(); ListStore model = new ListStore(new DataColumn[] { placeName }); TreeIter row = model.appendRow(); model.setValue(row, placeName, "Line 1"); row = model.appendRow(); model.setValue(row, placeName, "Line 2"); row = model.appendRow(); model.setValue(row, placeName, "Line 3"); TreeView treeview = new TreeView(model); win.add(treeview); TreeViewColumn vertical = treeview.appendColumn(); vertical.setTitle("Lines"); CellRendererText renderer = new CellRendererText(vertical); renderer.setMarkup(placeName); win.showAll(); win.connect(new Window.DeleteEvent() { public boolean onDeleteEvent(Widget source, Event event) { Gtk.mainQuit(); return false; } }); } public static void main(String[] args) { Gtk.init(args); new ExampleWithoutGlade(); Gtk.main(); } } ---------------------------------------- However, when I use the Glade interface, the TreeView doesn't show with the information of TreeModel ---------------8<--------------------- public class ExampleWithGlade { public ExampleWithGlade() throws FileNotFoundException { XML xmlWin = Glade.parse("rsc/example.glade", "win"); XML xmlTreeView = Glade.parse("rsc/example.glade", "treeview"); Window win = (Window) xmlWin.getWidget("win"); TreeView treeview = (TreeView) xmlTreeView.getWidget("treeview"); DataColumnString placeName = new DataColumnString(); ListStore model = new ListStore(new DataColumn[] { placeName }); TreeIter row = model.appendRow(); model.setValue(row, placeName, "Line 1"); row = model.appendRow(); model.setValue(row, placeName, "Line 2"); row = model.appendRow(); model.setValue(row, placeName, "Line 3"); treeview.setModel(model); TreeViewColumn vertical = treeview.appendColumn(); vertical.setTitle("Lines"); CellRendererText renderer = new CellRendererText(vertical); renderer.setMarkup(placeName); win.showAll(); win.connect(new Window.DeleteEvent() { public boolean onDeleteEvent(Widget source, Event event) { Gtk.mainQuit(); return false; } }); } public static void main(String[] args) throws FileNotFoundException { Gtk.init(args); new ExampleWithGlade(); Gtk.main(); } } ---------------------------------------- The glade file: Preferences: libglade + gtk+ 2.12 ---------------8<--------------------- <?xml version="1.0"?> <glade-interface> <!-- interface-requires gtk+ 2.12 --> <!-- interface-naming-policy project-wide --> <widget class="GtkWindow" id="win"> <property name="title" translatable="yes">.</property> <child> <widget class="GtkTreeView" id="treeview"> <property name="visible">True</property> <property name="can_focus">True</property> </widget> </child> </widget> </glade-interface> ---------------------------------------- I don't undestand the reason of this issue. Could you help me? Best regards |
From: Andrew C. <an...@op...> - 2011-02-17 04:21:46
|
There's a new version of java-gnome! Release notes http://java-gnome.sourceforge.net/4.0/NEWS.html#4.0.19 Tarball http://ftp.gnome.org/pub/gnome/sources/java-gnome/4.0/java-gnome-4.0.19.tar.bz2 Ubuntu package (thanks Guillaume!) https://launchpad.net/~java-gnome/+archive/ppa Gentoo package (thanks Kenneth and Serkan!) http://packages.gentoo.org/package/dev-java/java-gnome/ Anyone using java-gnome to develop lovely applications is, as ever, invited to come hang out with us in #java-gnome on irc.gimp.net and chat with us about what you're up to. We'd love to see you. AfC Sydney |
From: Andrew C. <an...@op...> - 2011-02-11 05:56:01
|
Trivia point of the day: If you hide a MenuBar, then any accelerators you've hooked up via the various MenuItem's setAccelerator() cease to function. "That's annoying" The solution is to create Actions, use Action's setAccelerator(), and then Action's createMenuItem() to get yourself {drum role} a MenuItem, which you can then use. And meanwhile the accelerators work regardless. Yeay. AfC Sydney |
From: Andrew C. <an...@op...> - 2011-02-09 02:04:33
|
On Tue, 2011-02-08 at 19:06 +0000, Sharma, Ashish wrote: > I am trying to use GMime library in my Java code. Has anybody tried > this already. Not that I've heard of. > If no, can somebody please guide me what are the requirements and > interfaces that I can use for writing JNI for GMime. Binding a new library is a somewhat bigger job than just extending coverage to a new method (say) of one of the libraries we already have coverage for. Examples -------- If you haven't used java-gnome before to do user interface work, then I'd suggest having a look at http://java-gnome.sourceforge.net/4.0/doc/examples/START.html That'll give you a feel for the APIs in the various libraries we provide coverage for. Background material ------------------- Then you might want to have a read of the java-gnome design documents; see http://java-gnome.sourceforge.net/4.0/doc/design/START.html Though somewhat dated, the essence of the architecture paper there is still quite accurate. http://java-gnome.sourceforge.net/4.0/doc/design/5a-Architecture.html I did a series of presentations some years ago about java-gnome; there are a few illustrations there that might be useful: http://www.operationaldynamics.com/reference/talks/PastPresentFuture/img69.html through to http://www.operationaldynamics.com/reference/talks/PastPresentFuture/img79.html So that's how java-gnome works. To add org.gnome.mime to the Java bindings you'll need to find a source of information. In about a year or so we should be able to take advantage of GObject Introspection, but at present java-gnome works off the same data as pygtk does, which is the ".defs" data. See src/defs/ in the tree. And then I'd have a look around at how other small libraries are covered. Our bindings of librsvg, Enchant, and libunque are probably good examples. That's: src/bindings/org/gnome/rsvg/Handle.java src/bindings/org/freedesktop/enchant/Enchant.java src/bindings/org/gnome/unique/Applicaiton.java in the tree. Adding coverage for a new library --------------------------------- So at this point you should have a fairly good idea what's involved. If you can locate some already existing .defs data then it'll be easier. We can quickly emit public stubs for the library, and then you can set about exposing those classes and methods which you want to use. Come and chat with us in #java-gnome or on the java-gnome-hackers mailing list and we can discuss it further. I look forward to seeing support for GMime in java-gnome! AfC Sydney |
From: Sharma, A. <ash...@hp...> - 2011-02-08 19:07:28
|
Hi, I am using a small java smtp library (http://code.google.com/p/subethasmtp/), by this I need to parse the incoming emails in separate file components viz body, attachments etc. I am trying to use GMime library in my Java code. Has anybody tried this already. If yes then please share your experience. If no, can somebody please guide me what are the requirements and interfaces that I can use for writing JNI for GMime. My communication(http://mail.gnome.org/archives/gmime-devel-list/2011-February/msg00000.html) on GMime developer mailing list has directed me to contact here as java-gnome binding can give me idea on how I can write java bindings for GMime. I need an approach that takes in the smtp data stream and returns me with an array of attachment references or streams in fully parsed out form in java. Please help. Thanks in advance Ashish Sharma |
From: Andrew C. <an...@op...> - 2011-01-21 04:54:53
|
On Tue, 2011-01-18 at 20:52 -0500, Nick Khamis wrote: > We have been working on a project called the JavadocMiner that > evaluates the quality of Javadoc comments. Included in our list of > metrics are the readability > measures Sounds interesting. In the java-gnome project we have a fairly deliberate documentation style that is somewhat different from the (in my humble opinion) poor norms that tend to exist in most Java libraries. That's a human judgement, but of course it'd be interesting to see what your algorithms have to say about it. http://java-gnome.sourceforge.net/4.0/doc/style/Documentation.html and http://java-gnome.sourceforge.net/4.0/doc/design/2b-DesignConstraints.html#hand-written discuss our approach (and the requirements necessary before we accept patches to 'mainline'). > If you would like to use the tool to analyze the different > applications of your project > we would be happy to open source it for you. Um, sure? Choosing to publish a piece of software under an Open Source licence is a decision for you the authors and/or your supporting organizations, but (speaking with my corporate hat on for a minute) we'd certainly welcome you joining the vast community of people and organizations who make their work available! For what it's worth, I'd encourage you to pick a GPL compatible licence (ie, GPL, or BSD, or... not Apache etc). If you do that from the outset then it prevents all kinds of confusion later. But that's up to you. AfC Sydney -- Andrew Frederick Cowie Operational Dynamics is an operations and engineering consultancy focusing on IT strategy, organizational architecture, systems review, and effective procedures for change management: enabling successful deployment of mission critical information technology in enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Nick K. <sy...@gm...> - 2011-01-19 01:52:55
|
We have been working on a project called the JavadocMiner<http://www.rene-witte.net/automatic-quality-assessment-source-code-comments-javadocminer-nldb2010>that evaluates the quality of Javadoc comments. Included in our list of metrics are the readability measures (Flesch, Fog and Kincaid). This is not the typical Javadoc syntactic analysis tool provided by Oracle using the docCheckDoclet, or the similar tool provided by checkstyle. We analyze the internal quality of the Javadoc comment itself, as well as the syntactic quality such as sync etc.. If you would like to use the tool to analyze the different applications of your project we would be happy to open source it for you. Cheers, Ninus. |
From: Andrew C. <an...@op...> - 2011-01-16 01:36:29
|
On Sat, 2011-01-15 at 20:53 +0100, Dominik Gabi wrote: > I'm sorry, I just found out I forgot to set the prefix for the configure > script and was therefore working with the wrong jar file... Shame on > me :( Nah, not at all. That's computing for you. I'm glad to hear you figured it out. > I've tried it with the one that was in the ubuntu repository (don't > know > which version that was) and afterwards compiled the java-gnome 4.0.18 > from source. > There's also a PPA, where Guillaume Mazoyer has been doing a great job of maintaining packages of the latest releases. I'd use that in preference to whatever Ubuntu hasn't packaged yet. https://launchpad.net/~java-gnome/+archive/ppa though now that you've learned to build from source that'll make hacking on with java-gnome itself much easier, should you ever need to. AfC Sydney |
From: Dominik G. <dkg...@gm...> - 2011-01-15 19:54:35
|
On Sat, 2011-01-15 at 14:25 -0500, Kenneth Prugh wrote: > On Sat, 15 Jan 2011 20:07:25 +0100 > Dominik Gabi <dkg...@gm...> wrote: > > > > I've tried it with the one that was in the ubuntu repository (don't > > know which version that was) and afterwards compiled the java-gnome > > 4.0.18 from source. > > Hmm, well .18 should work, eg: > > tar xvf java-gnome-4.0.18.tar.bz2 > cd java-gnome-4.0.18 > ./configure && make -j3 > cd doc/examples/cairo > javac -cp ../../../tmp/gtk-4.0.jar ExampleDrawingInExposeEvent.java > > That should compile fine. > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ java-gnome-developer mailing list jav...@li... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer I'm sorry, I just found out I forgot to set the prefix for the configure script and was therefore working with the wrong jar file... Shame on me :( |
From: Kenneth P. <ken...@gm...> - 2011-01-15 19:25:35
|
On Sat, 15 Jan 2011 20:07:25 +0100 Dominik Gabi <dkg...@gm...> wrote: > > I've tried it with the one that was in the ubuntu repository (don't > know which version that was) and afterwards compiled the java-gnome > 4.0.18 from source. Hmm, well .18 should work, eg: tar xvf java-gnome-4.0.18.tar.bz2 cd java-gnome-4.0.18 ./configure && make -j3 cd doc/examples/cairo javac -cp ../../../tmp/gtk-4.0.jar ExampleDrawingInExposeEvent.java That should compile fine. |
From: Dominik G. <dkg...@gm...> - 2011-01-15 19:08:41
|
On Sat, 2011-01-15 at 13:17 -0500, Kenneth Prugh wrote: > On Fri, 14 Jan 2011 13:18:46 +0100 > Dominik Gabi <dkg...@gm...> wrote: > > > Hi, > > [...] > > Did I forget to include something in my classpath? I was looking for > > the org.freedesktop package but could not find it... Any hints as to > > what I might be doing wrong? > > > > Thanks in advance, > > Dominik. > > What version of java-gnome do you have? > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ java-gnome-developer mailing list jav...@li... https://lists.sourceforge.net/lists/listinfo/java-gnome-developer I've tried it with the one that was in the ubuntu repository (don't know which version that was) and afterwards compiled the java-gnome 4.0.18 from source. |
From: Kenneth P. <ken...@gm...> - 2011-01-15 18:17:59
|
On Fri, 14 Jan 2011 13:18:46 +0100 Dominik Gabi <dkg...@gm...> wrote: > Hi, > [...] > Did I forget to include something in my classpath? I was looking for > the org.freedesktop package but could not find it... Any hints as to > what I might be doing wrong? > > Thanks in advance, > Dominik. What version of java-gnome do you have? |
From: Dominik G. <dkg...@gm...> - 2011-01-14 12:18:54
|
Hi, maybe this is a stupid question but I seem to be unable to compile the ExampleDrawingInExposeEvent.java example. This is the output I get on my Ubuntu (10.10) system: dominik@EeePC:~/Desktop$ javac -cp /usr/share/java/gtk.jar:. ExampleDrawingInExposeEvent.java ExampleDrawingInExposeEvent.java:87: cannot find symbol symbol : constructor Context(org.gnome.gdk.EventExpose) location: class org.freedesktop.cairo.Context cr = new Context(event); ^ 1 error Did I forget to include something in my classpath? I was looking for the org.freedesktop package but could not find it... Any hints as to what I might be doing wrong? Thanks in advance, Dominik. |
From: William T. <wil...@gm...> - 2011-01-06 15:38:24
|
> >> the new image handling behaviour in 4.0.18 has >> considerably changed their appearance. > > Hm. Well, 4.0.14 was a long time ago; certainly since then under the > covers is Cairo 1.10 now and they fixed *all kinds* of things in the > rendering paths. I'm afraid I'd have to consider anything generated now > as "more correct" and adjust your drawing accordingly. > > Of course, that only matters if you have somehow got java-gnome 4.0.14 > linking against Cairo 1.8 and java-gnome 4.0.18 linking against Cairo > 1.10; if we're talking about the same system then that's not going to be > the case. > >> With 4.0.18: > > Pretty sexy :) > Thanks for the answer Andrew. Interestingly when opening those PDFs in Illustrator they look the same and when the PDFs are rasterized (via pdftoppm) the output is the same as it always was, so turns out not to be a problem. The two PDFs just look different when opening in a PDF viewer. BTW the new version is excellent for adding cartographic symbols via SVG images so thanks for that! Cheers Will |
From: Andrew C. <an...@op...> - 2011-01-06 12:45:43
|
On Thu, 2011-01-06 at 12:09 +0000, William Temperley wrote: > Am I correct in thinking PNGs > are now being converted to JPEGs behind the scenes perhaps? I doubt it. We haven't changed anything at all in our presentation of Cairo or the GdkPixbuf loaders etc; the ability to embed the original JPEG (rather than decoded bitmap) in an output PDF only happens if you call setMimeData() with the original JPEG. I assume you're not doing that. > the new image handling behaviour in 4.0.18 has > considerably changed their appearance. Hm. Well, 4.0.14 was a long time ago; certainly since then under the covers is Cairo 1.10 now and they fixed *all kinds* of things in the rendering paths. I'm afraid I'd have to consider anything generated now as "more correct" and adjust your drawing accordingly. Of course, that only matters if you have somehow got java-gnome 4.0.14 linking against Cairo 1.8 and java-gnome 4.0.18 linking against Cairo 1.10; if we're talking about the same system then that's not going to be the case. > With 4.0.18: Pretty sexy :) AfC Sydney |
From: William T. <wil...@gm...> - 2011-01-06 12:09:17
|
Dear all I've been using Java-Gnome to produce lovely PDF maps for some time now, however the new image handling behaviour in 4.0.18 has considerably changed their appearance. Am I correct in thinking PNGs are now being converted to JPEGs behind the scenes perhaps? Links to before and after examples, produced with the same code but different versions of java-gnome: With 4.0.14: http://www.map.ox.ac.uk/media/temp/DJI_Pf_PR.pdf With 4.0.18: http://www.map.ox.ac.uk/media/temp/DJI_Pf_PR_4-0-18.pdf Best regards Will Temperley |
From: Carlos J. <car...@gm...> - 2011-01-03 19:21:27
|
Thanks again Andrew! 2010/12/30 Andrew Cowie <an...@op...> > There's a new version of java-gnome! > > Release notes > http://java-gnome.sourceforge.net/4.0/NEWS.html#4.0.17 > > Tarball > > http://ftp.gnome.org/pub/gnome/sources/java-gnome/4.0/java-gnome-4.0.18.tar.bz2 > > Ubuntu package (thanks Guillaume!) > https://launchpad.net/~java-gnome/+archive/ppa Wow! Thank you very much, I'll try to use this one for Debian. The package at http://packages.debian.org/sid/libjava-gnome-java still at 4.0.15, and I'm having the GUI to disappear without any error message or exception thrown, so I need to test newer versions. If the Debian maintainer is in this list, I'm asking kindly if you can update the package please :) Kind regards -- http://www.cjenkins.net/ http://csl-tec.softwarelibrecr.org/ |
From: Andrew C. <an...@op...> - 2010-12-30 22:24:32
|
There's a new version of java-gnome! Release notes http://java-gnome.sourceforge.net/4.0/NEWS.html#4.0.17 Tarball http://ftp.gnome.org/pub/gnome/sources/java-gnome/4.0/java-gnome-4.0.18.tar.bz2 Ubuntu package (thanks Guillaume!) https://launchpad.net/~java-gnome/+archive/ppa Gentoo package (thanks Kenneth and Serkan!) http://packages.gentoo.org/package/dev-java/java-gnome/ Anyone using java-gnome to develop lovely applications is, as ever, invited to come hang out with us in #java-gnome on irc.gimp.net and chat with us about what you're up to. We'd love to see you. AfC Sydney |