List of usage examples for javax.swing Icon interface-usage
From source file Main.java
class RedOvalIcon implements Icon { public void paintIcon(Component c, Graphics g, int x, int y) { g.setColor(Color.RED); if (c.isEnabled()) { g.fillOval(x, y, getIconWidth(), getIconHeight()); } else {
From source file Main.java
class MyIcon implements Icon { public int getIconWidth() { return 32; } public int getIconHeight() {
From source file Main.java
class MyIcon implements Icon { public int getIconWidth() { return 32; } public int getIconHeight() {
From source file Main.java
class MyIcon implements Icon { public int getIconWidth() { return 32; } public int getIconHeight() {
From source file MainClass.java
class MyIcon implements Icon { public int getIconWidth() { return 32; } public int getIconHeight() {
From source file Main.java
class ProgressIcon implements Icon { int H = 16; int W = 3 * H; Color color; int w;
From source file components.ArrowIcon.java
public class ArrowIcon implements Icon, SwingConstants { private int width = 9; private int height = 18; private int[] xPoints = new int[4]; private int[] yPoints = new int[4];
From source file components.MissingIcon.java
/**
* The "missing icon" is a white box with a black border and a red x.
* It's used to display something when there are issues loading an
* icon from an external location.
*
* @author Collin Fagan
From source file QandE.SquareIcon.java
public class SquareIcon implements Icon { private static final int SIZE = 10; public void paintIcon(Component c, Graphics g, int x, int y) { if (c.isEnabled()) { g.setColor(Color.RED);
From source file Main.java
class DiamondIcon implements Icon { private Color color; private boolean selected; private int width;