D:\Stephenie\School Work\Yr1 Semester 2\Java Project\AppointmentPage.java:200: getFont() in AppointmentPage cannot override getFont() in java.awt.Component; attempting to use incompatible return type
found : void
required: java.awt.Font
public void getFont() {
^
FileOutputStream out = new FileOutputStream(outputFile); PrintStream fileOutput = new PrintStream(out);
for (int x = 0; x < AppList.size(); x++) {
aObjt = (FindDay)AppList.get(x);
fileOutput.println(aObjt.getDate() + ";" + aObjt.getMonth() + ";" + aObjt.getYear() + ";" + aObjt.getTime() + ";" + aObjt.getAm() + ";" + aObjt.getApp());
}
i'm unable to update my data.. i'm not sure what have gone wrong.. Whenever i try to update, it would overwrite the first position of the data in the Textfile.. and then it's unable to display it.. (No matter which date i try to update, it's would definitely overwrite the first data)