APIFinder
   The essential directory of application programming interfaces
Submit an API
DevX
Function
Language/OS
Contribute
About
Browse DevX
advertisement
Log In | Register
Writing Your own Twitter Application Using Java, Swing, and Twitter4j
Want to build your own Twitter app? Read on to figure out what it takes to get started. 
September 11, 2009

advertisement

By Cesar Otero

Introduction

This article is brief introduction to using the twitter4j API, which is used for creating your own Twitter applications in Java. This API gives access to the Twitter infrastructure, and allows you to do such tasks as updating your status, getting a list of your followers, and many other useful tasks all from your Java program.

A good understanding of Java and Swing gui's is needed. Our goal is to build a basic desktop application using Swing as our view technology, that will:

  • Login through a pop-up
  • Display the users followers
  • Display the users updates
  • Allow the user to update his status on Twitter (send a tweet)
  • Search for Tweets
  • Send direct tweets

This will serve as a skeleton for your own applications. Use your imagination, and feel free to embellish on the example we create here. Although you could use any view technology, such as JSP, I've decided to use Swing in order to avoid entering into too many additional topics.

Continue...

Microsoft Visual C++ MVP, Author, and Executive Editor for Jupitermedia Corporation.


Twitter API
Twitter is a global community of friends and strangers answering one simple question: What are you doing? Twitter exposes some of its functionality via an API for developers who want to build tools that talk to Twitter.
Provider: Twitter   Cost: 0