private void setupUserTable() { JournalAbbreviationRepository userAbbr = new JournalAbbreviationRepository(); String filename = personalFile.getText(); if (!"".equals(filename) && new File(filename).exists()) { try { userAbbr.readJournalListFromFile(new File(filename)); } catch (FileNotFoundException e) { LOGGER.warn("Problem reading abbreviation file", e); } } tableModel.setJournals(userAbbr.getAbbreviations()); userTable = new JTable(tableModel); userTable.addMouseListener(tableModel.getMouseListener()); userPanel.add(new JScrollPane(userTable), BorderLayout.CENTER); }