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 Main() { setPreferredSize(new Dimension(2000, 2000)); } public static void main(String[] args) {
From source file HorizontallyCenteredText.java
public class HorizontallyCenteredText 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; 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; Ellipse2D e1 = new Ellipse2D.Double(20.0, 20.0, 80.0, 70.0);
From source file Main.java
public class Main extends JPanel implements ActionListener { JComboBox<String> combo1 = new JComboBox<>(new String[] { "Course 1", "Course 2", "Course 3" }); JComboBox<String> combo2 = new JComboBox<>(); ComboBoxModel<String>[] models = new ComboBoxModel[3]; public Main() {
From source file MainClass.java
public class MainClass extends JPanel { public void paint(Graphics g) { short[] invert = new short[256]; for (int i = 0; i < invert.length; i++)
From source file JListBackground.java
public class JListBackground extends JPanel { private static final Color lightBlue = new Color(153, 204, 255); public JListBackground() { super(); setBackground(lightBlue);
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);