java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java
changeset 11 9b399cde6a3b
parent 10 ed2b6ebf138d
child 13 6c633be53dd6
     1.1 --- a/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java	Wed Dec 15 23:29:14 2010 +0100
     1.2 +++ b/java/rozsirene-atributy/src/cz/frantovo/rozsireneAtributy/gui/Panel.java	Wed Dec 15 23:58:34 2010 +0100
     1.3 @@ -23,6 +23,8 @@
     1.4  		this.model = model;
     1.5  		initComponents();
     1.6  		tabulka.setModel(model);
     1.7 +		
     1.8 +		/** Výběr aktuálního atributu v tabulce */
     1.9  		tabulka.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    1.10  
    1.11  			public void valueChanged(ListSelectionEvent e) {
    1.12 @@ -71,6 +73,7 @@
    1.13          tabulka.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    1.14          posuvnýPanel.setViewportView(tabulka);
    1.15  
    1.16 +        tlačítkoPřidat.setMnemonic('p');
    1.17          tlačítkoPřidat.setText("Přidat atribut");
    1.18          tlačítkoPřidat.addActionListener(new java.awt.event.ActionListener() {
    1.19              public void actionPerformed(java.awt.event.ActionEvent evt) {
    1.20 @@ -78,6 +81,7 @@
    1.21              }
    1.22          });
    1.23  
    1.24 +        tlačítkoSmazat.setMnemonic('s');
    1.25          tlačítkoSmazat.setText("Smazat atribut");
    1.26          tlačítkoSmazat.setEnabled(false);
    1.27          tlačítkoSmazat.addActionListener(new java.awt.event.ActionListener() {
    1.28 @@ -86,6 +90,7 @@
    1.29              }
    1.30          });
    1.31  
    1.32 +        tlačítkoZnovuNačíst.setMnemonic('z');
    1.33          tlačítkoZnovuNačíst.setText("Znovu načíst");
    1.34          tlačítkoZnovuNačíst.addActionListener(new java.awt.event.ActionListener() {
    1.35              public void actionPerformed(java.awt.event.ActionEvent evt) {
    1.36 @@ -104,8 +109,8 @@
    1.37                  .addComponent(tlačítkoSmazat)
    1.38                  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    1.39                  .addComponent(tlačítkoZnovuNačíst)
    1.40 -                .addContainerGap(90, Short.MAX_VALUE))
    1.41 -            .addComponent(posuvnýPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 447, Short.MAX_VALUE)
    1.42 +                .addContainerGap(186, Short.MAX_VALUE))
    1.43 +            .addComponent(posuvnýPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 543, Short.MAX_VALUE)
    1.44          );
    1.45          layout.setVerticalGroup(
    1.46              layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)