Archive for 2003

December 29, 2003 9

Implement proper JTable editing ?

By Max in Java

Hi! Have anyone ever succeded in making a editable JTable behave properly regarding first keystroke and selection ? What SHOULD happen is as follows: User has selected a cell, with e.g. “Cell 1″ as contents. User press “X”, then the cell should be cleared, and the only contents should be “X”. This is STANDARD editable [...]

December 24, 2003 3

Java IPP and general Merry X-Mas

By Max in Java

It sure is christmas time now The first OS Java IPP implementation (called Jipsi) have been made available from http://www.lohndirekt.de/software/jipsi_quickstart.html. Great stuff, based/inspired by CUPS – but unfortunately Jipsi is been released under GPL instead of LGPL which makes it impossible for me to use ;( ….but hey, it’s a start Secondly, JGoodies have showed [...]

December 23, 2003 11

EventHandler.java is Good but not perfect

By Max in Java

Just “discovered” the newly (in JDK 1.4) added java.beans.EventHandler which allows you to do stuff like: but.addActionListener(    (ActionListener)EventHandler.create(ActionListener.class, target, “myButtPressed”, “”)) which when but is pressed the method called setMyButtPressed(ActionPerformed event) will be called. This stuff actually safes alot of typing AND memory usage + even gain some performance if the HotSpot is nice to [...]

November 12, 2003 2

JIRA with internationalization!

By Max in Java

Yes – JIRA have just been released with i8n support – that’s great! Finally, I can suggest JIRA as an alternative to #4″#!”#”

October 25, 2003 0

Hibern8IDE + HibernateExtensions

By Max in Java

As I still get more and more comments on my “old” Hibern8IDE page, I would like to inform ya’all: Hibern8IDE is now part of HibernateExtensions available from www.hibernate.org. (See announcment and download) Lot’s of new fun and cool stuff: Added History feature to HQL commander Added experimental graphing of the class relationships (via JGraph) Added [...]

September 15, 2003 5

SUN Print Bug database blues!

By Max in Java

What does one do when you have reported 2 critical errors regarding printing on Solaris and the only answer you’ve received is a “We currently have a three week response time for responding to Bug Reports.” and that is now about 2 months ago!? I’ve got two interal review ID’s (191008 and 191011) but no [...]

September 12, 2003 13

Virtual Win32/Unix Printer Driver ?

By Max in Java

In the process of debugging some serious sun java problems I wanted to see what the heck the Java Print Services actually sent to my printer! In the hope someone else had thought of the same I Googled for “virtual printer driver”, “gdi monitor” etc. etc. and came up with nothing I could find a [...]

August 5, 2003 50

Hibern8IDE 0.9

By Max in Java

It’s about 5 months since i announced Hibern8IDE beta-release. Well, today I’ve build a new .jar file for you AND added the source code to the HibernateExt CVS repository. Thus, now you can all see all the gritty details Well, it was actually VERY simple to make this small interactive HQL editor – just haven’t [...]

July 24, 2003 3

Best 20 lines of Swing KeyboardFocusManager code I’ve ever written ;)

By Max in Java

KeyboardFocusManager.getCurrentKeyboardFocusManager().addPropertyChangeListener(“focusOwner”, new PropertyChangeListener() {    Color FOCUS_COLOR = Color.CYAN;    Component last;    Color background = null;    public void propertyChange(PropertyChangeEvent evt) {       Component current = (Component)evt.getOldValue();       Component future = (Component)evt.getNewValue();          if(current==last && current != null) {             current.setBackground(background);          }          last = future;          if(last!=null) {             background = last.getBackground();             last.setBackground(FOCUS_COLOR);             }          }       }); ….and voila! you get EVERY component that can [...]

July 10, 2003 8

Java Printing on Unix is flakey, even on 1.4.2!

By Max in Java

Geez – I was just starting to be so happy for the Java Printing Service API. It works like a charm under Windows. The following code list all printers available AND which trays that are available. Works fine on Windows, but NOT on Solaris or even Linux ;( // Get a list of printservices. PrintService[] [...]