@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }