Extracted code samples from Java forms documentation