Jump to content

Question

So I wanted to make a GUI for my Runecrafter and use TitledBorders instead of using tabs since it looks nicer imo.

I can't seem to get the TitledBorder to appear fully (I think that's the problem anyway) properly in the GUI.

It looks like this:

 image.thumb.png.b8b9b9cc377e648a19e51d524cb4bb89.png

Here is the code for it:

        JPanel runesPanel = new JPanel();
        runesPanel.setBackground(Color.DARK_GRAY);

        TitledBorder runesBorder = BorderFactory.createTitledBorder("Runes");

        runesBorder.setTitleColor(Color.lightGray);
        runesBorder.setTitleJustification(TitledBorder.LEFT);

        runesPanel.setBorder(runesBorder);

        
        JComboBox<String> runeOptions = new JComboBox<String>(new String[] {
                "Select Runes",
                "Air",
                "Astral*",
                "Blood*",
                "Cosmic",
                "Earth",
                "Fire",
                "Law",
                "Mud",
                "Nature",
                "Soul*",
                "Water",
                "Wrath*",
                "ZMI*"});

        runesPanel.setBounds(20,20,200,200);
        runesPanel.add(runeOptions);

        mainGuiSettingsPanel.add(runesPanel);



        mainGuiFrame.setVisible(true);

    }
}

 

Sorry for the nooby question, new to using Swing and Java :P

Thanks!

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
10 hours ago, notsmile said:

I actually found out about jformdesigner, thanks for the advice tho! :)

Was about to suggest using an automated tool. :P

Back when I was using Swing GUIs, I was building them using NetBeans. Not exactly my favorite program, but it was surely better than designing complex GUIs by hand.

 

(old, Swing-based GUI)

9kS5Iq7.png

 

Link to post
Share on other sites
  • 0
3 minutes ago, Einstein said:

Was about to suggest using an automated tool. :P

Back when I was using Swing GUIs, I was building them using NetBeans. Not exactly my favorite program, but it was surely better than designing complex GUIs by hand.

 

(old, Swing-based GUI)

9kS5Iq7.png

 

Yeah, I made this a bit ago using JFormDesigner:

 

unknown.png

unknown.png

 

