[jsword-svn]
bibledesktop/java/main/org/crosswire/bibledesktop/book s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Wed Apr 6 16:35:58 MST 2005
Update of /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/book
In directory www.crosswire.org:/tmp/cvs-serv4078/java/main/org/crosswire/bibledesktop/book
Modified Files:
DictionaryPane.java
Log Message:
Fixed a bug in the reference pane and generally improved it.
Index: DictionaryPane.java
===================================================================
RCS file: /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/book/DictionaryPane.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** DictionaryPane.java 21 Mar 2005 02:37:18 -0000 1.17
--- DictionaryPane.java 6 Apr 2005 23:35:56 -0000 1.18
***************
*** 278,281 ****
--- 278,287 ----
{
Object selected = lstDicts.getSelectedValue();
+ // Don't leave the scroller in the middle of the list!
+ lstEntries.ensureIndexIsVisible(0);
+ // Make sure that the list of keys is empty.
+ lstEntries.setModel(new KeyListListModel(null));
+ // Make sure that the display is emtpy.
+ display.setBookData(null, null);
if (selected != null)
{
***************
*** 301,304 ****
--- 307,311 ----
else
{
+ updateDisplay();
sptMain.setTopComponent(pnlSelect);
}
More information about the jsword-svn
mailing list