Example usage for javax.swing JLabel subclass-usage

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

Introduction

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

Usage

From source file UnderlinedLabel.java

class UnderlinedLabel extends JLabel {
    public UnderlinedLabel() {
        this("");
    }

    public UnderlinedLabel(String text) {

From source file AnimatedLabel.java

public class AnimatedLabel extends JLabel implements Runnable {
    protected Icon[] icons;

    protected int index = 0;

    protected boolean isRunning;

From source file IconEditor.java

class IconEditor extends JLabel implements ChangeListener {
    JSpinner spinner;
    Icon icon;

    public IconEditor(JSpinner s) {
        super((Icon) s.getValue(), CENTER);

From source file ShadowText.java

public class ShadowText extends JLabel {
    public void paint(Graphics g) {
        String text = "Hello World";
        int x = 10;
        int y = 100;

From source file MyCellRenderer.java

class MyCellRenderer extends JLabel implements ListCellRenderer {

    public MyCellRenderer() {
        setOpaque(true);
    }

From source file MyCellRenderer.java

class MyCellRenderer extends JLabel implements ListCellRenderer {

    public MyCellRenderer() {
        setOpaque(true);
    }

From source file ScrollableLabel.java

public class ScrollableLabel extends JLabel implements Scrollable {
    public ScrollableLabel(ImageIcon i) {
        super(i);
    }

    public Dimension getPreferredScrollableViewportSize() {

From source file Main.java

public class Main extends JLabel implements Scrollable {
    public Main(ImageIcon i) {
        super(i);
    }

    public Dimension getPreferredScrollableViewportSize() {

From source file MyLabel.java

public class MyLabel extends JLabel {

    public MyLabel(String msg) {

        super(msg);

From source file Main.java

class UnderlinedLabel extends JLabel {
    public UnderlinedLabel() {
        this("");
    }

    public UnderlinedLabel(String text) {