all that was around 400-ish lines of code lol definitely would've been stupid annoying to make by hand.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By GorgasBrawler95
      I recently purchased a few proxies and i'm unsure how to add them.. I don't see any of this tutorial How To Use a Proxy (VIP Extended) - Tutorials - TRiBot Forums when opening tribot
    • By Mriceblk
      Hello, 
      I just downloaded tribot on my Mac and when I try to Open it nothing happens, no error, just nothing happening. My java is updated.
    • By Decathro
      Hello everyone. l having issue with bot. When l try to start, Loading logo comes and disseppears. l have tried so many Java versions and
      methods in the internet.  All l have about issue is in the error.log. Please help 
    • By killiewilli
      I am vip-e and every time I try and run more then 1 bot it says maximum instances reached. In the vip-e benefits it lists unlimited clients as a feature how can I fix this?
      https://gyazo.com/f09c44d073f1ac912f3b42f8babcbcee
      is it like this for every script I have
    • By thirstman
      I'm having issues compiling a start scripting project. I am using Intellij. I am using the Tribot 12 and the latest client. I know it has something so do with the JDK version but I can't get it sorted out.
      I have posted my compile output, code, and attached images of my IDE configuration. If anyone could please take the time to help sort me out I would greatly appreciate it.
      Thanks.
       
      mvn compile output -
       
      I double checked the dependencies.
      mvn dependency:get -Dartifact=org.tribot:tribot-client:12.0.1-rc-4 output -
       
      Here's my pom.xml -
       
      and a dumb test class for trouble-shooting compiling -
       





    • By jerrycan314
      when i open a tribot client it crashes and i get this error :c

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7a0e3d9d, pid=1608, tid=0x00000e54
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_251-b08) (build 1.8.0_251-b08)
      # Java VM: Java HotSpot(TM) Client VM (25.251-b08 mixed mode windows-x86 )
      # Problematic frame:
      # C  [atiglpxx.dll+0x3d9d]
      #
    • By Heroinkid
      Hi I got a proxy server from Virmach. I cannot seem to get Tribot to connect to it. I have gotten a 3rd party internet browser called Maxthus to get it to work so I don't think that its the server that's not working. Yes I have VIP-E as well. Please help thanks!

    • By QNDLF
      Has been fine for the past few days however doesn't work today, have deleted the full .jar file and redownloaded again and it has the same problem
       
      Any ideas how to fix it? 
       

    • By JoeDezzy1
      Automate, Manage & Launch Any Client, Anywhere, Anytime With The Click Of A Button
       
      ------------- TRiBot CLI Client Manager ------------
       
      -------- Client Launcher (Lite version) --------

       
      ------- Client Launcher (Advanced version) -------
      -----Updated Version-----





       
      -----Old Version-----
       
       
      ------- What You Can Do With 1 Click -------
       
      Overview: Specifications & Capabilities Load Any Account on Any World with Any Script, Any Arguments, Any Proxy Monitor A Live Feed of your Running Bots! Live Locations & World Live Items on Each Bot Live Exchanges being made for Each bot View Run-time & Status's of Each Bot Control your Bots Locally or Remotely! Start Your Bots From Any Machine Shutdown Your Bots From Any Machine Automate Everything! Grand Exchanging with Customized Exchange Profiles for Your Bots Need's Trading Between Any of Your Bot's and Anytime Account Replenishment - Register, Create & Even Tutorial  
      Availability: Any Operating System Windows 7/8/10/Vista Mac OS Linux (Debian,  CentOS,  Ubuntu, Fedora, Arch, Kali)  
       
       
      These tools are fully operational.
       
      Message me on TRiBot forums for more info.
       
      THIS IS NOT FREE


    • By Fishies
      I'm having an issue on my linux server where I connect with VNC, startup the client and script and everything works fine. Even when I close out of the VNC my bot continues to run fine, but when I log back into the VNC (to checkup or whatever) it crashes the client and logs the bot out. I have all power management settings turned off, and have no idea why this is happening or how to fix it. It dosn't disable my farm, but is extremely annoying having to restart the client every time I want to check up on the bot. Thanks!
  • Our picks

    • What to expect from TRiBot moving forward.
        • Thanks
        • Like
      • 10 replies
    • TRiBot 12 Release Candidate

      The TRiBot team has been hard at work creating the last major version of TRiBot before the TRiBot X release. We've noticed many problems with TRiBot 11 with a lot of users preferring TRiBot 10 over 11. We've heard you, so we took TRiBot 10, added the new features introduced with 11, introduced some other new things, and created TRiBot 12. So without further adieu, here's TRiBot 12.
        • Sad
        • Like
      • 39 replies
    • Gradle is a build tool used to accelerate developer productivity.

      We recently setup a Maven repository (TRiBot Central) to make it easier for scripters to create scripts. Check it out here: https://gitlab.com/trilez-software/tribot/tribot-central/-/packages

      Furthermore, we've released a simple Gradle project to make it easy to run TRiBot and develop scripts for it. Check it out here: https://gitlab.com/trilez-software/tribot/tribot-gradle-launcher

      The goals of TRiBot Central are to:

      Deliver updates to TRiBot faster


      Better organize TRiBot's dependencies (AKA dependancies)


      Make it easier to develop scripts for TRiBot


      Make it easier to use and run TRiBot


      Note: TRiBot won't be able to run scripts from within this project until TRiBot's next release.
        • Like
      • 13 replies
    • Hi everyone,

      I'd like to thank everyone for their patience in this transition period. Since last week, we've worked out the remaining bugs with this integration.

      Some users have still been having issues with connecting their forums account to their Auth0 account. To resolve this, we've imported all forums accounts into Auth0.

      Unfortunately, the accounts which were imported today were using an unsupported password hashing algorithm. Hence, random passwords were set during the import.

      What does this mean for me?

      If you've previously linked your forums account to your Auth0 account, you don't have to do anything. Nothing changes for you.


      If you haven't logged in via our new login yet,

      Try logging in with your forums email address and the last password you used


      If you are unable to login, please use the "Forgot password" tool on the login page:
      Follow the instructions to reset your password
       
        • thonking
        • Like
      • 17 replies
    • Hello everyone,

      Last week we tried to roll out Auth0 Login, but we lost that battle. Now it's time to win the war!

      Important changes

      When logging into the client, you'll now have to enter your Auth0 account credentials instead of your forums credentials

      Note: 2FA is still handled through your forums account (for the time being)



      Changes for existing users

      You'll have to link your Auth0 account to your forums account here: https://tribot.org/forums/settings/login/?service=11


      Auth0 accounts have been created for most existing users. Please use your forums email address and password to login.



      Important notes

      Make sure to verify your email address upon creating a new Auth0 account


      When we mention your Auth0 account, we mean your account used for auth.tribot.org as displayed below
      • 81 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...