File reading and display using Java GUI