List of usage examples for javax.swing JPanel subclass-usage
From source file MainClass.java
public class MainClass extends JPanel { public MainClass() { NumberFormat nf = NumberFormat.getInstance(); if (nf instanceof DecimalFormat) { DecimalFormat df = (DecimalFormat) nf;
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; RenderingHints rh = g2.getRenderingHints();
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; RenderingHints rh = g2.getRenderingHints();
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; Stroke stroke = new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[] { 3, 1 },
From source file Shear.java
public class Shear extends JPanel { public void paint(Graphics g) { super.paint(g); Graphics2D g2d = (Graphics2D) g;
From source file Main.java
public class Main extends JPanel { public Main() { JRadioButton radMarriedYes = new JRadioButton("Yes?", true); JRadioButton radMarriedNo = new JRadioButton("No?", false); JRadioButton radGolfYes = new JRadioButton("Yes?", false); JRadioButton radGolfNo = new JRadioButton("No?", true);
From source file Main.java
public class Main extends JPanel { public Main() { JRadioButton radMarriedYes = new JRadioButton("Yes?", true); JRadioButton radMarriedNo = new JRadioButton("No?", false); JRadioButton radGolfYes = new JRadioButton("Yes?", false); JRadioButton radGolfNo = new JRadioButton("No?", true);
From source file Main.java
public class Main extends JPanel { public Main() { JRadioButton radMarriedYes = new JRadioButton("Yes?", true); JRadioButton radMarriedNo = new JRadioButton("No?", false); JRadioButton radGolfYes = new JRadioButton("Yes?", false); JRadioButton radGolfNo = new JRadioButton("No?", true);
From source file DrawRectPanel.java
public class DrawRectPanel extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); g.setColor(Color.blue); g.drawRect(10, 10, 80, 30); g.drawRoundRect(100, 10, 80, 30, 15, 15);
From source file XORPanel.java
public class XORPanel extends JPanel { XORPanel() { setBackground(Color.black); } public void paintComponent(Graphics g) {