Thursday, April 1, 2010

Build your own Application to access Twitter using Java and NetBeans

The third part of my article series about building a Twitter client is now published on Packt’s website:

http://www.packtpub.com/article/build-your-own-application-twitter-java-netbeans-3

In this article you’ll learn to:

  • Add a Tabbed Pane component to your SwingAndTweet application, so you can show your own timeline on one tab and your friends’ timeline on another tab.
  • Use a JScrollPane component to add vertical and horizontal scrollbars to your friends’ timeline list.
  • Use the getFriendsTimeline() method from the Twitter4J API to get the 20 most recent tweets from your friends’ timeline.
  • Apply font styles to your JLabel components via the Font class
  • Add a black border to separate each individual tweet by using the BorderFactory and Color classes.
  • Add the date and time of creation of each individual tweet by using the getCreatedAt() method from the twitter4j.Status interface, along with the Date class.

Check it out and let me know if you like it or not! You can leave your comments  in Packt’s website, too…

__________ Information from ESET Smart Security, version of virus signature database 4436 (20090918) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Posted via email from alromero's posterous

No comments:

Post a Comment