diff -r c2ffda907125 -r 8d42303538ed java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/gui/Panel.java --- a/java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/gui/Panel.java Mon Dec 11 00:28:30 2023 +0100 +++ b/java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/gui/Panel.java Mon Dec 11 00:49:59 2023 +0100 @@ -34,8 +34,10 @@ public class Panel extends javax.swing.JPanel { private static final int SLOUPEC_NÁZVU = 0; - private static final Logger log = Logger.getLogger(Panel.class.getSimpleName()); - private static final ResourceBundle překlady = ResourceBundle.getBundle(Atribut.class.getPackageName() + ".Překlady"); + private static final Logger log = Logger + .getLogger(Panel.class.getSimpleName()); + private static final ResourceBundle překlady = ResourceBundle + .getBundle(Atribut.class.getPackageName() + ".Překlady"); private Model model; private Atribut vybranýAtribut; private JTable tabulka; @@ -50,7 +52,8 @@ posuvnýPanel.setViewportView(tabulka); /** Výběr aktuálního atributu v tabulce */ - tabulka.getSelectionModel().addListSelectionListener(new ListSelectionListener() { + tabulka.getSelectionModel().addListSelectionListener( + new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent e) { @@ -67,7 +70,8 @@ } private void nastavEditor() { - tabulka.getColumnModel().getColumn(SLOUPEC_NÁZVU).setCellEditor(new EditorNázvůAtributů()); + tabulka.getColumnModel().getColumn(SLOUPEC_NÁZVU) + .setCellEditor(new EditorNázvůAtributů()); } private Model getModel() { @@ -81,7 +85,8 @@ } private void zobrazChybovouHlášku(String hláška, Throwable chyba) { - JOptionPane.showMessageDialog(this, hláška, překlady.getString("chyba"), JOptionPane.ERROR_MESSAGE); + JOptionPane.showMessageDialog(this, hláška, + překlady.getString("chyba"), JOptionPane.ERROR_MESSAGE); log.log(Level.WARNING, hláška, chyba); } @@ -155,7 +160,8 @@ try { model.odeberAtribut(vybranýAtribut); } catch (IOException e) { - zobrazChybovouHlášku(překlady.getString("chyba.nepodařiloSeSmazat"), e); + zobrazChybovouHlášku(překlady + .getString("chyba.nepodařiloSeSmazat"), e); } }//GEN-LAST:event_tlačítkoSmazatActionPerformed @@ -163,7 +169,8 @@ try { model.načtiAtributy(); } catch (IOException e) { - zobrazChybovouHlášku(překlady.getString("chyba.nepodařiloSeNačíst"), e); + zobrazChybovouHlášku(překlady + .getString("chyba.nepodařiloSeNačíst"), e); } }//GEN-LAST:event_tlačítkoZnovuNačístActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables