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
  • Need help..


    nolife33033
     Share

    Recommended Posts

    It is hard to explain what I am having a problem with but I will give it my best shot.

     

    I have one package that contains multiple classes. I have

    1. MainClass

    2. Areas

    3.Task

    4. GUI

     

    I have a GUI that I am trying to receive input from. Example( Selecting what logs to burn) I can get the string to implement it on my MainClass but I cant figure out how to be able to use the string in my other classes. 

    Most of my banking,burning and other code is wrote in my Class: Task and I cant figure out a way to implement strings from my GUI to my Class: Task.

    Link to comment
    Share on other sites

    I have the Access Modifier as public but can not use it in the class:Task for some reason.

     

    public String getLogType() {
        return logType.getSelectedItem().toString();
    }

     

     

    Link to comment
    Share on other sites

    20 minutes ago, nolife33033 said:

    I have the Access Modifier as public but can not use it in the class:Task for some reason.

     

    public String getLogType() {
        return logType.getSelectedItem().toString();
    }

     

     

    You'd have to pass the GUI you created to your Task class :) 

    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
     Share

    ×
    ×
    • 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.