diff -r c20edbed09c3 -r bf06eb899671 java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java --- a/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java Sat Aug 18 13:27:00 2012 +0200 +++ b/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java Sun Oct 07 15:11:42 2012 +0200 @@ -1,19 +1,19 @@ /** * Rozšířené atributy – program na správu rozšířených atributů souborů * Copyright © 2012 František Kučera (frantovo.cz) - * + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * along with this program. If not, see . */ package cz.frantovo.rozsireneAtributy.gui; @@ -45,12 +45,14 @@ initComponents(); tabulka = new JTable(model); + tabulka.getColumnModel().getColumn(0).setCellEditor(new EditorNázvůAtributů()); tabulka.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); posuvnýPanel.setViewportView(tabulka); /** Výběr aktuálního atributu v tabulce */ tabulka.getSelectionModel().addListSelectionListener(new ListSelectionListener() { + @Override public void valueChanged(ListSelectionEvent e) { int řádek = tabulka.getSelectedRow(); if (řádek < 0) {