Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- final class RSFrame extends Frame {
- public RSFrame(RSApplet RSApplet_, int i, int j) {
- rsApplet = RSApplet_;
- //setTitle("haii derrr-ooo??:o");
- setResizable(false);
- setVisible(true);
- toFront();
- setSize(i + 8, j + 28);
- setResizable(true);
- setLocationRelativeTo(null);
- }
- public Graphics getGraphics() {
- Graphics g = super.getGraphics();
- g.translate(4, 24);
- return g;
- }
- public void update(Graphics g) {
- rsApplet.update(g);
- }
- public void paint(Graphics g) {
- rsApplet.paint(g);
- }
- private final RSApplet rsApplet;
- }
Add Comment
Please, Sign In to add comment