阅读下列程序,请写出该程序的功能。
import java. awt.*;
import javax. swing.*;
public class Class33
public static void main(String[] args)throws Exception
JFrame frame=new JFrame("调制颜色");
JPanel pColor=new JPanel();
JLabel lColor=new JLabel("0,0,0");
pColor.setBackground(new Color(0,0,0);
JScrollBar sRed=new JScrollBar(JScrollBar. HORIZONTAL,0,1,0,256);
JScrollBar sGreen=new JScrollBar(JScrollBar. HORIZONTAL,0,1,0,256);
JScrolIBar sBule=new JScrollBar(JScrollBar. HORIZONTAL,0,1,0,256);
frame. setLayout(new GridLayout(5,1));
frame. add(pColor);
frame. add(lColor);
frame. add(sRed);frame. add(sGreen);
frame. add(sBule);
frame. pack();
frame. setVisible(true);
Color col;
int nRed,nGreen,nBule;
while (true)
nRed=sRed. getValue();
nGreen=sGreen. getValue();
nBule=sBule.getValue();
col=new Color(nRed,n(nGreen,nBule);
pColor. setBackground(col);
lColor. setText(nRed+","+nGreen+","+nBule);
Thread. sleep(100);