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

public class TransformersRotationTranslation extends JComponent {
    Shape axes, shape;

    int length = 54, arrowLength = 4, tickSize = 4;

    public TransformersRotationTranslation() {

From source file TransformShear.java

public class TransformShear extends JComponent {
    Shape axes, shape;

    int length = 54, arrowLength = 4, tickSize = 4;

    public TransformShear() {

From source file MainClass.java

class MyCanvas extends JComponent {
    public void paint(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

From source file MainClass.java

class MyCanvas extends JComponent {
    public void paint(Graphics g) {
        Shape shape = new Rectangle2D.Float(100, 50, 80, 80);

        Graphics2D g2 = (Graphics2D) g;

From source file Main.java

class MyCanvas extends JComponent {

    public void paint(Graphics g) {
        Shape shape = new Rectangle2D.Float(100, 50, 80, 80);

        Graphics2D g2 = (Graphics2D) g;

From source file Main.java

class MyCanvas extends JComponent {

    public void paint(Graphics g) {
        Shape shape = new Rectangle2D.Float(100, 50, 80, 80);

        Graphics2D g2 = (Graphics2D) g;

From source file Main.java

class MyCanvas extends JComponent {

    public void paint(Graphics g) {
        Shape shape = new Rectangle2D.Float(100, 50, 80, 80);

        Graphics2D g2 = (Graphics2D) g;

From source file Main.java

class MyCanvas extends JComponent {

    public void paint(Graphics g) {
        Shape shape = new Rectangle2D.Float(100, 50, 80, 80);

        Graphics2D g2 = (Graphics2D) g;

From source file Main.java

class MyCanvas extends JComponent {

    public void paint(Graphics g) {
        Shape shape = new Rectangle2D.Float(100, 50, 80, 80);

        Graphics2D g2 = (Graphics2D) g;

From source file Main.java

class MyCanvas extends JComponent {

    public void paint(Graphics g) {
        Shape shape = new Rectangle2D.Float(100, 50, 80, 80);

        Graphics2D g2 = (Graphics2D) g;