{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

GrandWelcomeRButton

GrandWelcomeRButton - import java.awt import java.awt.event...

Info icon This 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 = Color.black; 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); blueRB.addItemListener(this); c.add(boldCB); c.add(italicCB); c.add(redRB); c.add(greenRB); c.add(blueRB);
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern