List of usage examples for javax.swing JPanel subclass-usage
From source file PaintAllFontsFromGraphicEvironment.java
public class PaintAllFontsFromGraphicEvironment extends JPanel { public static void main(String[] a) { JFrame f = new JFrame(); f.setSize(400, 400); f.add(new PaintAllFontsFromGraphicEvironment());
From source file MainClass.java
public class MainClass extends JPanel { public MainClass() { JButton btn1 = new JButton("Button1"); btn1.addActionListener(new ButtonListener());
From source file MainClass.java
public class MainClass extends JPanel { public void load() throws MalformedURLException { URL url = new URL("image address"); Image im = Toolkit.getDefaultToolkit().getImage(url);
From source file Text.java
public class Text extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g;
From source file MainClass.java
public class MainClass extends JPanel { public void load() throws MalformedURLException { URL url = new URL("image address"); Toolkit t = Toolkit.getDefaultToolkit(); Image im = t.getImage(url);
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 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 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 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 { public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; Font f = new Font("Arial", Font.PLAIN, 48);