Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Gui Help

Featured Replies

Hi, I am very stuck on how to implement a GUI, any help would be greatly appreciated.

All the GUI needs to be is very simple: Take in armour type, food type and token value.

Then pass this into the original java file above.

I however, have no idea what i'm doing.  Below is my attempt, i'd be really grateful if someone would be able to have a look and fix it or atleast point me in the right direction.

Many thanks

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.JTextField;
public class GuiSetup {
    private final JFrame jFrame;

    /*
    private JLabel armourType;
    private JLabel foodLabel;
    private JLabel tokenAmount;
    private JTextField foodName;
    private JTextField tokenName;
    private JTextField TokenAmount;
    */



         public GuiSetup() {
        jFrame = new JFrame("WarriorGuild Tokens");
        JPanel mainPanel = new JPanel();
        JLabel armourType;
        JLabel foodLabel;
        JLabel tokenAmounta;
        JTextField food;
        JTextField armourName;
        JTextField tokenAmount;

    }
/*
    public static String getFoodName()
    {
        return foodName;
    }

    public static String getArmourName()
    {
        return armourName;
    }

    public static String getTokenAmount()
    {
        return tokenAmount;
    }
    */
}

Tutorials are online, there are plenty of them!! Your best bet is probably to extend JFrame and work from there. GL!

Apa

Having a name like scriptersteve and not having a clue on how to script :feels: 

20 minutes ago, HeyImJamie said:

Having a name like scriptersteve and not having a clue on how to script :feels: 

It's a kind of name you grow into. :xboge:

8 minutes ago, Chikan said:

It's a kind of name you grow into. :xboge:

Then call me big dick Jamie

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.