What will the added code be? How will the URL/string be obtained (why is this different from how it's obtained from pressing return in the textfield?)
hyperLinkUpdate
the code below appears. Why is the call to showNextURL
,
which is in the Browser class, valid?
If the call is replaced with this.showNextURL
the compiler
generates this message:
this
is replaced by
Browser.this
there is no error, the code is fine. Explain
makeButtons
where the code
below replaces the BorderLayout panel at the end of the function).
Propose a simple solution to keep the buttons together, but at the left of the bar rather than in the middle.
How will you implement next/back? What state needs to be kept in the browser? Are there other features regarding visited URLs that you could add using this state?