i'm trying to update a time component value, from one external gui application which is linked to a main gui in the same package. could any one help in updating or refreshing the gui screen with the time value i modified which is stored in a file.?
**SCHEDULER class:** // responsible for retrieving the time value from stored file and display in the main gui.
public static void runTask1(Task_Scheduler tes)
{
if(tes.isActived() >= 1)
{
.... (some operations)
System.out.println("Start time : " + tes.getStartTime());
worker.executeAtAndRepeat(tes.getStartTime().getTime()); // another class method
} else
{
.....
}
}
**GUI class:** // application that i have to update time.
/* GUI components declaration */
public void update_time()
{
...........
...........
}
public void actionPerformed(ActionEvent e) {
if(e.getSource()==Ok_button){
try {
update_time(); // This method updates my time.
JOptionPane.showMessageDialog(null, "Updated Successfully !");
.....
} catch (Exception e1) {
e1.printStackTrace();
}
scheduler.runTask1(tes);
}
}
**Task_Scheduler class:** // for passing time value as argument in scheduler class.
...
public Timestamp getStartTime()
{
return startTime;
}
...
Here's what i have tried to query in the past week about the same issue.. Kindly refer this link too, to have a common idea. my previous question