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

public class CompositingDST_ATOP extends JPanel {
    public void paint(Graphics g) {
        Graphics2D g2d = (Graphics2D) g;

        AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.DST_OUT, 0.5f);

From source file GridBagConstraintsSimplePanel.java

public class GridBagConstraintsSimplePanel extends JPanel {

    public static void main(String[] args) {
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(new GridBagConstraintsSimplePanel());

From source file Overlap.java

public class Overlap extends JPanel {
    public static void main(String[] args) {
        JFrame f = new JFrame();
        f.getContentPane().add(new Overlap());
        f.setSize(300, 200);
        f.setVisible(true);

From source file Main.java

public class Main extends JPanel {

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

        RenderingHints rh = g2.getRenderingHints();

From source file Main.java

public class Main extends JPanel {

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

        RenderingHints rh = g2.getRenderingHints();

From source file Main.java

public class Main extends JPanel {

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

        RenderingHints rh = g2.getRenderingHints();

From source file Main.java

public class Main extends JPanel {

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

        BasicStroke stroke = new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0.1F);

From source file Main.java

public class Main extends JPanel {
    public void paint(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

        Stroke stroke = new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[] { 3, 1 },
                0);

From source file Main.java

public class Main extends JPanel {

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

        Stroke stroke = new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0.1F);

From source file MainClass.java

public class MainClass extends JPanel {

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

        RenderingHints rh = g2.getRenderingHints();