Christian Ullenboom

1942 Beiträge · Seite 189 von 195

Contact to javax.beans.binding

· Christian Ullenboom

This little example will show you how to bind a JTextField to a name property of a Person with Beans Binding (JSR-295). First the Person: The code for the JavaBean Person is a litte bit cumbersome because of the PropertyChangeListener who will notify the Binding Framework if the model change. Swing on the other side …

Weiterlesen: Contact to javax.beans.binding →

Using format()/printf() for formatting and Scanner for parsing localized elements

· Christian Ullenboom

format() from String or printf() from e.g. PrintWriter will use the default language except you give a Local object as the first argument: And the class Scanner offers nextDouble() that uses the default language too except you use useLocale(). The methods format()/printf() and the class Scanner are very handy and easy …

Weiterlesen: Using format()/printf() for formatting and Scanner for parsing localized elements →

Die Physik-Engine Phys2D

· Christian Ullenboom

Phys2D ist eine 2D Physik-Engine, welches Massen, Trägheiten, Reibung simuliert. Die Bibliothek ist in Java 1.4 programmiert und unterstützt Boxes Circles Static Lines Restituion and Friction Fixed, Elastic and Loose Joints Angluar Velocity/Momentum Simple API Quad Tree Collision Gideon Smeding’s Polygon Ein Demo gibt …

Weiterlesen: Die Physik-Engine Phys2D →

Shell-Script-Editor (ShellEd) und Eclipse Target Management Project/Remote System Explorer

· Christian Ullenboom

ShellEd (Bild) ist ein Shell-Script-Editor für Unix-Skripte (also ash, bsh, bash, csh, ksh, sh, zsh). Mit Manual und Vervollständigung. Interessant dazu ist das relativ unbekannte Target Management Project, wo man remote, etwa über SSH oder FTP auf einem Server arbeiten und zum Beispiel Dokumente editieren kann. Siehe …

Weiterlesen: Shell-Script-Editor (ShellEd) und Eclipse Target Management Project/Remote System Explorer →

range() in Java

· Christian Ullenboom

A range is a very handy feature of programing languages like Python. range( 10 ) -> 0 1 2 3 4 5 6 7 8 9 range( 5, 10 ) -> 5 6 7 8 9 range( 0, 10, 3 ) -> 0 3 6 9 range( ‚0‘, ‚9‘ ) -> 012345678 And the main class Range

Weiterlesen: range() in Java →