2D java prototype