Write a Java class that converts the bitmap image to JPEG format.
Add a second viewable pane on your image viewer in part 1. The original pane should display the original bitmap image, and the second pane should display the converted JPEG image.
Add a mechanism to input the quantization matrix. It should have three options:
(a) default JPEG matrix
(b) a constant number;
(c) DC component only (i.e. set all other numbers to zero).
Add an option to the File menu to output the compressed JPEG image to the hard disk.