Question

Create a new Netbeans project application from scratch called MyAge. Create a GUI that accepts user...

Create a new Netbeans project application from scratch called MyAge. Create a GUI that accepts user input. The final script should be able to calculate your age when your date of birth is entered. Include a simple try and catch for arithmetic errors.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Open Netbeans IDE

click on File>new project

select java application and give project name as My Age

My Age.java will be open

on the left side of panel Right click on get types>new>jframe Form

name it Age calculator

Agecalculator.java will be created

By using labels and text boxes and button create this type of scenario

Right click on button(get years) select Events>action>action performed this type of scenario will appear

start writing code from the ticked area in image

now go to top and below package MY Age import following

after importing again start writing code

Now Run the project it will build successful

click on My Age.java

write the following code shown in image

Run the program

o/p will be

Thank you

Add a comment
Know the answer?
Add Answer to:
Create a new Netbeans project application from scratch called MyAge. Create a GUI that accepts user...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create a new NetBeans project from scratch named PowerDemo. Write a method that uses recursion to...

    Create a new NetBeans project from scratch named PowerDemo. Write a method that uses recursion to raise a number to a power. The method should accept two arguments: the number to be raised and the exponent. Assume that the exponent is a nonnegative integer. Demonstrate the method in a program. The main method will provide the testing code for using user input for the recursive method.

  • In Java please Create a GUI application that accepts student registration data. The GUI with valid...

    In Java please Create a GUI application that accepts student registration data. The GUI with valid data Shudent Fagtrtion x Rt Name Haold Moore Lst Name Yar of Brth 2001 Temporary PesowordHal200 Wlcome Harald Moore! RegsterEt The GUI with invalid data Shudent Fegtrtion DX Fect Name Haold Last Name ar of Brth 2001 Tempoay Pawod Haold 200 Pesse eer St and lact name and ye of bith Regster Et Specifications Use FXML to create the GUI The text box that...

  • Create a GUI program (a Windows Forms Application) called GooseEggCalculator that lets a user enter the...

    Create a GUI program (a Windows Forms Application) called GooseEggCalculator that lets a user enter the number of eggs produced by each of four geese. Your program should provide textboxes with labels for the user to enter the values. When the user clicks a Calculate button, your app should sum the textboxes, then display the total number of eggs, as well as the number of eggs in dozens and remaining eggs, as shown on the example. Feel free to make...

  • create a new Java application called "WeightedAvgWithExceptions" (without the quotation marks), according to the following guidelines...

    create a new Java application called "WeightedAvgWithExceptions" (without the quotation marks), according to the following guidelines and using try-catch-finally blocks in your methods that read from a file and write to a file, as in the examples in the lesson notes for reading and writing text files. Input File The input file - which you need to create and prompt the user for the name of - should be called 'data.txt', and it should be created according to the instructions...

  • Create a new NetBeans project called PS1Gradebook. Your program will simulate the design of a student...

    Create a new NetBeans project called PS1Gradebook. Your program will simulate the design of a student gradebook using a two-dimensional array. It should allow the user to enter the number of students and the number of assignments they wish to enter grades for. This input should be used in defining the two-dimensional array for your program. For example, if I say I want to enter grades for 4 students and 5 assignments, your program should define a 4 X 5...

  • Create a new project called Date In This new project you are going to design a...

    Create a new project called Date In This new project you are going to design a class of Date. This mean that you need to create functions within the class to validate the Date for example: is it a leap year? How many days a months has? How many months are? Create a simple main menu capable of entering a date and validating a date. Instructions • Create a class of Date with attribues and member functions (remember the use...

  • Create a File menu in your GUI. Add a file menu to your clockGUI with options...

    Create a File menu in your GUI. Add a file menu to your clockGUI with options to open any file for reading ( and displaying the file as in Project2) and one to Quit the program.You will need a FileMeu Handler classto handle the events from FileMenu. Be sure to use getAbsolutepath() when getting the file from JFileChooser, not getName(). Handle Exceptions A data file will be provided that will contain errors (eg- hours>23,minutes>59, seconds>59). Create an exception called IllegalClockException...

  • Exercise 1 1. Create a simple Graphical User Interface (GUI): Create new JFrameForm and use the...

    Exercise 1 1. Create a simple Graphical User Interface (GUI): Create new JFrameForm and use the Palette to drag and drop the Swing Containers and Controllers like the figure shown. Your Form should accept number in its text field as Month. When the user press GO Button, the corresponding Month Name has to be displayed in the Label, otherwise, the Label text has to indicate that the number entered is invalid Convert month number to month name: W Gom The...

  • in a java application need  to create an application which prompts the user numerator and denominator values...

    in a java application need  to create an application which prompts the user numerator and denominator values then show the result of the division.  The application will use exception handling to verify the user has entered valid input and will continue to prompt the user for input as long as the value they enter is invalid.  Once the user has entered valid numerator and denominator values, the result is shown and the application exits. had some issues when I entered letters instead of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT