diff -r b3aeabbb1b43 -r cc6e58fb6aad java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java --- a/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java Wed Dec 15 23:29:14 2010 +0100 +++ b/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java Wed Dec 15 23:58:34 2010 +0100 @@ -23,6 +23,8 @@ this.model = model; initComponents(); tabulka.setModel(model); + + /** Výběr aktuálního atributu v tabulce */ tabulka.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { @@ -71,6 +73,7 @@ tabulka.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); posuvnýPanel.setViewportView(tabulka); + tlačítkoPřidat.setMnemonic('p'); tlačítkoPřidat.setText("Přidat atribut"); tlačítkoPřidat.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { @@ -78,6 +81,7 @@ } }); + tlačítkoSmazat.setMnemonic('s'); tlačítkoSmazat.setText("Smazat atribut"); tlačítkoSmazat.setEnabled(false); tlačítkoSmazat.addActionListener(new java.awt.event.ActionListener() { @@ -86,6 +90,7 @@ } }); + tlačítkoZnovuNačíst.setMnemonic('z'); tlačítkoZnovuNačíst.setText("Znovu načíst"); tlačítkoZnovuNačíst.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { @@ -104,8 +109,8 @@ .addComponent(tlačítkoSmazat) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tlačítkoZnovuNačíst) - .addContainerGap(90, Short.MAX_VALUE)) - .addComponent(posuvnýPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 447, Short.MAX_VALUE) + .addContainerGap(186, Short.MAX_VALUE)) + .addComponent(posuvnýPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 543, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)