ColorOptions - -public static void main(String args JFrame...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// ********************************************************************** // // // Uses an array of radio buttons to change the background color. // ********************************************************************** import javax.swing.*; public class ColorOptions { // ------------------------------------------------------------- // Creates and presents the frame for the color change GUI.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // -------------------------------------------------------------public static void main (String args) { JFrame colorFrame = new JFrame ("Color Options"); colorFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); ColorOptionsPanel panel = new ColorOptionsPanel(); colorFrame.getContentPane().add (panel); colorFrame.pack(); colorFrame.setVisible(true); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online