Guest User

Untitled

a guest
Dec 11th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import java.awt.*;
  2.  
  3. final class RSFrame extends Frame {
  4.  
  5. public RSFrame(RSApplet RSApplet_, int i, int j) {
  6. rsApplet = RSApplet_;
  7. //setTitle("haii derrr-ooo??:o");
  8. setResizable(false);
  9. setVisible(true);
  10. toFront();
  11. setSize(i + 8, j + 28);
  12. setResizable(true);
  13. setLocationRelativeTo(null);
  14. }
  15.  
  16. public Graphics getGraphics() {
  17. Graphics g = super.getGraphics();
  18. g.translate(4, 24);
  19. return g;
  20. }
  21.  
  22. public void update(Graphics g) {
  23. rsApplet.update(g);
  24. }
  25.  
  26. public void paint(Graphics g) {
  27. rsApplet.paint(g);
  28. }
  29.  
  30. private final RSApplet rsApplet;
  31. }
Add Comment
Please, Sign In to add comment