Skip to content

Issues faced and Solution

Aliya Fatihah edited this page Jul 3, 2020 · 9 revisions

Issue: Variable initialized(x1,y2,x2,y2) not displaying value when running the program in Graph class.
Solution: Creating another constructor with different parameters to pass the value because the Graph class is called again in frame.add(newGraph()).

Issue: Cannot generate a suitable graph that doesn't connect to each other
Solution: Did some research and try and error a few JFreechart and finally able to choose the XY line graph and manipulate it to fit our requirements

Issue: Problem in stopping the thread from running using Runnable
Solution: implement executorService to stop the thread using shutdown() method

Issue: Timer doesn't run concurrently with the thread
Solution: Use the same threadpool for thread and timer

Clone this wiki locally