List of usage examples for javax.swing JPanel subclass-usage
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; Ellipse2D e1 = new Ellipse2D.Double(20.0, 20.0, 80.0, 70.0);
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
From source file IteratorUnderStrike.java
public class IteratorUnderStrike extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; String s = "\"www.java2s.com\" is great.";
From source file BasicShapes.java
public class BasicShapes extends JPanel { public void paint(Graphics g) { BufferedImage bimage = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_INDEXED); Graphics2D g2d = bimage.createGraphics();
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { g.fillRect(0, 0, 20, 20); Graphics2D g2 = (Graphics2D) g;
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { g.fillRect(0, 0, 20, 20); Graphics2D g2 = (Graphics2D) g;
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { g.fillRect(0, 0, 20, 20); Graphics2D g2 = (Graphics2D) g;
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
From source file Main.java
public class Main extends JPanel { JLabel label = new JLabel(); public Main() { setLayout(new BorderLayout()); JScrollBar hbar = new JScrollBar(JScrollBar.HORIZONTAL, 30, 20, 0, 300);