Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- import java.awt.*;
- public class LowFrame extends Canvas
- {
- public LowFrame()
- {
- JFrame ram = new JFrame();
- ram.setSize(800,700);
- ram.setBackground(Color.white);
- ram.setVisible(true);
- }
- public void paint(Graphics g)
- {
- g.fillRect(22,33,44,44);
- g.setColor(Color.black);
- repaint();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement