ComposeWindow - import import import import import import...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.awt.Container; import java.awt.FlowLayout; import java.awt.BorderLayout; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JButton; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.JComponent; import javax.swing.JScrollPane; import javax.swing.JFileChooser; import javax.swing.border.EmptyBorder; i //************************************************************************** // Author: Lewis/Loftus // // Prototype of a user interface for composing an email message. It contains // a scrolling text area for the message body, fields for addresses and // subject, and buttons for sending the message and attaching files. The // Send button is disabled when all address fields are empty, the Attach // button opens a file chooser dialog, and the window title should reflect // the contents of the Subject field. //************************************************************************** / public class ComposeWindow extends JFrame implements KeyListener, ActionListener { //---------------------------------------------------------------- // Message body text area //---------------------------------------------------------------- private JTextArea body = null; //---------------------------------------------------------------- // Send button //---------------------------------------------------------------- private JButton send = null; //---------------------------------------------------------------- // Attach button //----------------------------------------------------------------
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Page1 / 4

ComposeWindow - import import import import import import...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online