OSDN Git Service

入力パネル初期化に表示タブの設定とフォーカス指定を追加
authoryukihane <yukihane.feather@gmail.com>
Fri, 2 Sep 2011 07:31:12 +0000 (16:31 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:39:42 +0000 (20:39 +0900)
frontend/src/yukihane/inqubus/gui/MainFrame.java

index 887b371..0399a30 100644 (file)
@@ -149,7 +149,6 @@ public class MainFrame extends JFrame {
         tblDisplay = new JTable(targetModel, new TargetsColumnModel());
         tblDisplay.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
         final JPanel pnlButton = new JPanel();
         tblDisplay = new JTable(targetModel, new TargetsColumnModel());
         tblDisplay.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
         final JPanel pnlButton = new JPanel();
-        final JTabbedPane tbpInput = new JTabbedPane(JTabbedPane.BOTTOM);
         final JPanel pnlInputMain = new JPanel();
         final JLabel lblId = new JLabel();
         final JLabel lblVideo = new JLabel();
         final JPanel pnlInputMain = new JPanel();
         final JLabel lblId = new JLabel();
         final JLabel lblVideo = new JLabel();
@@ -652,6 +651,8 @@ public class MainFrame extends JFrame {
     private final JButton btnStart = new JButton("開始");
     private final JButton btnStop = new JButton("停止");
     private final JButton btnDeselect = new JButton("選択解除");
     private final JButton btnStart = new JButton("開始");
     private final JButton btnStop = new JButton("停止");
     private final JButton btnDeselect = new JButton("選択解除");
+    // 入力領域
+    private final JTabbedPane tbpInput = new JTabbedPane(JTabbedPane.BOTTOM);
     // 入力領域 - メイン
     private final IdComboBox fldId;
     private final JCheckBox cbBackLogReduce = new JCheckBox("コメ数減少");
     // 入力領域 - メイン
     private final IdComboBox fldId;
     private final JCheckBox cbBackLogReduce = new JCheckBox("コメ数減少");
@@ -673,6 +674,8 @@ public class MainFrame extends JFrame {
     private void initInputPanel() {
         initMainTab();
         initFfmpegTab();
     private void initInputPanel() {
         initMainTab();
         initFfmpegTab();
+        tbpInput.setSelectedIndex(0);
+        fldId.requestFocus();
     }
 
     private void initMainTab() {
     }
 
     private void initMainTab() {