a few example using javaswing