Allgemein

526 Beiträge · Seite 49 von 53

Gegenüberstellung Java und C#

· Christian Ullenboom

Die Webseite http://www.25hoursaday.com/CsharpVsJava.html widmet sich sehr detailiert den Unterschieden (und natürlich Gemeinsamkeiten) der beiden Sprachen Java und C#. Die Diskussion ist auf der Basis von Java 6 und C# 2.0, wobei der Autor Dare Obasanjo in seiner Zusammenfassung auch Bezüge zu C# 3.0 herstellt.

Weiterlesen: Gegenüberstellung Java und C# →

Erste Implementierung für JSR 308

· Christian Ullenboom

Die JSR 308 (Annotations on Java Types) hat unter anderem das Ziel, Annotationen an weiteren Dingen festzumachen: for generic type arguments to parameterized classes: ``` Map files; for generic type arguments in a generic method or constructor invocation: ``` o.m("..."); for type parameter bounds and wildcards: ``` …

Weiterlesen: Erste Implementierung für JSR 308 →

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 →