Java flex entry example