We then show how to animate a Window from within a Java thread.
The Window will show in real time a JFreeChart chart of the memory
consumption of the development environment.
- Thread Interaction: We
give an overview of the components and the execution flow that
we will use in the solution. There will be two active
- Memory Panel: This
component will show the memory usage in a chart. The chart will
roll from right to left and show a constant set of sample
- Frame Thread: This
component will do the memory sampling and place a memory panel
update on the event queue. More...
- Memory Frame: This
component will show the memory usage in a window frame and
provide a Java method for a foreign predicate to show the window
- Example Uses: The
memory monitor can be invoked from within the development
environment. The memory usage pattern highly depends on the JVM.