List of usage examples for javax.swing JComponent subclass-usage
From source file BasicDraw.java
class MyComponent extends JComponent { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; g2d.setColor(Color.red);
From source file BasicDraw.java
class MyComponent extends JComponent { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; float strokeThickness = 5.0f;
From source file ClipDemo.java
public class ClipDemo extends JComponent { private static Color red = new Color(255, 0, 0, 150); private static Color green = new Color(0, 255, 0, 150); private static Color blue = new Color(0, 0, 255, 150);
From source file BasicDraw.java
class MyComponent extends JComponent { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; float strokeThickness = 5.0f;
From source file BasicDraw.java
class MyComponent extends JComponent { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; AffineTransform tx = new AffineTransform();
From source file BasicDraw.java
class MyComponent extends JComponent { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; AffineTransform tx = new AffineTransform();
From source file BasicDraw.java
class MyComponent extends JComponent { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; AffineTransform tx = new AffineTransform();
From source file MainClass.java
class MyCanvas extends JComponent { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Font font = new Font("Serif", Font.PLAIN, 96); g2.setFont(font);
From source file MainClass.java
class MyCanvas extends JComponent { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Font font = new Font("Serif", Font.PLAIN, 96); g2.setFont(font);
From source file BasicDraw.java
class MyComponent extends JComponent { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; Color startColor = Color.red;