Skip to content

Commit

Permalink
fixed issue with status bar not being updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Kramer committed Oct 13, 2013
1 parent 1ddedfe commit 1f616a6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions kse/src/net/sf/keystore_explorer/gui/KseFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.MatteBorder;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.plaf.TabbedPaneUI;
import javax.swing.table.TableColumn;
import javax.swing.table.TableModel;
Expand Down Expand Up @@ -1382,6 +1384,13 @@ private void initMainPane() {
jkstpKeyStores.setTabLayoutPolicy(tabLayout);

jkstpKeyStores.setBorder(new EmptyBorder(3, 3, 3, 3));

jkstpKeyStores.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent evt) {
// Update controls as selected KeyStore is changed
updateControls(false);
}
});

jkstpKeyStores.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent evt) {
Expand All @@ -1393,7 +1402,8 @@ public void mouseReleased(MouseEvent evt) {
}

public void mouseClicked(MouseEvent evt) {
if (evt.getButton() == MouseEvent.BUTTON2) { // Close tab if it is middle-clicked
// Close tab if it is middle-clicked
if (evt.getButton() == MouseEvent.BUTTON2) {
closeAction.closeActiveKeyStore();
}
}
Expand Down Expand Up @@ -2572,7 +2582,7 @@ public void setStatusBarText(String status) {
}

/**
* Set the text in the staus bar to reflect the status of the active
* Set the text in the status bar to reflect the status of the active
* KeyStore.
*/
public void setDefaultStatusBarText() {
Expand Down

0 comments on commit 1f616a6

Please sign in to comment.