List of usage examples for javax.swing JPanel subclass-usage
From source file RussiaUnicode.java
public class RussiaUnicode extends JPanel { public void paint(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g; g2d.drawString("\u0424\u0451\u0434\u043e\u0440.", 20, 30); }
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { g.setColor(Color.gray); g.draw3DRect(25, 10, 50, 75, true); g.draw3DRect(25, 110, 50, 75, false);
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { int xpoints[] = { 25, 145, 25, 145, 25 }; int ypoints[] = { 25, 25, 145, 145, 25 }; int npoints = 5;
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { g.setColor(Color.gray); g.draw3DRect(25, 10, 50, 75, true); g.draw3DRect(25, 110, 50, 75, false);
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { super.paint(g); Rectangle r = g.getClipBounds(); g.drawLine(0, 0, r.width, r.height);
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { g.fillOval(25, 25, 120, 120); }
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { g.fillRect(0, 0, 200, 200); }
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { g.drawArc(25, 25, 120, 120, 45, 270); }
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { g.drawLine(25, 25, 120, 120); }
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { g.drawOval(25, 25, 120, 120); }