Quick wrapper for JFrame and JDialog which adds some functionality