// Abort if the focus is not in the MainFrame this action is tied to
if(focusOwner==null)
return;
FolderPanel folderPanel = mainFrame.getActivePanel();
FileTable fileTable = folderPanel.getFileTable();
JTextField locationField = folderPanel.getLocationTextField();
JTree tree = folderPanel.getFoldersTreePanel().getTree();
// Request focus on the 'previous' component, the cycle order being from right to left, bottom to top.
Component previousComponent;
if(focusOwner==fileTable)
previousComponent = folderPanel.isTreeVisible()?tree:locationField;
else if(focusOwner==tree)
previousComponent = locationField;
else if(focusOwner==locationField)
previousComponent = fileTable;
else