Example usage for javax.swing JViewport subclass-usage

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

Introduction

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

Usage

From source file Main.java

class MyViewport extends JViewport {
    int TILE = 64;

    public MyViewport() {
        setOpaque(false);
        setPreferredSize(new Dimension(6 * TILE, 6 * TILE));

From source file ScrollPaneWatermark.java

public class ScrollPaneWatermark extends JViewport {
    BufferedImage fgimage, bgimage;

    TexturePaint texture;

    public ScrollPaneWatermark() {