001package jmri.jmrit.operations.rollingstock.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007/**
008 * Acton for changing the default attribute character length
009 *
010 * @author Daniel Boudreau Copyright (C) 2025
011 */
012public final class AttributeCharacterLengthAction extends AbstractAction {
013
014    public AttributeCharacterLengthAction() {
015        super(Bundle.getMessage("ChangeCharLength"));
016    }
017    
018    private AttributeCharacterLengthFrame aclf;
019
020    @Override
021    public void actionPerformed(ActionEvent ae) {
022        if (aclf != null) {
023            aclf.dispose();
024        }
025        aclf = new AttributeCharacterLengthFrame();
026    }
027}