GrandWelcomeRButton - import java.awt.*; import...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.awt.*; import java.awt.event.*; import javax.swing.*; i public class GrandWelcomeRButton extends JApplet implements ItemListener { private int intBold = Font.PLAIN; private int intItalic = Font.PLAIN; private Color currentColor =; private JCheckBox boldCB, italicCB; private JRadioButton redRB, greenRB, blueRB; private ButtonGroup ColorSelectBGroup; public void init() { Container c = getContentPane(); c.setLayout(null); boldCB = new JCheckBox("Bold"); italicCB = new JCheckBox("Italic"); redRB = new JRadioButton("Red"); greenRB = new JRadioButton("Green"); blueRB = new JRadioButton("Blue"); boldCB.setSize(100, 30); italicCB.setSize(100, 30); redRB.setSize(100, 30); greenRB.setSize(100, 30); blueRB.setSize(100, 30); boldCB.setLocation(100, 70); italicCB.setLocation(100, 150); redRB.setLocation(300, 70); greenRB.setLocation(300, 110); blueRB.setLocation(300, 150); boldCB.addItemListener(this); italicCB.addItemListener(this); redRB.addItemListener(this); greenRB.addItemListener(this);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Page1 / 2

GrandWelcomeRButton - import java.awt.*; import...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online