Course Solutions Uncategorized (Solved) : Function Says Button Generate Report Pressed Text File Generated Title Label1 Date Time Ac Q32904270 . . . .

(Solved) : Function Says Button Generate Report Pressed Text File Generated Title Label1 Date Time Ac Q32904270 . . . .

 

//this function says that if the button “generate report” ispressed a text file

//will be generated. It will have the title from label1,date&time, and

//Activity name & Activity duration which was entered by theuser in

//jTextArea in the form “activityname,duration,parent +

acitivityname,duration,parent’ here the delimiter is +

DisplayGUI.java

else if(str.equals(“Generate Report”))

{

try {

FileWriter fw = new FileWriter(“D:Report.txt”);

BufferedWriter buffer = new BufferedWriter(fw);

String title=”Title: “+lb1.getText();

DateFormat dateFormat = new SimpleDateFormat(“MM/dd/YYYYHH:mm:ss”);

Date date = new Date();

buffer.write(title);

buffer.newLine();

buffer.write(“nDate and Time of Creation:”+dateFormat.format(date));

buffer.newLine();

//ENTER YOUR CODE HERE TO PRINT ALL ACTIVITY NAMES &DURATION

  

  

buffer.write(“nList of activities & their duration: ” +));

buffer.close();

}

catch (Exception e) {

System.out.println(e);

}

}

**Node.java**

//this class sees the activity name and duration and parents forevery node entered by

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post