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