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 CompositeTest.java

/**
 * This component draws two shapes, composed with a composition rule.
 */
class CompositeComponent extends JComponent {
    public CompositeComponent() {
        shape1 = new Ellipse2D.Double(100, 100, 150, 100);

From source file StrokeChooserPanel.java

/**
 * A panel that displays a stroke sample.
 *
 * @author David Gilbert
 */
class StrokeSample extends JComponent implements ListCellRenderer {

From source file JuliaSet2.java

class JuliaSet1 extends JComponent {
    // These constants are hard-coded for simplicity
    double x1 = -1.5, y1 = -1.5, x2 = 1.5, y2 = 1.5; // Region of complex plane

    int width = 400, height = 400; // Mapped to these pixels

From source file XMLWriteTest.java

/**
 * A component that shows a set of colored rectangles
 */
class RectangleComponent extends JComponent {
    public RectangleComponent() {
        rects = new ArrayList<Rectangle2D>();

From source file InternalFrameListenerDemo.java

class IFEventCanvas extends JComponent {
    private Color[] m_colors = new Color[8];
    private int[][] m_arrays = new int[15][12];

    public IFEventCanvas() {
        setPreferredSize(new Dimension(505, 130));

From source file TrackFocusDemo.java

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

    public Picture(Image image) {

        this.image = image;

From source file AccessibleScrollDemo.java

class Rule extends JComponent implements Accessible {
    public static final int INCH = Toolkit.getDefaultToolkit().getScreenResolution();

    public static final int HORIZONTAL = 0;

    public static final int VERTICAL = 1;

From source file org.isatools.isacreator.spreadsheet.Spreadsheet.java

/**
 * Spreadsheet class.
 * Provides the functionality of a spreadsheet including the JTable, Listeners, Addition of Cell Editors, and so forth. Spreadsheet
 * is created automatically from Table Reference Objects created by the ISAcreator configuration tool!
 *
 * @author Eamonn Maguire

From source file net.sf.vfsjfilechooser.VFSJFileChooser.java

/**
 * The filechooser class with commons-VFS abstraction layer based on JFileChooser
 * @author Yves Zoundi <yveszoundi at users dot sf dot net>
 * @version 0.0.1
 */
@SuppressWarnings("serial")

From source file DesktopManagerDemo.java

class DMEventCanvas extends JComponent {
    protected Color[] m_colors = new Color[15];
    protected int[][] m_arrays = new int[15][12];

    public DMEventCanvas() {
        setPreferredSize(new Dimension(505, 255));