+++++++++++++++++++++++++++++++++++++++++++import javax.swing.;.docx - import javax.swing import java.awt import java.awt.event public class

+++++++++++++++++++++++++++++++++++++++++++import javax.swing.;.docx

This preview shows page 2 - 4 out of 7 pages.

+++++++++++++++++++++++++++++++++++++++++++import javax.swing.*;import java.awt.*;import java.awt.event.*;public class QuoteOptionsPanel extends JPanel{private JLabel quote;��private JRadioButton comedy, philosophy, carpentry, ��confucius, crazy;private String comedyQuote, philosophyQuote, ��carpentryQuote, confuciusQuote, crazyQuote;���//Private Bold and Italic��private JCheckBox bold, italic;��//----------------------------------------------------------------��-// Sets up a panel with a label and a set of radio buttons��// that control its text.��//----------------------------------------------------------------��-public QuoteOptionsPanel()��{��comedyQuote = "Take my wife, please.";��
philosophyQuote = "I think, therefore I am.";��carpentryQuote = "Measure twice. Cut once.";��confuciusQuote = "A superior man is modest in his ��speech, but exceeds in his actions.";crazyQuote = "I know I'm crazy, but that doesn't mean ��I'm wrong.";quote = new JLabel (comedyQuote);��quote.setFont (new Font ("Helvetica", Font.BOLD, 24));��//Making Quote buttons��comedy = new JRadioButton ("Comedy", true);��comedy.setBackground (Color.green);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture