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


    nolife33033

    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

    Archived

    This topic is now archived and is closed to further replies.

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