View Single Post
  #9 (permalink)  
Old 11-11-2009, 03:43 AM
AlbertoPL AlbertoPL is offline
Member
 
Join Date: Sep 2009
Posts: 22
Rep Power: 0
AlbertoPL is on a distinguished road
Default
You should be writing initialPage = url in the listener that the Go button is registered to. There is actually no such listener in the code, you will have to write that yourself.

class backButtonListener implements ActionListener {

}

That handles the back button, you will want to create your go button listener in a similar way as the backButtonListener class.

backButton.addActionListener(new backButtonListener(jep, backButton, history, label));

That line registers the back button to the backButtonListener class, you will have to do a similar thing with the go button.
Reply With Quote