How to show the CPU and disk usage in a JProgressBar?
问题 I want to display the current cup usage and disk usage in two separate JProgressBar s. And also it should update second by second. How to do it using java? I am quite new to java programming, so please give me some code example. Thanks in advance. 回答1: You can use javasysmon-0.3.4.jar file to get the system related informations as CPU Usage,memory usage etc. Some of the methods are listed below and if you want something else you can explore. JavaSysMon monitor=new JavaSysMon(); //System.out