Permalink
Browse files

added sendButton action

  • Loading branch information...
Bela Ban
Bela Ban committed Nov 29, 2010
1 parent 464741d commit 680e86ac6da12046cb7c636e931aba9b73451d8e
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/org/jgroups/demos/StompChat.java
@@ -199,6 +199,12 @@ public void mouseClicked(MouseEvent e) {
sendButton=new JButton("Send");
sendButton.setPreferredSize(new Dimension(150, 30));
buttons.add(sendButton);
+ sendButton.addMouseListener(new MouseAdapter() {
+ public void mouseClicked(MouseEvent e) {
+ send(txtField.getText());
+ txtField.selectAll();
+ }
+ });
clearButton=new JButton("Clear");
clearButton.setPreferredSize(new Dimension(150, 30));

0 comments on commit 680e86a

Please sign in to comment.