Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -4,30 +4,30 @@ import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class DrawAPixel extends JPanel{
private BufferedImage puffer;
private JFrame window;
private Graphics g;
public DrawAPixel() {
window = new JFrame("Red Pixel");
window.setSize(320, 240);
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.setLayout(null);
setBounds(0, 0, 320, 240);
window.add(this);
window.setVisible(true);
}
@Override
public void paint(Graphics gr) {
if(g == null) {
puffer = (BufferedImage) createImage(getWidth(), getHeight());
g = puffer.getGraphics();
}
g.setColor(new Color(255, 0, 0));
g.drawRect(100, 100, 1, 1);
gr.drawImage(puffer, 0, 0, this);
}
public static void main(String[] args) {
new DrawAPixel();
}
public class DrawAPixel extends JPanel{
private BufferedImage puffer;
private JFrame window;
private Graphics g;
public DrawAPixel() {
window = new JFrame("Red Pixel");
window.setSize(320, 240);
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.setLayout(null);
setBounds(0, 0, 320, 240);
window.add(this);
window.setVisible(true);
}
@Override
public void paint(Graphics gr) {
if(g == null) {
puffer = (BufferedImage) createImage(getWidth(), getHeight());
g = puffer.getGraphics();
}
g.setColor(new Color(255, 0, 0));
g.drawRect(100, 100, 1, 1);
gr.drawImage(puffer, 0, 0, this);
}
public static void main(String[] args) {
new DrawAPixel();
}
}