[Jgnash-tracker] [ jgnash-Feature Requests-1705438 ] Select all upon entering field
jGnash Personal Finance
Brought to you by:
ccavanaugh
From: SourceForge.net <no...@so...> - 2008-03-27 04:12:14
|
Feature Requests item #1705438, was opened at 2007-04-22 18:11 Message generated for change (Comment added) made by glazeb You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=389747&aid=1705438&group_id=27240 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface Improvements Group: None Status: Open Priority: 5 Private: No Submitted By: Matthew (ransom1982) Assigned to: Nobody/Anonymous (nobody) Summary: Select all upon entering field Initial Comment: I would love it if the transaction entry fields would select all current text upon entering the field. This would make entering transactions for common payees much simpler, and less time consuming. ---------------------------------------------------------------------- Comment By: Brandon Glaze (glazeb) Date: 2008-03-26 23:12 Message: Logged In: YES user_id=1996381 Originator: NO We have worked on this enhancement and have the additions needed to make the payee, memo, and amount field select all the text when you click in it. All the code changes are in one file: src/jgnash/ui/register: AbstractBankTransactionPanel.java The two areas you need to add code are in the constructor method right after line 119: if (memoField instanceof AutoCompleteTextField) { memoField.addFocusListener(new PayeeFocusListener()); } if (amountField instanceof JFloatField) { amountField.addFocusListener(new PayeeFocusListener()); } and in the focusGained method right after line 336: payeeField.selectAll(); amountField.selectAll(); memoField.selectAll(); If you do these changes then they will all select all the text for these fields to help people change the text quicker. Let us know if you have any questions. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=389747&aid=1705438&group_id=27240 |