114-13-gui-programming

114-13-gui-programming - GUI programming Graphical user...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: GUI programming Graphical user interface-based programming Windchill Windchill There are several formulas for calculating the windchill temperature t wc The one provided by U.S. National Weather Service and is applicable for a windspeed greater than four miles per hour Where Variable t is the Fahrenheit temperature Variable v is the windspeed in miles per hour Console-based programming In use GUI-based programming Java support JFrame Represents a titled, bordered window JLabel Represents a display area suitable for one or both of a single-line text or image. JTextField Represents an editable single-line text entry component JButton Represents a push button JTextArea Represents an editable multiline text entry component Instance variables private JFrame window References the window containing the other components of the GUI Instance variables private JTextArea legendArea References the text display for the multiline program legend Instance variables private JLabel fahrTag References the label for the data entry area supplying the temperature Instance variables private JTextField fahrText References the data area supplying the temperature Instance variables private JLabel windTag References the label for the data entry area supplying the windspeed Instance variables private JTextField windText References the data area supplying the windspeed Instance variables private JLabel chillTag References the label for the data area giving the windchill Instance variables private JTextField chillText References the data area giving the windchill Class constants private static final String LEGEND = "This windchill calculator" + "is intended for velocities greater than 4 mph. Program legend text Class constants private static final int WINDOW_WIDTH = 350 Initial width of the GUI Class constants private static final int WINDOW_HEIGHT = 185 Initial height of the GUI Class constants private static final int AREA_WIDTH = 40 Width of the program legend in characters Class constants private static final int FIELD_WIDTH = 40 Number of characters per data entry area Class constants private static final FlowLayout LAYOUT_STYLE = new FlowLayout() References manager that lays out GUI components in a top- to-bottom, left-to-right manner Class constants private static FlowLayout LAYOUT_STYLE = new FlowLayout() References manager that lays out GUI components in a top- to-bottom, left-to-right manner Class constants...
View Full Document

This document was uploaded on 10/22/2011.

Page1 / 51

114-13-gui-programming - GUI programming Graphical user...

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

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