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

class GrabAndScrollLabel extends JLabel {
    public GrabAndScrollLabel(ImageIcon i) {
        super(i);

        MouseInputAdapter mia = new MouseInputAdapter() {
            int xDiff, yDiff;

From source file ca.phon.ui.JFileLabel.java

/**
 * Displays a file path as just the name or a shortened
 * string.
 */
public class JFileLabel extends JLabel {

From source file Main.java

class IconEditor extends JLabel implements ChangeListener {

    JSpinner spinner;

    Icon icon;

From source file Main.java

class ColorTableCellRenderer extends JLabel implements TableCellRenderer {
    Color curColor;

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
            int rowIndex, int vColIndex) {
        if (curColor instanceof Color) {

From source file Main.java

class MyComboBoxRenderer extends JLabel implements ListCellRenderer {
    private String _title;

    public MyComboBoxRenderer(String title) {
        _title = title;
    }

From source file Main.java

class URLLabel extends JLabel {

    boolean entered = false;

    boolean mousehover;

From source file no.java.swing.SelectableLabel.java

/**
 * @author <a href="mailto:erlend@hamnaberg.net">Erlend Hamnaberg</a>
 * @version $Id $
 */
public class SelectableLabel extends JLabel {
    private final JTextComponent textComponent;

From source file com.googlecode.commons.swing.component.FormNotifier.java

public class FormNotifier extends JLabel implements ValidationNotifier {

    private static final long serialVersionUID = -7255035645341421739L;

    protected final Map<Component, String> invalidComponents = new HashMap<Component, String>();

From source file Main.java

class GrabAndScrollLabel extends JLabel {
    public GrabAndScrollLabel(ImageIcon i) {
        super(i);

        MouseInputAdapter mia = new MouseInputAdapter() {
            int xDiff, yDiff;

From source file org.jets3t.gui.JHtmlLabel.java

/**
 * Enhanced version of {@link JLabel} that changes the mouse curser to indicate when it passes over a
 * clickable HTML HREF link, and triggers a listener to follow the link when it is clicked.
 * <p>
 * This class is a modified version of example code authored by Jeffrey Bush:<br>
 * <a href="http://forum.java.sun.com/thread.jspa?threadID=574895&messageID=2866170"