OSDN Git Service

作業フォルダ設定用のボタンを追加
authoryukihane <yukihane.feather@gmail.com>
Fri, 2 Sep 2011 11:27:58 +0000 (20:27 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:40:32 +0000 (20:40 +0900)
frontend/src/yukihane/inqubus/gui/ConfigDialog.java

index 21ae6f3..f7c1883 100644 (file)
@@ -696,6 +696,9 @@ public class ConfigDialog extends JDialog {
         final JLabel lblSystemWaitDownload = new JLabel("ダウンロード開始最小間隔(秒)");
         final JLabel lblSystemThreadConvert = new JLabel("変換スレッド数");
         final JLabel lblSystemTempDir = new JLabel("作業フォルダ");
+        final JButton btnSystemTempDir = new JButton("...");
+        btnSystemTempDir.addActionListener(
+                new FileChooseAction(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldSystemTempDir));
 
         final JPanel pnlSystemGeneral = new JPanel();
         pnlSystemGeneral.setBorder(BorderFactory.createTitledBorder("システム"));
@@ -719,6 +722,7 @@ public class ConfigDialog extends JDialog {
             .addGroup(glSystemGenegal.createSequentialGroup()
                 .addComponent(lblSystemTempDir)
                 .addComponent(fldSystemTempDir, DEFAULT_SIZE, 400, Short.MAX_VALUE)
+                .addComponent(btnSystemTempDir)
                 )
             );
 
@@ -734,7 +738,10 @@ public class ConfigDialog extends JDialog {
                 .addComponent(fldSystemThreadConvert, DEFAULT_SIZE, PREFERRED_SIZE, PREFERRED_SIZE))
             .addGroup(glSystemGenegal.createParallelGroup(Alignment.BASELINE)
                 .addComponent(lblSystemTempDir)
-                .addComponent(fldSystemTempDir, DEFAULT_SIZE, PREFERRED_SIZE, PREFERRED_SIZE)));
+                .addComponent(fldSystemTempDir, DEFAULT_SIZE, PREFERRED_SIZE, PREFERRED_SIZE)
+                .addComponent(btnSystemTempDir)
+            )
+        );
 
         final JPanel pnlSystem = new JPanel();
         pnlSystem.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));