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

public class GradientsDirection extends JPanel {

    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;

From source file GradientsLine.java

public class GradientsLine extends JPanel {

    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;

From source file Main.java

public class Main extends JPanel {

    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;

From source file Main.java

public class Main extends JPanel {

    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;

From source file GradientsMiddle.java

public class GradientsMiddle extends JPanel {

    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;

From source file GradientsRedYellow.java

public class GradientsRedYellow extends JPanel {

    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;

From source file GradientsVertical.java

public class GradientsVertical extends JPanel {

    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2d = (Graphics2D) g;

From source file Main.java

public class Main extends JPanel {
    public Main() {
        setFont(new Font("TimesRoman", Font.BOLD | Font.ITALIC, 48));
        setSize(225, 175);
    }

From source file Main.java

public class Main extends JPanel {

    public void paint(Graphics g) {
        Image img = createImage();
        g.drawImage(img, 20, 20, Color.RED, this);
    }

From source file Main.java

public class Main extends JPanel {

    public void paint(Graphics g) {
        Image img = createImage();
        g.drawImage(img, 20, 20, 400, 400, this);
    }