Objects and Methods Summary


[Page 170 (continued)]

Here are the methods used or introduced in this chapter:

new Picture(int width, int height)

Creates a new Picture object with the given width and height. All pixels are white.

getMediaPath(String fileName)

Returns the full path name with the media directory followed by the passed file name. This is a class method on the FileChooser class. The default media directory is "c:/intro-prog-java/mediasources/".

setMediaPath(String directory)

Sets the media directory to use when getting a full path using getMediaPath(String fileName). This is a class method on the FileChooser class.




Introduction to Computing & Programming Algebra in Java(c) A Multimedia Approach
Introduction to Computing & Programming Algebra in Java(c) A Multimedia Approach
ISBN: N/A
EAN: N/A
Year: 2007
Pages: 191

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net