1 23 package info.monitorenter.gui.chart.events; 24 25 import info.monitorenter.gui.chart.Chart2D; 26 27 import java.awt.event.ActionEvent ; 28 import java.beans.PropertyChangeEvent ; 29 30 import javax.swing.JOptionPane ; 31 32 33 44 public final class Chart2DActionSetName extends AChart2DAction { 45 48 private static final long serialVersionUID = 3691034370412916788L; 49 50 64 public Chart2DActionSetName(final Chart2D chart, final String chartName) { 65 super(chart, chartName); 66 } 67 68 71 public void actionPerformed(final ActionEvent e) { 72 String chosen = JOptionPane.showInputDialog(this.m_chart, 73 "Please input the new Name for chart " + this.m_chart.getName(), "Set chart name", 74 JOptionPane.PLAIN_MESSAGE); 75 this.m_chart.setName(chosen); 76 } 77 78 81 public void propertyChange(final PropertyChangeEvent evt) { 82 } 85 } 86 | Popular Tags |