OSDN Git Service

再起動が必要な旨のメッセージを表示
authoryukihane <yukihane.feather@gmail.com>
Sat, 3 Sep 2011 10:12:45 +0000 (19:12 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:41:47 +0000 (20:41 +0900)
frontend/src/yukihane/inqubus/gui/ConfigDialog.java

index b7e83d4..6e9f8d3 100644 (file)
@@ -45,6 +45,7 @@ import yukihane.inqubus.Config;
 public class ConfigDialog extends JDialog {
     private static final long serialVersionUID = 1L;
     private static final Logger logger = Logger.getLogger(ConfigDialog.class.getName());
+    private static final String NEED_REBOOT = "設定を有効にするにはいんきゅばすの再起動が必要です";
 
     /** Creates new form Properties */
     public ConfigDialog() {
@@ -537,8 +538,6 @@ public class ConfigDialog extends JDialog {
 
         pnlFfmpegParam.setBorder(BorderFactory.createTitledBorder("ffmpegパラメータ"));
 
-
-
         final GroupLayout glFfmpeg = new GroupLayout(pnlFfmpeg);
         glFfmpeg.setAutoCreateContainerGaps(true);
         pnlFfmpeg.setLayout(glFfmpeg);
@@ -583,6 +582,8 @@ public class ConfigDialog extends JDialog {
         pnlSearchVideo.setBorder(BorderFactory.createTitledBorder("動画検索対象フォルダ"));
         pnlSearchComment.setBorder(BorderFactory.createTitledBorder("コメント検索対象フォルダ"));
 
+        final JLabel lblSearchNeedReboot = new JLabel(NEED_REBOOT);
+
         GroupLayout gl_pnlSearch = new GroupLayout(pnlSearch);
         pnlSearch.setLayout(gl_pnlSearch);
         gl_pnlSearch.setHorizontalGroup(
@@ -590,6 +591,7 @@ public class ConfigDialog extends JDialog {
             .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlSearch.createSequentialGroup()
                 .addContainerGap()
                 .addGroup(gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.TRAILING)
+                    .addComponent(lblSearchNeedReboot, Alignment.CENTER)
                     .addComponent(pnlSearchComment, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                     .addComponent(pnlSearchVideo, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                 .addContainerGap())
@@ -598,6 +600,7 @@ public class ConfigDialog extends JDialog {
             gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.LEADING)
             .addGroup(gl_pnlSearch.createSequentialGroup()
                 .addContainerGap()
+                .addComponent(lblSearchNeedReboot)
                 .addComponent(pnlSearchVideo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                 .addPreferredGap(ComponentPlacement.RELATED)
                 .addComponent(pnlSearchComment, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
@@ -714,6 +717,8 @@ public class ConfigDialog extends JDialog {
             )
         );
 
+        final JLabel lblSystemNeedReboot = new JLabel("設定を有効にするにはいんきゅばすの再起動が必要です");
+
         final JPanel pnlSystem = new JPanel();
         pnlSystem.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
         final GroupLayout glSystem = new GroupLayout(pnlSystem);
@@ -722,9 +727,11 @@ public class ConfigDialog extends JDialog {
         pnlSystem.setLayout(glSystem);
 
         glSystem.setHorizontalGroup(glSystem.createParallelGroup()
+            .addComponent(lblSystemNeedReboot, Alignment.CENTER)
             .addComponent(pnlSystemGeneral));
 
         glSystem.setVerticalGroup(glSystem.createSequentialGroup()
+            .addComponent(lblSystemNeedReboot)
             .addComponent(pnlSystemGeneral));
 
         tabbedPane.add("システム", pnlSystem);