[jsword-svn] common/java/swing/org/crosswire/common/progress/swing s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Sat Apr 2 21:07:38 MST 2005
Update of /cvs/jsword/common/java/swing/org/crosswire/common/progress/swing
In directory www.crosswire.org:/tmp/cvs-serv16854/java/swing/org/crosswire/common/progress/swing
Modified Files:
JobsViewPane.java JobsProgressBar.java
Log Message:
Fix bugs.
Index: JobsViewPane.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/progress/swing/JobsViewPane.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** JobsViewPane.java 8 Mar 2005 02:31:40 -0000 1.8
--- JobsViewPane.java 3 Apr 2005 04:07:36 -0000 1.9
***************
*** 27,30 ****
--- 27,31 ----
import org.crosswire.common.progress.WorkEvent;
import org.crosswire.common.progress.WorkListener;
+ import org.crosswire.common.swing.GuiUtil;
import org.crosswire.common.util.Logger;
***************
*** 176,180 ****
jobsPanel.add(progress, new GridBagConstraints(1, i, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
jobsPanel.add(cancel, new GridBagConstraints(2, i, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
! this.revalidate();
JobData jobdata = new JobData(job, i, label, progress, cancel);
--- 177,181 ----
jobsPanel.add(progress, new GridBagConstraints(1, i, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
jobsPanel.add(cancel, new GridBagConstraints(2, i, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
! GuiUtil.refresh(this);
JobData jobdata = new JobData(job, i, label, progress, cancel);
***************
*** 219,223 ****
jobsPanel.remove(jobdata.getCancel());
! this.revalidate();
jobdata.invalidate();
--- 220,224 ----
jobsPanel.remove(jobdata.getCancel());
! GuiUtil.refresh(this);
jobdata.invalidate();
***************
*** 230,234 ****
{
jobsPanel.add(noJobLabel, new GridBagConstraints(0, 0, 3, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
! this.revalidate();
}
--- 231,235 ----
{
jobsPanel.add(noJobLabel, new GridBagConstraints(0, 0, 3, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
! GuiUtil.refresh(this);
}
***************
*** 239,243 ****
{
jobsPanel.remove(noJobLabel);
! this.revalidate();
}
--- 240,244 ----
{
jobsPanel.remove(noJobLabel);
! GuiUtil.refresh(this);
}
Index: JobsProgressBar.java
===================================================================
RCS file: /cvs/jsword/common/java/swing/org/crosswire/common/progress/swing/JobsProgressBar.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** JobsProgressBar.java 20 Mar 2005 02:34:52 -0000 1.12
--- JobsProgressBar.java 3 Apr 2005 04:07:36 -0000 1.13
***************
*** 144,148 ****
this.add(jobdata.getComponent(), i);
! this.revalidate();
}
--- 144,148 ----
this.add(jobdata.getComponent(), i);
! GuiUtil.refresh(this);
}
***************
*** 180,184 ****
this.remove(jobdata.getComponent());
! this.revalidate();
jobdata.invalidate();
}
--- 180,184 ----
this.remove(jobdata.getComponent());
! GuiUtil.refresh(this);
jobdata.invalidate();
}
More information about the jsword-svn
mailing list