A good answer might be:Yes. | |
The |
public class percentFat extends Frame implements ActionListener
{
Label title = new Label("Percent of Calories from Fat");
Label fatLabel = new Label("Enter grams of fat: ");
Label calLabel = new Label("Enter total calories: ");
Label perLabel = new Label("Percent calories from fat: ");
TextField inFat = new TextField( 7 );
TextField inCal = new TextField( 7 );
TextField outPer = new TextField( 7 );
Button doit = new Button("Do It!");
Panel fatPanel = new Panel(); // fat input components
Panel calPanel = new Panel(); // calorie input components
Panel perPanel = new Panel(); // percent fat output components
. . . . . .
}
|
How are components put into a panel?
Click Here after you have answered the question