List of usage examples for javax.swing JComponent subclass-usage
From source file Main.java
class PaintSurface extends JComponent implements Runnable { int i = 0; public void run() { repaint(); }
From source file BallRoom.java
class PaintSurface extends JComponent implements Runnable { int i = 0; public void run() { repaint(); }
From source file MainClass.java
class TextFormat extends JComponent { List layouts; Font font = new Font("SansSerif", Font.BOLD, 42); String text = "The quick brown fox jumped over the lazy cow"; public void paint(Graphics g) {
From source file PolygonButton.java
public class PolygonButton extends JComponent implements MouseListener, MouseMotionListener { static public Color ACTIVE_COLOR = Color.red; static public Color INACTIVE_COLOR = Color.darkGray; protected String text;
From source file Main.java
class MyPreviewPanel extends JComponent { Color curColor; public MyPreviewPanel(JColorChooser chooser) { curColor = chooser.getColor();
From source file ColorSource.java
/** * This simple component displays a solid color, and allows that color * to be dragged. Also, it copies the color to the clipboard when the * user clicks on it. */ public class ColorSource extends JComponent implements ClipboardOwner, DragGestureListener, DragSourceListener {
From source file JToolbarSeparator.java
/**
* This class represents a separator for the toolbar buttons.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
* @version $Id: JToolbarSeparator.java 475477 2006-11-15 22:44:28Z cam $
*/
From source file AnimationTester.java
class ArrayComponent extends JComponent { private Double marked1; private Double marked2;
From source file Hypnosis.java
/** * A Swing component that smoothly animates a spiral in a hypnotic way. */ public class Hypnosis extends JComponent implements ActionListener { double x, y; // The center of the spiral
From source file Main.java
class DrawPad extends JComponent { Image image; Graphics2D graphics2D; int currentX, currentY, oldX, oldY; public DrawPad() {