Example usage for javax.swing JComponent subclass-usage

List of usage examples for javax.swing JComponent subclass-usage

Introduction

In this page you can find the example usage for javax.swing JComponent subclass-usage.

Usage

From source file FontTest.java

/**
 * A component that shows a centered message in a box.
 */
class FontComponent extends JComponent {
    public void paintComponent(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

From source file components.SizeDisplayer.java

public class SizeDisplayer extends JComponent {
    private Icon icon;
    private String text;
    private int xTextPad = 5;
    private int yTextPad = 5;

From source file QandE.XMarksTheSpot.java

public class XMarksTheSpot extends JComponent {
    Dimension preferredSize = null;

    public XMarksTheSpot() {
        setOpaque(true);

From source file org.spoutcraft.launcher.skin.ModpackSelector.java

public class ModpackSelector extends JComponent implements ActionListener, IPackListener {
    private static final long serialVersionUID = 1L;
    private static final String PACK_SELECT_ACTION = "packselect";
    private final LauncherFrame frame;
    private final List<PackButton> buttons = new ArrayList<PackButton>(7);
    private final int height = 520;

From source file OptimalPrimitives.java

/**
 *
 * @author Chet
 */
public class OptimalPrimitives extends JComponent {

From source file misc.Picture.java

class Picture extends JComponent implements MouseListener, FocusListener, Accessible {
    Image image;

    public Picture(Image image) {

        this.image = image;

From source file ImageView.java

/**
 * Standalone Image Viewer - works with any AWT-supported format.
 */
public class ImageView extends JComponent {
    /** The Image object */
    protected Image im;

From source file ColorDifference.java

/**
 * 
 * @author Chet
 */
public class ColorDifference extends JComponent implements ActionListener {

From source file org.pentaho.reporting.ui.datasources.sequence.SequenceEditor.java

public class SequenceEditor extends JComponent {
    private static Log logger = LogFactory.getLog(SequenceEditor.class);

    private class SelectGroupAction implements ListDataListener {
        private SelectGroupAction() {
        }

From source file DataBufferGrabber.java

/**
 *
 * @author Chet
 */
public class DataBufferGrabber extends JComponent {