OSDN Git Service

実行結果コンソールの表示フォントを等幅フォントに変更
authoryuuhayashi <hayashi.yuu@gmail.com>
Sun, 23 Nov 2014 23:01:29 +0000 (08:01 +0900)
committeryuuhayashi <hayashi.yuu@gmail.com>
Sun, 23 Nov 2014 23:01:29 +0000 (08:01 +0900)
importPicture/src/osm/jp/gpx/matchtime/gui/DoDialog.java

index 77785ec..e82f3fa 100644 (file)
@@ -19,7 +19,7 @@ public class DoDialog extends JDialog {
     JPanel buttonPanel;     // ボタン配置パネル        (下部)
     JButton closeButton;      // [クローズ]ボタン
     JButton doButton;      // [実行]ボタン
-    TextArea textArea;      // 実行結果を表示するJTextArea    (中央)
+    JTextArea textArea;      // 実行結果を表示するJTextArea   (中央)
     //}}
 
     class SymAction implements java.awt.event.ActionListener {
@@ -62,8 +62,10 @@ public class DoDialog extends JDialog {
         this.getContentPane().add("South", buttonPanel);
         
                // 説明文
-        textArea = new TextArea();
-        textArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 10));
+        textArea = new JTextArea();
+        JScrollPane sc=new JScrollPane(textArea);
+        textArea.setFont(new Font(Font.MONOSPACED,Font.PLAIN,12));
+        textArea.setTabSize(4);
         try {
             textArea.append("> java -cp importPicture.jar osm.jp.gpx.ImportPicture");
             for (int i = 0; i < args.length; i++) {
@@ -74,7 +76,7 @@ public class DoDialog extends JDialog {
         catch (Exception e) {
             System.out.println(e.toString());
         }
-        this.getContentPane().add("Center", textArea);
+        this.getContentPane().add("Center", sc);
 
         //{{REGISTER_LISTENERS
         SymAction lSymAction = new SymAction();