Java example using JTable