From da0afcc0f58f4830040e6b8707909cc2ed5fe18d Mon Sep 17 00:00:00 2001 From: j-dimension Date: Fri, 8 Dec 2023 21:49:49 +0100 Subject: [PATCH] improve scrolling with up / down keys. close #2025. --- .../jlawyer/ui/folders/CaseFolderPanel.java | 6 ++++++ .../libs/j-lawyer-bea-wrapper.jar | Bin 9464231 -> 9464138 bytes 2 files changed, 6 insertions(+) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java index 5d21bc70d..c5a45f3c8 100644 --- a/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/ui/folders/CaseFolderPanel.java @@ -674,6 +674,7 @@ You should also get your employer (if you work as a programmer) or school, import com.jdimension.jlawyer.services.JLawyerServiceLocator; import java.awt.Component; import java.awt.Dimension; +import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.util.ArrayList; import java.util.Collections; @@ -1715,11 +1716,14 @@ void selectNextDocument() { if (selectNext) { this.selectAllDocuments(false); ((DocumentEntryPanel) c).setSelected(true); + Rectangle bounds = c.getBounds(); + this.pnlDocumentEntries.scrollRectToVisible(bounds); return; } if (((DocumentEntryPanel) c).isSelected()) { selectNext = true; } + } } } @@ -1741,6 +1745,8 @@ void selectPreviousDocument() { if (prev instanceof DocumentEntryPanel) { this.selectAllDocuments(false); ((DocumentEntryPanel) prev).setSelected(true); + Rectangle bounds = prev.getBounds(); + this.pnlDocumentEntries.scrollRectToVisible(bounds); } } diff --git a/j-lawyer-proprietary/libs/j-lawyer-bea-wrapper.jar b/j-lawyer-proprietary/libs/j-lawyer-bea-wrapper.jar index fa6e02efd05c15acf638a2b95b2146f998539a50..3d600709eff6d52c844c00b8eb4c2d900e7bdfa0 100644 GIT binary patch delta 5904 zcmai&2~<>9wuaBG3sn?UL5a-sJPV=%#axV{Afn75lYok|qDDnU+YszT^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