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 org.jcurl.core.swing.SumDisplayBase.java

/**
 * 
 * @author <a href="mailto:m@jcurl.org">M. Rohrmoser </a>
 * @version $Id:SumDisplayBase.java 378 2007-01-24 01:18:35Z mrohrmoser $
 */
abstract class SumDisplayBase extends JComponent implements ChangeListener {

From source file components.Corner.java

public class Corner extends JComponent {
    protected void paintComponent(Graphics g) {
        // Fill me with dirty brown/orange.
        g.setColor(new Color(230, 163, 4));
        g.fillRect(0, 0, getWidth(), getHeight());
    }

From source file facebean.FaceBean.java

public class FaceBean extends JComponent {
    private int mMouthWidth = 90;
    private boolean mSmile = true;

    @Override
    public void paint(Graphics g) {

From source file NotHelloWorld.java

/**
 * A component that displays a message.
 */
class NotHelloWorldComponent extends JComponent {
    public void paintComponent(Graphics g) {
        g.drawString("Not a Hello, World program", MESSAGE_X, MESSAGE_Y);

From source file misc.Corner.java

public class Corner extends JComponent implements Accessible {
    protected void paintComponent(Graphics g) {
        // Fill me with dirty brown/orange.
        g.setColor(new Color(230, 163, 4));
        g.fillRect(0, 0, getWidth(), getHeight());
    }

From source file com.haulmont.cuba.desktop.gui.components.CubaFileUploadWrapper.java

public class CubaFileUploadWrapper extends JComponent implements FocusableComponent {
    protected Messages messages = AppBeans.get(Messages.NAME);

    protected DesktopHBox container;
    protected LinkButton fileNameButton;
    protected Button uploadButton;

From source file FillTest.java

/**
 * A component that displays filled rectangles and ellipses
 */
class FillComponent extends JComponent {
    public void paintComponent(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

From source file DrawTest.java

/**
 * A component that displays rectangles and ellipses.
 */
class DrawComponent extends JComponent {
    public void paintComponent(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

From source file net.sf.vfsjfilechooser.accessories.DefaultAccessoriesPanel.java

/**
 * <p>The default accessory panel you could add
 * It contains a bookmarks manager and the a connection dialog</p>
 * @author Yves Zoundi <yveszoundi at users dot sf dot net>
 * @version 0.0.2
 */

From source file components.ImagePreview.java

public class ImagePreview extends JComponent implements PropertyChangeListener {
    ImageIcon thumbnail = null;
    File file = null;

    public ImagePreview(JFileChooser fc) {
        setPreferredSize(new Dimension(100, 50));