// hashtag search dialog
private HashtagSearchDialog hashtagSearchDialog = null;
// 新しく取得した部分のテーブルカラー
- private Color newTableColor = new Color(224, 255, 255);
+ private Color newTableColor = new Color(230,230,250);
// TLのフォント名
private String tlFontName = "MS Pゴシック";
// TLのフォントサイズ
String podm = this.property.getProperty("openDirectMessageTab");
String posdmt = this.property.getProperty("openSendDirectMessageTab");
- //ログ
- String log = this.property.getProperty("saveLog");
+ // ログ
+ String log = this.property.getProperty("saveLog");
- //表示可能ツイート数
- String nost = this.property.getProperty("numOfShowTweet");
+ // 表示可能ツイート数
+ String nost = this.property.getProperty("numOfShowTweet");
- //最新クライアント情報を通知するか
- String unt = this.property.getProperty("updateNotify");
- if( unt == null ) {
- unt = this.isUpdateNotify + "";
- }
+ // 最新クライアント情報を通知するか
+ String unt = this.property.getProperty("updateNotify");
+ if (unt == null) {
+ unt = this.isUpdateNotify + "";
+ }
//streamingを利用するか
String ius = this.property.getProperty("isUsingStreaming");
this.isTempOpenedDMTab = Boolean.parseBoolean(podm);
this.isTempOpenedSendDMTab = Boolean.parseBoolean(posdmt);
- //ログ
- this.saveLog = Boolean.parseBoolean(log);
+ // ログ
+ this.saveLog = Boolean.parseBoolean(log);
- //表示可能ツイート数
- this.tableElementMaxSize = Integer.parseInt(nost);
+ // 表示可能ツイート数
+ this.tableElementMaxSize = Integer.parseInt(nost);
- //update notify
- this.isUpdateNotify = Boolean.parseBoolean(unt);
+ // update notify
+ this.isUpdateNotify = Boolean.parseBoolean(unt);
//using streaming
this.isUsingStreaming = Boolean.parseBoolean(ius);
import javax.swing.text.html.StyleSheet;
/**
- *
+ *
* @author nishio
- *
+ *
*/
public class TweetCommentRenderer extends JEditorPane implements
TableCellRenderer, MouseListener, MouseMotionListener {
// デフォルトのテーブルカラー
private final Color currentTableColor = Color.WHITE;
// あたらしく取得したTweetのセルを塗りつぶす色
- private Color newTableColor = new Color(224, 255, 255);
+ private Color newTableColor = new Color(230, 230, 250);
// あたらしく取得したセルが何行目までか
private int newTableRow = -1;
/**
- *
+ *
*/
public TweetCommentRenderer() {
super();
* setForeground(table.getForeground());
* setBackground(table.getBackground()); }
*/
+
+
+ //一行ずつTableの色を変更する
+ //TODO: ここも後で色を変更できるようにする
+ if( row % 2 == 0 ) {
+ setBackground(new Color(240,240,255));
+ }else {
+ setBackground(Color.white);
+ }
+
// TODO: あとでここのカラーを変える
// NewCell
- if (this.newTableRow >= 0 && row < this.newTableRow) {
- setBackground(newTableColor);
- } else {
- setBackground(currentTableColor);
+ if( column >= 2 ) {
+ if (this.newTableRow >= 0 && row < this.newTableRow) {
+ setBackground(newTableColor);
+ } else {
+ setBackground(currentTableColor);
+ }
}
// フォントを変更
/**
* 何行目までのセルを新しいセルとしてnewTableColorで塗りつぶすか
- *
+ *
* @param row
* 0以上の値で新しいセルとして指定した行を塗りつぶす
* @param newTableColor
}
// まだ見ていないtweet数を追加
this.setUncheckedTweet(this.getUncheckedTweet() + tweet.size());
+ //grid線を削除する
+ this.getTable().setShowGrid(false);
// まだチェックしていないtweetの数をタブにも表示
if (this.getUncheckedTweet() > 0) {