Addition of getter methods

The code for the new getter methods is shown in Listing 1.

These two methods simply return values that already exist in the PictureExplorer object.

Listing 1. Addition of getter methods.
//===Methods added by Baldwin on 05/15/12===============//
  //Method to get the red color value as text.
  public String getRValue(){
    return rValue.getText();
  }//end getRValue

  //Method to get a reference to the JFrame containing
  // the PictureExplorer object.
  public JFrame getFrame(){
    return pictureFrame;
  }//end getFrame()
//===End methods added by Baldwin on 05/15/12===========//
File: al.htm [Next] [Prev]