Nachdem ich 2009 aus privaten Gründen weder auf der JAX noch auf der W-JAX war, zog es mich in diesem Herbst nach München, zur W-JAX. Neu für mich im Vergleich zu den letzten Jahren war, dass ich mir mal ein Zimmer im Tagungshotel genommen habe und bereits am Ende des ersten Tages war mir ziemlich […]
I’m migrating some old projects to Maven and i need to move all resources out of the source tree. find . -type d -name ‘\.svn’ -prune -o -type f -not -iname "*.java" -printfind . -type d -name ‘\.svn’ -prune -o -type f -not -iname "*.java" -print Prune every directory named ‘.svn’ Or Type is file […]
You wouldn’t think that having a standard edit menü with Cut, Copy and Paste buttons would be much of a problem in the J2SE world, especially regarding the fact that most standard Swing components have TransferHandlers that support the 3 operations with the standard keyboard shortcuts. First try was to user TransferHandler.getCopyAction() etc. and create […]
Java has the nice Iterable interface (since Java 5, i guess) that allows object oriented loops like List<String> strings = new ArrayList<String>(); for(String string : strings) System.out.println(string);List<String> strings = new ArrayList<String>(); for(String string : strings) System.out.println(string); but guess what, a simple array is not iterable… In case you need one, feel free to use this […]