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 [...]
Archive for 2003
Java IPP and general Merry X-Mas
By Max in JavaIt 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 [...]
EventHandler.java is Good but not perfect
By Max in JavaJust “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 [...]
JIRA with internationalization!
By Max in JavaYes – JIRA have just been released with i8n support – that’s great! Finally, I can suggest JIRA as an alternative to #4″#!”#”
Hibern8IDE + HibernateExtensions
By Max in JavaAs 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 [...]
SUN Print Bug database blues!
By Max in JavaWhat 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 [...]
Virtual Win32/Unix Printer Driver ?
By Max in JavaIn 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 [...]
Hibern8IDE 0.9
By Max in JavaIt’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 [...]
Best 20 lines of Swing KeyboardFocusManager code I’ve ever written ;)
By Max in JavaKeyboardFocusManager.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 [...]
Java Printing on Unix is flakey, even on 1.4.2!
By Max in JavaGeez – 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[] [...]