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) { g.setColor(Color.red); Graphics clippedGraphics = g.create(); clippedGraphics.drawRect(0, 0, 100, 100);
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { g.setColor(Color.red); Graphics clippedGraphics = g.create(); clippedGraphics.drawRect(0, 0, 100, 100);
From source file MainClass.java
public class MainClass extends JPanel { Color colors[] = { Color.black, Color.blue, Color.cyan, Color.darkGray, Color.gray, Color.green, Color.lightGray, Color.magenta, Color.orange, Color.pink, Color.red, Color.white, Color.yellow }; public void paint(Graphics g) { int deltax = 260 / colors.length;
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { g.setColor(Color.red); Graphics clippedGraphics = g.create(); clippedGraphics.drawRect(0, 0, 100, 100);
From source file Main.java
public class Main extends JPanel { public Main() { super(new FlowLayout(FlowLayout.LEADING, 10, 3)); add(new JButton("w w w.j a v a 2 s . c o m")); add(new JButton("w w w.j a v a 2 s . com"));
From source file Main.java
public class Main extends JPanel { public Main() { super(new GridLayout()); add(new JButton("w w w.j a v a 2 s . c o m")); add(new JButton("w w w.j a v a 2 s . com"));
From source file Main.java
public class Main extends JPanel { public Main() { super(new GridLayout(2, 2)); add(new JButton("w w w.j a v a 2 s . c o m")); add(new JButton("w w w.j a v a 2 s . com"));
From source file Main.java
public class Main extends JPanel { public Main() { super(new FlowLayout(FlowLayout.RIGHT, 10, 3)); add(new JButton("w w w.j a v a 2 s . c o m")); add(new JButton("w w w.j a v a 2 s . com"));
From source file Main.java
public class Main extends JPanel { public Main() { super(new FlowLayout(FlowLayout.CENTER, 10, 3)); add(new JButton("w w w.j a v a 2 s . c o m")); add(new JButton("w w w.j a v a 2 s . com"));
From source file Main.java
public class Main extends JPanel { public Main() { super(new FlowLayout(FlowLayout.TRAILING, 10, 3)); add(new JButton("w w w.j a v a 2 s . c o m")); add(new JButton("w w w.j a v a 2 s . com"));