9 |
import java.util.TimerTask; |
import java.util.TimerTask; |
10 |
|
|
11 |
import javax.swing.JProgressBar; |
import javax.swing.JProgressBar; |
|
import javax.swing.SwingUtilities; |
|
12 |
|
|
13 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
14 |
|
|
|
import schmitzm.geotools.gui.GeotoolsGUIUtil; |
|
15 |
import schmitzm.lang.LangUtil; |
import schmitzm.lang.LangUtil; |
16 |
import schmitzm.lang.ResourceProvider; |
import schmitzm.lang.ResourceProvider; |
17 |
import schmitzm.swing.SwingUtil; |
import schmitzm.swing.SwingUtil; |
30 |
|
|
31 |
public HeapBar() { |
public HeapBar() { |
32 |
updateTimer = new Timer("check memory"); |
updateTimer = new Timer("check memory"); |
33 |
updateTimer.scheduleAtFixedRate(new UpdateMemoryBarTask(), 100, 1000); |
updateTimer.scheduleAtFixedRate(new UpdateMemoryBarTask(), 1000, 5000); |
34 |
|
|
35 |
setMinimum(0); |
setMinimum(0); |
36 |
setMaximum(100); |
setMaximum(100); |