protected void createUI(JComponent parent) { setInstructions("Please select an existing (pre-loaded) ontology that you want to import."); ontologyList = new OWLObjectList(getOWLEditorKit()); ontologyList.setCellRenderer(new OWLOntologyCellRenderer(getOWLEditorKit())); ontologyList.addListSelectionListener(e -> { if (!e.getValueIsAdjusting()) { updateState(); } }); parent.setLayout(new BorderLayout()); parent.add(ComponentFactory.createScrollPane(ontologyList), BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
protected void createUI(JComponent parent) { setInstructions("Please select an existing (pre-loaded) ontology that you want to import."); ontologyList = new OWLObjectList(getOWLEditorKit()); ontologyList.setCellRenderer(new OWLOntologyCellRenderer(getOWLEditorKit())); ontologyList.addListSelectionListener(e -> { if (!e.getValueIsAdjusting()) { updateState(); } }); parent.setLayout(new BorderLayout()); parent.add(ComponentFactory.createScrollPane(ontologyList), BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
protected void createUI(JComponent parent) { setInstructions("Please select an existing (pre-loaded) ontology that you want to import."); ontologyList = new OWLObjectList(getOWLEditorKit()); ontologyList.setCellRenderer(new OWLOntologyCellRenderer(getOWLEditorKit())); ontologyList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { updateState(); } } }); parent.setLayout(new BorderLayout()); parent.add(ComponentFactory.createScrollPane(ontologyList), BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
protected void createUI(JComponent parent) { setInstructions("Please select an existing (pre-loaded) ontology that you want to import."); ontologyList = new OWLObjectList(getOWLEditorKit()); ontologyList.setCellRenderer(new OWLOntologyCellRenderer(getOWLEditorKit())); ontologyList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { updateState(); } } }); parent.setLayout(new BorderLayout()); parent.add(ComponentFactory.createScrollPane(ontologyList), BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }