| |
---|
| | JFrame parentFrame; // MatchTime.class |
---|
| | JPanel buttonPanel; // ボタン配置パネル (下部) |
---|
| | JButton closeButton; // [クローズ]ボタン |
---|
| | JButton doButton; // [実行]ボタン |
---|
| | TextArea textArea; // 実行結果を表示するJTextArea (中央) |
---|
| | JTextArea textArea; // 実行結果を表示するJTextArea (中央) |
---|
| | //}} |
---|
| | |
---|
| | class SymAction implements java.awt.event.ActionListener { |
---|
| | public void actionPerformed(java.awt.event.ActionEvent event) { |
---|
| |
---|
| | |
---|
| | 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++) { |
---|
| | textArea.append(" '"+ args[i] +"'"); |
---|
| |
---|
| | } |
---|
| | catch (Exception e) { |
---|
| | System.out.println(e.toString()); |
---|
| | } |
---|
| | this.getContentPane().add("Center", textArea); |
---|
| | this.getContentPane().add("Center", sc); |
---|
| | |
---|
| | //{{REGISTER_LISTENERS |
---|
| | SymAction lSymAction = new SymAction(); |
---|
| | closeButton.addActionListener(lSymAction); |
---|
| |
---|
| | |