diff --git a/importPicture/src/osm/jp/gpx/ImportPicture.java b/importPicture/src/osm/jp/gpx/ImportPicture.java index ea9997b..7e92373 100644 --- a/importPicture/src/osm/jp/gpx/ImportPicture.java +++ b/importPicture/src/osm/jp/gpx/ImportPicture.java @@ -214,12 +214,12 @@ System.out.println(" Target GPX: ["+ gpxFile.getName() +"]"); System.out.println("GPX start time: "+ dfjp.format(new Date(gpxStartTime).getTime())); System.out.println(" GPX end time: "+ dfjp.format(new Date(gpxEndTime).getTime())); - - System.out.println("--------|--------------------|--------------------|--------|-------|--------"); - System.out.println(" name | UpdateTime | GPStime | LAT | LON | ele"); - System.out.println("--------|--------------------|--------------------|--------|-------|--------"); + System.out.println(); + System.out.println("------------|--------------------|--------------------|--------|-------|--------"); + System.out.println(" name | UpdateTime | GPStime | LAT | LON | ele"); + System.out.println("------------|--------------------|--------------------|--------|-------|--------"); proc(gpxDir, delta, gpxStartTime, gpxEndTime, map, gpx); - System.out.println("--------|--------------------|--------------------|--------|-------|--------"); + System.out.println("------------|--------------------|--------------------|--------|-------|--------"); } catch (ParseException e) { System.out.println("'"+ timeStr +"' の書式が違います(yyyy-MM-dd'T'HH:mm:ss)"); @@ -274,13 +274,13 @@ if ((uktime.getTime() >= gpxStartTime) && (uktime.getTime() <= gpxEndTime)) { Element trkpt = trkpt(map, uktime); if (trkpt != null) { - System.out.print("\""+ image.getName() +"\"\t"); - System.out.print("\""+ dfjp.format(itime) +"\"\t"); - System.out.println("\""+ dfjp.format(uktime) +"\"\t"); + System.out.print(String.format("%12s ", image.getName())); + System.out.print(String.format("%19s ", dfjp.format(itime))); + System.out.print(String.format("%19s ", dfjp.format(uktime))); Element wpt = createWptTag(image, uktime.getTime(), trkpt); - System.out.println("\""+ wpt.getAttribute("lat") +"\"\t"); - System.out.println("\""+ wpt.getAttribute("lon") +"\"\t"); + System.out.print(String.format("%12s ", wpt.getAttribute("lat"))); + System.out.print(String.format("%12s "+ wpt.getAttribute("lon"))); NodeList nodes = wpt.getChildNodes(); // 子ノードを取得 for (int i4=0; i4< nodes.getLength(); i4++) { @@ -288,7 +288,7 @@ if (node != null) { if (node.getNodeType() == Node.TEXT_NODE) { String eleStr = node.getNodeValue(); - System.out.println("\""+ eleStr +"\""); + System.out.println(eleStr); } } } diff --git a/importPicture/src/osm/jp/gpx/matchtime/gui/DoDialog.java b/importPicture/src/osm/jp/gpx/matchtime/gui/DoDialog.java index 5345249..77785ec 100644 --- a/importPicture/src/osm/jp/gpx/matchtime/gui/DoDialog.java +++ b/importPicture/src/osm/jp/gpx/matchtime/gui/DoDialog.java @@ -63,6 +63,7 @@ // 説明文 textArea = new TextArea(); + textArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 10)); try { textArea.append("> java -cp importPicture.jar osm.jp.gpx.ImportPicture"); for (int i = 0; i < args.length; i++) {