given this example, modify it so it is in an applet. The prompts will now be in
ID: 3539018 • Letter: G
Question
given this example, modify it so it is in an applet.
The prompts will now be in labels and the input will now be textfields.
The user will hit enter in the second textfield to get the results in two other answer labels.
The results (which is greater and the difference amount) will be in these two other answer labels. Declare everything at the top
, use the init to add the components to your container (use background and foreground colors and the flow layout),
and use actionPerformed to get the text out of the textfields for the two strings (instead of readLines), to perform the nested if else with the comparisons,
and the setting of the answers in the answer labels (instead of printlns).
Explanation / Answer
Hi, do u have a user interface or I can build my own ?
I can do it but need time. Reply if ok, I will give u my email id to keep in touch
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.