Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold

Search the Community

Showing results for tags 'gui settings'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • TRiBot
    • News and Announcements
    • Old School Scripts
    • Help and Guidance
    • Development
    • Bugs and Errors
    • Tutorials
  • Scripters' Forums
    • Scripter Application
  • RuneScape®
    • General
    • Guides/Tutorials
    • Achievements
  • General
    • General
    • Questions
    • Discussions & Debates
    • Introductions
    • Suggestions
    • Feedback
  • The Black Market
    • Disputes
    • Repository Credits
    • Gold Exchange
    • Item Exchange
    • Membership Sales
    • Services
    • Other
    • Middleman Services

Blogs

  • Getting Started With TRiBot
  • The Best Way To Get Rid Of Termites
  • How to Generate Real Estate Leads Using Twitter
  • A Guide to Landing Pages
  • Dog Grooming in Sydney – 5 steps to finding a grooming salon
  • Cheap RS 2007 Gold for Spring 2020!
  • Logo Design Mistakes- Your Business Should Avoid at All Cost
  • Effective Pest Control Measures
  • В Алматы карантин из-за коронавируса: жизнь в условиях пандемии
  • Preschool Educational Toys, Helping One's Child Prepare For the Future

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Bio

Found 1 result

  1. Save and Load GUI Settings Tutorial by Worthy In this tutorial We will be using java.util Propteries class to save and load settings from your GUI (or anything else that is applicable) ________ Adding the proper variables for preparation. In your Main class add the location to save the GUI settings In your GUI class we must create the Save and Load settings methods Implementing the methods On the "Start" button, we will call saveSettings(); On the script initiation we will call the loadSettings(); (after the GUI has been loaded) -->Alternatively you can just create seperate save and load buttons on the GUI. Tying everything together: The first thing the script will do is declare the File Path, and initiate the Preferences file. When the GUI loads, the script will then call loadSettings(), loading the settings (if any). If no settings are saved, it well then create a new file in the path. Right before the GUI is disposed it will save all the settings the user has applied in TRiBot's storage directory. (You can print out the location if you don't know where that is for your OS). _________ Complete Example script: GUISettings.java (Main class) GUIExample.java (GUI class) Regards, Worthy
×
×
  • Create New...