code: public static void main(String[] argv) {
  		JFrame frame = new JFrame();
  		JPanel panel = new JPanel();
  		panel.setBorder(BorderFactory.createTitledBorder("Gradient"));
  		panel.setLayout(null);
  		frame.setContentPane(panel);
  			
  		GradientEditor editor = new GradientEditor();
  		editor.setBounds(10,15,270,100);
  		panel.add(editor);
  		frame.setSize(300,200);
  		
  		frame.addWindowListener(new WindowAdapter() {
  			public void windowClosing(WindowEvent e) {
  				System.exit(0);
  			}
  		});
  		
  		frame.setVisible(true);
  	}
docs: Simple test case for the gradient painter
  
  @param argv The arguments supplied at the command line