Java Sina Weibo client development step 5

Source: Internet
Author: User

This time, we have implemented all the basic functions and added the authorization module. The authorization dialog box is displayed when you use the client for the first time. By default, the access_token obtained by authorization is saved. As long as the access_token does not expire (the validity period of the approved application is one week), the client can be directly run without logon or re-authorization.

The implemented functions and some changes are as follows:

1. Implement system pallets
Add the initsystemtray and createmenu methods to the maindialog class.
2,Add the weiboconstants class to store some public constants, such as the logo of the client.
3. Click an image to view and save the image.
1) added Sina showimage for displaying images.
2) added the class myhyperlinklistener that implements the hyperlinklistener interface to listen to jtextpanel events.
2) Add the inittextpanel method in onejpanel
Textpanel. addhyperlinklistener (New myhyperlinklistener ());
4,Create a new class mentions for @ my tab
5,Create a new class, myfavorites, used to add a tab to favorites
6,Create oneuser and place a user
7,Create new friendsorfollowers class for follow and fans tabs
8. special features: Click the tab and load the corresponding content.

Run illustration:

Download the code (you can click Start. bat in the compressed package to run it directly ):

Java Sina Weibo client development step 5 (micro disk)

Java Sina Weibo client development step 5 (csdn)

For more information, see:

Java Sina Weibo client development step 1

Java Sina Weibo client development step 2

Java Sina Weibo client development step 3

Java Sina Weibo client development step 4

For original works, please indicate the source for reprinting: All snails know

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.