List of usage examples for javax.swing JPanel subclass-usage
From source file HelloInJapanese.java
public class HelloInJapanese extends JPanel { static JFrame frame; static String helloInJapanese = "Hello in Japanese is konnichi wa, \u4eca\u65e5\u306f.";
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setPaint(Color.black);
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { Dimension d = this.getPreferredSize(); int fontSize = 20;
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setPaint(Color.black);
From source file SimplestGradientPaint.java
public class SimplestGradientPaint extends JPanel { public static void main(String[] args) { JFrame f = new JFrame(); f.getContentPane().add(new SimplestGradientPaint()); f.setSize(350, 250); f.show();
From source file GridBag1.java
public class GridBag1 extends JPanel { GridBagConstraints constraints = new GridBagConstraints(); public GridBag1() { setLayout(new GridBagLayout()); int x, y; // for clarity
From source file Main.java
public class Main extends JPanel { GridBagConstraints constraints = new GridBagConstraints(); public Main() { setLayout(new GridBagLayout()); int x, y; // for clarity
From source file Main.java
public class Main extends JPanel { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; int w = getSize().width; int h = getSize().height;
From source file MainClass.java
public class MainClass extends JPanel { GridBagConstraints constraints = new GridBagConstraints(); public MainClass() { setLayout(new GridBagLayout()); int x, y; // for clarity
From source file Main.java
public class Main extends JPanel { public static void main(String[] a) { JDialog f = new JDialog(); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0);