BMI - -public static void main(String args JFrame frame =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // BMI.java // // Sets up a GUI to calculate body mass index. //******************************************************************** import javax.swing.JFrame; public class BMI { //----------------------------------------------------------------- // Creates and displays the BMI GUI.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public static void main (String args) { JFrame frame = new JFrame("BMI"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); BMIPanelDone panel = new BMIPanelDone(); frame.getContentPane().add(panel); frame.pack(); frame.setVisible(true); } }...
View Full Document

Ask a homework question - tutors are online