Example usage for javax.swing JPanel subclass-usage

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

Introduction

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

Usage

From source file Main.java

public class Main extends JPanel {
    public Main() {
        setLayout(new BorderLayout());

        JPanel east = new JPanel(new BorderLayout());
        add(east, BorderLayout.EAST);

From source file Main.java

public class Main extends JPanel {

    public void paint(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

        Rectangle r = new Rectangle();

From source file Main.java

public class Main extends JPanel implements KeyListener {
    public Main() {
        addKeyListener(this);
    }

    public void keyPressed(KeyEvent evt) {

From source file Main.java

public class Main extends JPanel implements KeyListener {
    public Main() {
        addKeyListener(this);
    }

    public void keyPressed(KeyEvent evt) {

From source file Main.java

public class Main extends JPanel implements KeyListener {
    public Main() {
        addKeyListener(this);
    }

    public void keyPressed(KeyEvent evt) {

From source file MainClass.java

public class MainClass extends JPanel {

    public void paint(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

        RoundRectangle2D r = new RoundRectangle2D.Double(10.0, 10.0, 50.0, 50.0, 5.0, 5.0);

From source file Main.java

public class Main extends JPanel implements KeyListener {
    public Main() {
        addKeyListener(this);
    }

    public void keyPressed(KeyEvent evt) {

From source file Main.java

public class Main extends JPanel implements KeyListener {
    public Main() {
        addKeyListener(this);
    }

    public void keyPressed(KeyEvent evt) {

From source file Main.java

public class Main extends JPanel implements KeyListener {
    public Main() {
        addKeyListener(this);
    }

    public void keyPressed(KeyEvent evt) {

From source file Main.java

public class Main extends JPanel implements KeyListener {
    public Main() {
        addKeyListener(this);
    }

    public void keyPressed(KeyEvent evt) {