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
  • Gui code is not changing Jform design.


    Zibele
     Share

    Recommended Posts

    Hey guys i just switched from intellj to eclipse,but the problem is when i am making a gui in eclipse if i change the code of the gui it does not change the design.Usually in intellij if you click the "make project" button it will generate the design from the code,how do i do that with eclipse?

    Link to comment
    Share on other sites

    Hey guys i just switched from intellj to eclipse,but the problem is when i am making a gui in eclipse if i change the code of the gui it does not change the design.Usually in intellij if you click the "make project" button it will generate the design from the code,how do i do that with eclipse?

    What do you mean, like you add a button and it doesn't show or CSS styled shit?

    Link to comment
    Share on other sites

    What do you mean, like you add a button and it doesn't show or CSS styled shit?

    Like if i add a button using code it wont show on the GUI.But it dont really matter now found a way around it,@@Cardozz be my mentor though?

    Link to comment
    Share on other sites

    Like if i add a button using code it wont show on the GUI.But it dont really matter now found a way around it,@@Cardozz be my mentor though?

    I can always help out! What was your way around?

     

    You have to "add" the actual button in the gui, because the built-in editor of eClipse constructs the frame by using the constructor of the class. 

     

    For example:

    startButton = new JButton();
    
    getContentPane().add(startButton);
    
    Edited by Cardozz
    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.