PigLatinGUI - /* / PgiLatinGUI.java Author: Lewis/Loftus /...

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

View Full Document Right Arrow Icon
//******************************************************************** // PgiLatinGUI.java Author: Lewis/Loftus // // Solution to Programming Project 5.12 //******************************************************************** / import java.awt.Color; import java.awt.Dimension; import java.awt.event.*; import javax.swing.*; i public class PigLatinGUI { private int WIDTH = 400; private int HEIGHT = 150; private JFrame frame; private JPanel panel; private JLabel inputLabel, outputLabel, resultLabel; private JTextField inputField; //----------------------------------------------------------------- // Sets up the GUI. //----------------------------------------------------------------- public PigLatinGUI() { frame = new JFrame ("Pig Latin Conversion"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); inputLabel = new JLabel ("Enter a sentence (no punctuation):"); outputLabel = new JLabel ("That sentence in Pig Latin is: "); resultLabel = new JLabel ("-------------"); inputField = new JTextField (30);
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 / 2

PigLatinGUI - /* / PgiLatinGUI.java Author: Lewis/Loftus /...

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