Java JComponent Properties isMarker(JComponent component)

Here you can find the source of isMarker(JComponent component)

Description

is Marker

License

Apache License

Declaration

static boolean isMarker(JComponent component) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import javax.swing.JComponent;
import javax.swing.JLabel;

public class Main {
    static final private String MARKER_NAME = "DesignGridLayout.spanRow-Marker";

    static boolean isMarker(JComponent component) {
        return (component instanceof JLabel) && (MARKER_NAME.equals(component.getName()));
    }/*from  w w w  . j  a  v  a  2  s .c  om*/
}

Related

  1. invert(JComponent c)
  2. isActive(JComponent c)
  3. isComponentShowing(final JComponent component)
  4. isHorizontallyVisible(JComponent c, int from, int to)
  5. isMandatory(JComponent comp)
  6. isOver(JComponent c)
  7. isOverlapping(JComponent comp1, JComponent comp2)
  8. isPasteEnabled(JComponent component)
  9. isRectangularSelection(JComponent c)