Dynames Productions

A blog to showcase my creative and technical work. Talk about what I like to talk about.

Bulk Tweet Twitter Application – Java

Leave a comment

Note: This is only meant to be a written demo explaining certain aspects of the application.

Application information:

  • Name: Bulk Tweet Twitter Application
  • Coded in: Java
  • External Libraries?: Yes
    • Twitter4j
  • Development Environment: Netbeans IDE
  • Platforms: Windows

Purpose of the Application:

The purpose of this application is to be able to tweet out your tweets in bulk. Instead of having to copy and paste your tweets individually, or schedule them weekly for individual release, you can simply load them in the program quickly and with the click of a button tweet it all out.

I created this application due to a rising personal need for it. There are several fantastic scheduling applications, but I didn’t find any that would allow the tweet timing to be scheduled on a recurring basis. Instead it was a one time schedule feature mostly. This created a growing need for me when having to put out tweets in bulk.

Program Functionality:

Initial Screen:


The image above is the initial screen that a user would be met by upon opening the application. Below is a list of what the buttons do:

  • Access Twitter:
    • New User:
      • If you are a new user, the program displays a message dialog box. In that dialog box is an authorization URL for this application. When the user goes to that URL, they must login with the account they plan to use the program for.
      • Once inside their account, they will be granted a pin code that must be copied and pasted into a text field in the same dialog box that gave the authorization URL.
      • Once the pin code is verified, the user will be allowed to proceed to the next screen of the application.
    • Returning User: Simply reads the access information (tokens) file and if they are valid, twitter and the program will grant the user access to the next screen.
  • Delete Access Tokens: As this program only supports one user, it is important to be able to get rid of the previous access information in order to create new one for another account. If the user wanted to revert back to the old account, they would have to get rid of the information and recreate it.
  • About Program: In a message dialog, displays the purpose of the program.
  • Need Support?: Relays message on how to email for support (ie. Including error messages, email address, etc.).
  • Close: Closes the application.

Main Screen:


The image above is the main screen that the user is presented with after getting past the initial window. Below is a list of the button functions:

  • Tweet: Allows users to type in a tweet in the text field to the left of the button, upon clicking the button it tweets out the contents of that text field to their home timeline.
  • Update Info: Fetches information from the user’s home timeline and displays it to the big text field to the right.
  • Bulk Tweet: Opens another window with the features to bulk tweet (the main feature of this program).
  • Need Support?: Relays message on how to email for support (ie. Including error messages, email address, etc.).
  • Go Back: Goes back to the initial screen.
  • Close: Closes program.

Bulk Tweet Screen:


The image above contains two windows. One is the main screen, while the foreground window is the bulk tweeting window. Below is a list of the button features:

  • Open File: Opens file containing your various tweets that you wish to bulk tweet. Once you open them, they will display on the big text box on the right alongside the file path.
  • Bulk Tweet:
    • When a file is opened, the contents of the different tweets are saved inside of a String ArrayList.
    • That array list is called inside of a FOR loop and executed as a status update.
      • The FOR loop executes for how many ever lines there are in the file imported into the program. A number of lines count is done during import of the file.
  • Instructions: Explains the procedure for bulk tweeting.
  • File Guidelines: Displays a message dialog box explaining guidelines as to how your “.txt” file should be formatted.
  • Close: Closes window.

Room for Improvement:

This program can definitely be improved upon as I see it right now. Some thing(s) I see that could use improvements are:

  • Adding functionality for multi-user usage.
  • Improving UI design
  • Improving access token storage methods


This was a nifty little program to work on that helps alleviate a big hassle for me. It was also a great educational project that helped introduce me to the twitter4j library. The project also presented many challenges, and overcoming them all one by one felt great as it does for any problem solving. For those curious, the challenges were primarily related to the twitter4j library.

If you decide to make something like this yourself, it should be noted that be careful not to spam twitter. In spamming twitter with advert links and nonsensical tweets, you risk getting your account suspended or banned.


Author: Monty Mason

Passionate about creative content creation of different varieties, programming and exploring new technologies.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s