//******************************************************************** // SlideColor.java Authors: Lewis/Loftus // // Demonstrates the use slider components. //******************************************************************** import java.awt.*; import javax.swing.*; public class SlideColor { //----------------------------------------------------------------- // Presents up a frame with a control panel and a panel that // changes color as the sliders are adjusted. //----------------------------------------------------------------- public static void main (String[] args) { JFrame frame = new JFrame ("Slide Colors"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new SlideColorPanel()); frame.pack(); frame.setVisible(true); } }