Example of java swing. Code I wrote years ago.