Changeset 2789


Ignore:
Timestamp:
2001-10-11T11:38:18+13:00 (20 years ago)
Author:
kjm18
Message:

fixed the Prev and Next buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/java/org/nzdl/gsdl/Phind/Phind.java

    r2507 r2789  
    822822    // Enable or disable the "Previous" and "Next" buttons
    823823    void enablePreviousAndNext() {
    824 
    825824    if (showControlPanel) {
    826825        Component c = firstDisplay.current;
    827         if (c.getClass().getName().equals("ResultBox")) {
     826        if (c.getClass().getName().endsWith("ResultBox")) {
    828827        if (((ResultBox) c).prevBoxExists()) {
    829828            prevButton.enable();
     
    834833       
    835834        c = lastDisplay.current;
    836         if (c.getClass().getName().equals("ResultBox")) {
     835        if (c.getClass().getName().endsWith("ResultBox")) {
    837836        if (((ResultBox) c).nextBoxExists()) {
    838837            nextButton.enable();
     
    850849
    851850    Component c = firstDisplay.current;
    852     if (c.getClass().getName().equals("ResultBox")) {
     851    if (c.getClass().getName().endsWith("ResultBox")) {
    853852
    854853        ResultBox b = (ResultBox) c;
     
    877876
    878877    Component c = lastDisplay.current;
    879     if (c.getClass().getName().equals("ResultBox")) {
     878    if (c.getClass().getName().endsWith("ResultBox")) {
    880879
    881880        ResultBox b = (ResultBox) c;
Note: See TracChangeset for help on using the changeset viewer.