A small notebook in Java using JFrame