CompactCacheAction() {
super("Compact now");
}
public void actionPerformed(ActionEvent ev) {
HttpCache httpCache = ClientConfiguration.getDefault().getHttpCache();
if (httpCache != null) {
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
httpCache.open();
httpCache.shutdownCompact();
setCursor(Cursor.getDefaultCursor());
}
}