Source:
<code>private JComponent createBrowsePanel(Map<String[], String> formatFilter, Map<URI, Object> dataMap, URI uri, DescriptionType inputOrOutput){ JPanel dataComponent = new JPanel(); dataComponent.setLayout(new FlowLayout(FlowLayout.LEFT)); JTextField jtf = new JTextField(); <START> jtf.setColumns(25); <END> jtf.getDocument().putProperty("dataMap", dataMap); jtf.getDocument().putProperty("uri", uri); jtf.addMouseListener(EventHandler.create(MouseListener.class, this, "onSelected", "", "mouseClicked")); jtf.getDocument().addDocumentListener(EventHandler.create(DocumentListener.class, this, "saveDocumentText", "document")); OpenFilePanel filePanel = null; if(inputOrOutput instanceof Input){ filePanel = new OpenFilePanel("RawDataUI.File", "Select File"); } else if(inputOrOutput instanceof Output){ filePanel = new SaveFilePanel("RawDataUI.File", "Select File"); } for(Map.Entry<String[], String> entry : formatFilter.entrySet()){ filePanel.addFilter(entry.getKey(), entry.getValue()); } filePanel.setCurrentFilter(0); filePanel.loadState(); if(dataMap.get(uri) != null) jtf.setText(dataMap.get(uri).toString()); else { jtf.setText(filePanel.getCurrentDirectory().getAbsolutePath()); } dataComponent.add(jtf); JButton button = new JButton("Browse"); button.putClientProperty("dataMap", dataMap); button.putClientProperty("uri", uri); button.putClientProperty("JTextField", jtf); button.putClientProperty("filePanel", filePanel); button.addActionListener(EventHandler.create(ActionListener.class, this, "openLoadPanel", "")); dataComponent.add(button); return dataComponent; }</code><technical_language>Please create a static field for numbers name</technical_language>

Target:
private JComponent createBrowsePanel(Map<String[], String> formatFilter, Map<URI, Object> dataMap, URI uri, DescriptionType inputOrOutput){ JPanel dataComponent = new JPanel(); dataComponent.setLayout(new FlowLayout(FlowLayout.LEFT)); JTextField jtf = new JTextField(); jtf.setColumns(BROWSETEXTFIELD_WIDTH); jtf.getDocument().putProperty("dataMap", dataMap); jtf.getDocument().putProperty("uri", uri); jtf.addMouseListener(EventHandler.create(MouseListener.class, this, "onSelected", "", "mouseClicked")); jtf.getDocument().addDocumentListener(EventHandler.create(DocumentListener.class, this, "saveDocumentText", "document")); OpenFilePanel filePanel = null; if(inputOrOutput instanceof Input){ filePanel = new OpenFilePanel("RawDataUI.File", "Select File"); } else if(inputOrOutput instanceof Output){ filePanel = new SaveFilePanel("RawDataUI.File", "Select File"); } for(Map.Entry<String[], String> entry : formatFilter.entrySet()){ filePanel.addFilter(entry.getKey(), entry.getValue()); } filePanel.setCurrentFilter(0); filePanel.loadState(); if(dataMap.get(uri) != null) jtf.setText(dataMap.get(uri).toString()); else { jtf.setText(filePanel.getCurrentDirectory().getAbsolutePath()); } dataComponent.add(jtf); JButton button = new JButton("Browse"); button.putClientProperty("dataMap", dataMap); button.putClientProperty("uri", uri); button.putClientProperty("JTextField", jtf); button.putClientProperty("filePanel", filePanel); button.addActionListener(EventHandler.create(ActionListener.class, this, "openLoadPanel", "")); dataComponent.add(button); return dataComponent; }