protected void createUI(JComponent parent) { parent.setLayout(new BorderLayout()); setInstructions("Please specify the path to the file containing the ontology"); filePathPanel = new FilePathPanel("Specify ontology file", new HashSet<String>()); parent.add(filePathPanel, BorderLayout.NORTH); filePathPanel.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateState(); } }); }
public void actionPerformed(ActionEvent e) { if (selectFolders) { browseForFolder(); } else { browseForFile(); } } }), BorderLayout.EAST);
public void insertUpdate(DocumentEvent e) { fireChange(); }
@SuppressWarnings("unchecked") protected void createUI(JComponent parent) { setInstructions("Please specify the path to a file that contains an ontology. You can use the browse " + "button to show a file chooser dialog."); filePathPanel = new FilePathPanel("Please select a file", UIHelper.OWL_EXTENSIONS); filePathPanel.addChangeListener(e -> { updateFinishEnabled(); }); filePathPanel.setBorder(ComponentFactory.createTitledBorder("Path")); JList recentList = createRecentList(); JPanel recentListHolder = new JPanel(new BorderLayout()); recentListHolder.setBorder(ComponentFactory.createTitledBorder("Recent locations")); recentListHolder.add(new JScrollPane(recentList), BorderLayout.CENTER); parent.setLayout(new BorderLayout(6, 6)); parent.add(filePathPanel, BorderLayout.NORTH); parent.add(recentListHolder, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
this.extensions = new HashSet<>(extensions); listeners = new ArrayList<>(); setLayout(new BorderLayout(3, 3)); textField = ComponentFactory.createTextField(); add(textField, BorderLayout.NORTH); textField.getDocument().addDocumentListener(new DocumentListener() { public void insertUpdate(DocumentEvent e) { add(new JButton(browseAction = new AbstractAction("Browse...") {
public void displayingPanel() { super.displayingPanel(); filePathPanel.requestFocus(); updateState(); }
@SuppressWarnings("unchecked") protected void createUI(JComponent parent) { setInstructions("Please specify the path to a file that contains an ontology. You can use the browse " + "button to show a file chooser dialog."); filePathPanel = new FilePathPanel("Please select a file", UIHelper.OWL_EXTENSIONS); filePathPanel.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateFinishEnabled(); } }); filePathPanel.setBorder(ComponentFactory.createTitledBorder("Path")); JList recentList = createRecentList(); JPanel recentListHolder = new JPanel(new BorderLayout()); recentListHolder.setBorder(ComponentFactory.createTitledBorder("Recent locations")); recentListHolder.add(new JScrollPane(recentList), BorderLayout.CENTER); parent.setLayout(new BorderLayout(6, 6)); parent.add(filePathPanel, BorderLayout.NORTH); parent.add(recentListHolder, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
this.extensions = new HashSet<String>(extensions); listeners = new ArrayList<ChangeListener>(); setLayout(new BorderLayout(3, 3)); textField = ComponentFactory.createTextField(); add(textField, BorderLayout.NORTH); textField.getDocument().addDocumentListener(new DocumentListener() { public void insertUpdate(DocumentEvent e) { add(new JButton(browseAction = new AbstractAction("Browse...") {
public void displayingPanel() { super.displayingPanel(); filePathPanel.requestFocus(); updateState(); }
@SuppressWarnings("unchecked") protected void createUI(JComponent parent) { setInstructions("Please specify the path to a file that contains an ontology. You can use the browse " + "button to show a file chooser dialog."); filePathPanel = new FilePathPanel("Please select a file", UIHelper.OWL_EXTENSIONS); filePathPanel.addChangeListener(e -> { updateFinishEnabled(); }); filePathPanel.setBorder(ComponentFactory.createTitledBorder("Path")); JList recentList = createRecentList(); JPanel recentListHolder = new JPanel(new BorderLayout()); recentListHolder.setBorder(ComponentFactory.createTitledBorder("Recent locations")); recentListHolder.add(new JScrollPane(recentList), BorderLayout.CENTER); parent.setLayout(new BorderLayout(6, 6)); parent.add(filePathPanel, BorderLayout.NORTH); parent.add(recentListHolder, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
protected void createUI(JComponent parent) { parent.setLayout(new BorderLayout()); setInstructions("Please specify the path to the file containing the ontology"); filePathPanel = new FilePathPanel("Specify ontology file", new HashSet<String>()); parent.add(filePathPanel, BorderLayout.NORTH); filePathPanel.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateState(); } }); }
public void actionPerformed(ActionEvent e) { if (selectFolders) { browseForFolder(); } else { browseForFile(); } } }), BorderLayout.EAST);
this.extensions = new HashSet<String>(extensions); listeners = new ArrayList<ChangeListener>(); setLayout(new BorderLayout(3, 3)); textField = ComponentFactory.createTextField(); add(textField, BorderLayout.NORTH); textField.getDocument().addDocumentListener(new DocumentListener() { public void insertUpdate(DocumentEvent e) { add(new JButton(browseAction = new AbstractAction("Browse...") {
public void displayingPanel() { super.displayingPanel(); filePathPanel.requestFocus(); updateState(); }
public void removeUpdate(DocumentEvent e) { fireChange(); }
@SuppressWarnings("unchecked") protected void createUI(JComponent parent) { setInstructions("Please specify the path to a file that contains an ontology. You can use the browse " + "button to show a file chooser dialog."); filePathPanel = new FilePathPanel("Please select a file", possibleExtensions); filePathPanel.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateFinishEnabled(); } }); filePathPanel.setBorder(ComponentFactory.createTitledBorder("Path")); JList recentList = createRecentList(); JPanel recentListHolder = new JPanel(new BorderLayout()); recentListHolder.setBorder(ComponentFactory.createTitledBorder("Recent locations")); recentListHolder.add(new JScrollPane(recentList), BorderLayout.CENTER); parent.setLayout(new BorderLayout(6, 6)); parent.add(filePathPanel, BorderLayout.NORTH); parent.add(recentListHolder, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
protected void createUI(JComponent parent) { parent.setLayout(new BorderLayout()); setInstructions("Please specify the path to the file containing the ontology"); filePathPanel = new FilePathPanel("Specify ontology file", new HashSet<>()); parent.add(filePathPanel, BorderLayout.NORTH); filePathPanel.addChangeListener(e -> { updateState(); }); }