OSDN Git Service

ソフトウェアが起動したあと,Timelineタブにフォーカスを合わせるように変更
authorspark_xp <spark_xp@d8c9ecd3-d47d-4367-8645-de82c00e513f>
Sun, 19 Sep 2010 12:23:28 +0000 (12:23 +0000)
committerspark_xp <spark_xp@d8c9ecd3-d47d-4367-8645-de82c00e513f>
Sun, 19 Sep 2010 12:23:28 +0000 (12:23 +0000)
git-svn-id: http://svn.sourceforge.jp/svnroot/nt-manager/NishioTweetManager/trunk@85 d8c9ecd3-d47d-4367-8645-de82c00e513f

src/twitter/gui/action/TweetMainAction.java
src/twitter/gui/form/NishioTweetManager.form
src/twitter/gui/form/NishioTweetManager.java

index 363ddf2..f1f2146 100644 (file)
@@ -1235,6 +1235,16 @@ public class TweetMainAction {
     }
 
     /**
+     * 指定した番号のタブにフォーカスを移す
+     * @param index
+     */
+    public void actionRequestFocusToTab(int index) {
+        if( index >= 0 ) {
+            this.tweetMainTab.setSelectedIndex(index);
+        }
+    }
+
+    /**
      * 選択しているタブにあるテーブル情報だけを更新
      */
     public void actionFocusedTableUpdate() {
index 18fce32..bf68811 100644 (file)
               </Group>
               <Group type="102" alignment="0" attributes="0">
                   <Component id="jScrollPane9" min="-2" pref="53" max="-2" attributes="0"/>
-                  <EmptySpace max="32767" attributes="0"/>
+                  <EmptySpace pref="29" max="32767" attributes="0"/>
               </Group>
           </Group>
         </DimensionLayout>
index 984c288..93a9954 100644 (file)
@@ -1228,6 +1228,8 @@ public class NishioTweetManager extends javax.swing.JFrame {
             this.mainAction.actionAddMentionTab( this.mainAction.getGetMentionPeriod() );
             this.mainAction.actionAddDirectMessageTab( this.mainAction.getGetDirectMessagePeriod() );
             //this.mainAction.actionAddSendDirectMessageTab( this.mainAction.getGetSendDirectMessagePeriod() );
+            //フォーカスを一番初めのテーブルに移す
+            this.mainAction.actionRequestFocusToTab(0);
         }
     }