1 26 27 package org.objectweb.openccm.explorer.CosTrading.gui; 28 29 30 import javax.swing.Box ; 31 32 33 import org.objectweb.openccm.explorer.menu.FileChooserBox; 34 import org.objectweb.openccm.explorer.menu.OpenCCMBrowserConstants; 35 36 39 public class AddServiceTypesPanel extends javax.swing.JPanel { 40 41 47 48 protected FileChooserBox fcb_; 49 50 56 59 public AddServiceTypesPanel() { 60 Box b = Box.createVerticalBox(); 61 b.add(Box.createVerticalGlue()); 62 63 fcb_ = new FileChooserBox("Trading Service Type Description file: ", OpenCCMBrowserConstants.XML_FILE_CHOOSER); 64 b.add(fcb_); 65 66 b.add(Box.createVerticalGlue()); 67 68 add(b); 69 } 70 71 77 83 88 public String getFileName() { 89 if (fcb_.getFile() == null) return null; 90 return fcb_.getFile().getAbsolutePath(); 91 } 92 93 } 94 95 96 | Popular Tags |