Question: help me create a java applet in netbeans that ask the user for their first and last names and their birth year. After the user

help me create a java applet in netbeans that ask the user for their first and last names and their birth year. After the user enters the requested data and clicks the View Greeting button, the form will change the greeting to show a personalized greeting and the users current age.

help me create a java applet in netbeans that ask the user

Class imports:

import javax.swing.*;

import java.awt.*;

import java.awt.event.*;

import java.util.Calendar;

Form objects:

JLabel greeting

JLabel viewAge

JLabel firstLabel

JTextField txtfirstName

JLabel lastLabel

JTextField txtlastName

JLabel birthLabel

JTextField txtbirthYear

JButton viewGreeting

Form when first opened Applet Viewer: JGreet3 class Applet Greetings! Please enter your first name Please enter your last name: Please enter your four-digit Year of Birth (YYYY) View Greeting Applet started. Form after data entered and View Greeting button clicked Applet Viewer: JGreet .class Applet How are you, John Doe? Your age is 29 years Please enter your first name: John Please enter your last name: Doe Please enter your four-digit Year of Birth (YYYY) 1985 iew Greeting Applet started

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!