Controlled Assessment Practice. Programming Task: Task 1. Creating An Applet. In NetBeans , create a new project by going to "File > New Project." In the "Choose Project" window, click " Java Application" and click "Next." Name the project “ ControlledAssessment " and click "Finish .“
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Programming Task: Task 1
import java.applet.*;import java.awt.*;
* Le me wondering why my applet needs to go to the library
* Le me finding out that library files are pre-written files of code that I can call inside my code!
g.drawString ("Random Number was:" + randomInt, 25, 60);
* Le me realising that to draw a new line, I need to add 10 to the y axis of the draw() co-ordinates!
We are going to create a new function within the applet where we will begin to create text boxes to allow the user to type in data.
Before your user can interact with the screen at all, the form will need a button to call the function. This is called an ‘on-click event’