Skip to main content

Blog Archive for evanx during July 2007

I gave an overview of what and where JSR 295 and 296 are, with special emphasis that both have public java.net sites with active mailing lists, where all the excitement is happening, and open to everyone to join the fun, which is "A Very Good Thing" :) So i gave this talk, discussing the following stuff: JSR 296 JSR 295 Swing - "the State of the Nation" according to um, Me! The Problem with...
We expose a "presentation model" bean using an interface, used to create a dynamic proxy, with a backing Map of property/values eg. for GUI prototyping, or otherwise a java.bean. Click here to read "Gooey Bean Proxy" A part of "Gooey Beans, the GUI part of a trilogy in 42 parts" Code Snippet We expose the properties of the presentation model using an interface as follows. <...
Let's define a minimal property interface. public interface Property<V> {  public void set(V value);  public V get();   } where its implementation wraps a java.bean.PropertyDescriptor. Now baked beans... public interface BakedBeanInfo<B> {  public Property getProperty(String propertyName);} where its implementation wraps a java.bean.BeanInfo, and constructs a...
In The future of Windows should be open source, the author suggests that "the desktop is becoming obsolete." This always gets my back up! (If you ever want to get a rise out of me, just say exactly that!) My comment was a regurgitation of what i always say on this subject, which is getting so frikkin boring, that i'm boring myself to tears, but since i wrote such a long comment, i thought i...
Things to Streamline I recently started writing a Swing feed reader (FeedTrove.dev.java.net) - which i was on my checklist, so that's ticked - but i have still more things to do there... Rather than using an HTML JTextPane, i want to try to render all the stories on a canvas, to get full control, anti-aliased font's, etcetera. Another option would be to use Flyingsaucer, but that is quite big,...
I spotted this handy blog entry and so decided to give it a go, on a brand new $15 linux VDS. Here are my notes, which are consequently a rehash of that blog. useradd svn Let's decide that svnserve will run as user svn, and access repositories off its home directory i.e. /home/svn. So we create the user svn with useradd, which creates its home directory /home/svn. # useradd svn svnadmin create...
Another reason why we need properties in the language is ... for "native" database queries, e.g. Person person = createQuery(new WhereLikePredicate(Person.name, "Homer Simpson")); where Person.name is a property, ie. Person.class has an accessor getName(). In this case, our JPA queries are refactorable, yippee! If you have a real query, it's more obvious (no offense), eg.  ...