axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r551348 - /webservices/axis2/trunk/java/modules/samples/deprecated/googlesearch/src/sample/google/search/GUIHandler.java
Date Wed, 27 Jun 2007 21:50:53 GMT
Author: dims
Date: Wed Jun 27 14:50:52 2007
New Revision: 551348

URL: http://svn.apache.org/viewvc?view=rev&rev=551348
Log:
Fix for AXIS2-1414 - A bug found in the googleSearch sample in Axis2

Modified:
    webservices/axis2/trunk/java/modules/samples/deprecated/googlesearch/src/sample/google/search/GUIHandler.java

Modified: webservices/axis2/trunk/java/modules/samples/deprecated/googlesearch/src/sample/google/search/GUIHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/deprecated/googlesearch/src/sample/google/search/GUIHandler.java?view=diff&rev=551348&r1=551347&r2=551348
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/deprecated/googlesearch/src/sample/google/search/GUIHandler.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/deprecated/googlesearch/src/sample/google/search/GUIHandler.java
Wed Jun 27 14:50:52 2007
@@ -126,6 +126,7 @@
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 
         nextButton = new JButton("More Results");
+	nextButton.setEnabled(false);
         pane.add(nextButton);
         nextButton.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
@@ -154,6 +155,9 @@
         textBox = new JTextField();
         textBox.addKeyListener(new KeyListener() {
             public void keyPressed(KeyEvent e) {
+		 if (e.getKeyCode() == 10) {
+                     setButtons();
+                 }
             }
 
             public void keyReleased(KeyEvent e) {
@@ -246,6 +250,12 @@
             doSearch();
         }
     }
+
+    private void setButtons() {
+        nextButton.setEnabled(true);
+        backButton.setVisible(false);
+    }
+
 
     /**
      * method keyTyped



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message