Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • SettingsDrawer - Display debug info without a hassle


    Recommended Posts

    import java.awt.*;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.concurrent.atomic.AtomicInteger;
     * Draws settings to the screen.
    public class SettingsDrawer {
        private final Color color = new Color(255, 255, 255);
        private final Font font = new Font("Arial", 0, 20);
        private Map<String, String> settings;
        private static SettingsDrawer instance;
        public static SettingsDrawer getInstance() {
            if(instance == null) {
                instance = new SettingsDrawer();
            return instance;
        private SettingsDrawer() {
            settings = new HashMap<>();
        public void addSetting(String setting, String value) {
            this.settings.put(setting, value);
        public void draw(Graphics g) {
            AtomicInteger y = new AtomicInteger(40);
            int x = 20;
            int increment = 30;
            settings.forEach((k, v) -> {
                g.drawString(String.format("%s: %s", k, v), x, y.get());


    Call the draw(g) function in the onPaint function.

    Call the addSetting(...) method to insert things to display.

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.