Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java program Supplement your program with a back and a forward button. have to you internally manage a list of the terms entered so far.

java program

Supplement your program with a "back" and a "forward" button. have to you internally manage a list of the terms entered so far. If the user is on If you click "Back", the last term entered is displayed. Until the user reached the first term entered. At this moment the back button disabled by your program. The forward button should work in the same way. The example for this functionality is the forward and back button in Firefox.

In addition to the list containing the term history, you should also have a Realize attribute containing the index of the currently displayed term. At the beginning is this index equals -1 and the term history length is 0. Whenever the user enters a enters a new term, the term history grows by one list element and the index contains the index of the last term in the history of terms. When the user scrolls back, your program decreases the index by 1 at a time. If the user is in the middle of a enters a new term, your program must "truncate" the term history. All older Terms must be preserved in history. You must delete all later terms. Please try the following test case:

Enter the term A, click "Search". Enter the term B, click "Search". Enter the term C, click "Search". Press "Back" Article B appears. Enter the term D, click "Search". Press "Back" Article B appears. Press "Back" Article A appears. The "Back" button is disabled Press "Forward" Article B appears. "Back" and "Forward" buttons are enabled Press "Next" Article D appears. The "Next" button is disabled

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions