Guest User

Untitled

a guest
Jul 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. package com.bot.wrapper;
  2.  
  3. import java.awt.Color;
  4. import java.awt.Frame;
  5. import java.awt.Graphics;
  6.  
  7. @SuppressWarnings("serial")
  8. public class RFrame extends Frame {
  9.  
  10. public Graphics getGraphics() {
  11. System.out.println("Painting...");
  12. Graphics g = super.getGraphics();
  13. g.setColor(Color.RED);
  14. g.drawString("Haxxed", 200, 200);
  15. return g;
  16.  
  17. }
  18.  
  19. }
  20.  
  21.  
  22. import com.bot.wrapper.RFrame;
  23. import java.awt.Frame;
  24. import java.awt.Graphics;
  25.  
  26. final class RSFrame extends RFrame
  27. {
  28. private final RSApplet rsApplet;
  29.  
  30. public RSFrame(RSApplet paramRSApplet, int paramInt1, int paramInt2)
  31. {
  32. this.rsApplet = paramRSApplet;
  33. setTitle("Jagex");
  34. setResizable(false);
  35. setVisible(true);
  36. toFront();
  37. setSize(paramInt1 + 8, paramInt2 + 28);
  38. }
  39.  
  40. public Graphics getGraphics()
  41. {
  42. Graphics localGraphics = super.getGraphics();
  43. localGraphics.translate(4, 24);
  44. return localGraphics;
  45. }
  46.  
  47. public void update(Graphics paramGraphics)
  48. {
  49. this.rsApplet.update(paramGraphics);
  50. }
  51.  
  52. public void paint(Graphics paramGraphics)
  53. {
  54. this.rsApplet.paint(paramGraphics);
  55. }
  56. }
Add Comment
Please, Sign In to add comment