1.1 --- a/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java Sat Aug 18 13:27:00 2012 +0200
1.2 +++ b/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java Sun Oct 07 15:11:42 2012 +0200
1.3 @@ -1,19 +1,19 @@
1.4 /**
1.5 * Rozšířené atributy – program na správu rozšířených atributů souborů
1.6 * Copyright © 2012 František Kučera (frantovo.cz)
1.7 - *
1.8 + *
1.9 * This program is free software: you can redistribute it and/or modify
1.10 * it under the terms of the GNU General Public License as published by
1.11 * the Free Software Foundation, either version 3 of the License, or
1.12 * (at your option) any later version.
1.13 - *
1.14 + *
1.15 * This program is distributed in the hope that it will be useful,
1.16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.17 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 * GNU General Public License for more details.
1.20 - *
1.21 + *
1.22 * You should have received a copy of the GNU General Public License
1.23 - * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.24 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.25 */
1.26 package cz.frantovo.rozsireneAtributy.gui;
1.27
1.28 @@ -45,12 +45,14 @@
1.29 initComponents();
1.30
1.31 tabulka = new JTable(model);
1.32 + tabulka.getColumnModel().getColumn(0).setCellEditor(new EditorNázvůAtributů());
1.33 tabulka.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
1.34 posuvnýPanel.setViewportView(tabulka);
1.35
1.36 /** Výběr aktuálního atributu v tabulce */
1.37 tabulka.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
1.38
1.39 + @Override
1.40 public void valueChanged(ListSelectionEvent e) {
1.41 int řádek = tabulka.getSelectedRow();
1.42 if (řádek < 0) {