public OntologySourcePanel() { setOpaque(true); setLayout(new BorderLayout(3, 3)); setBorder(new EmptyBorder(5, 5, 5, 5)); ontURILabel = new JLabel(); ontURILabel.setIcon(OWLIcons.getIcon("ontology.png")); add(ontURILabel, BorderLayout.CENTER); locURILabel = new JLabel(); locURILabel.setFont(locURILabel.getFont().deriveFont(12.0f)); locURILabel.setForeground(Color.DARK_GRAY); // Indent the physical URI slightly locURILabel.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); add(locURILabel, BorderLayout.SOUTH); }
public Component getListCellRendererComponent(JList jList, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (panel == null){ panel = new OntologySourcePanel(); } panel.setOntology(((OntologyListItem)value).ont); if (isSelected){ panel.setBackground(jList.getSelectionBackground()); } else{ panel.setBackground(jList.getBackground()); } return panel; } }
public Component getListCellRendererComponent(JList jList, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (panel == null){ panel = new OntologySourcePanel(); } panel.setOntology(((OntologyListItem)value).ont); if (isSelected){ panel.setBackground(jList.getSelectionBackground()); } else{ panel.setBackground(jList.getBackground()); } return panel; } }
public Component getListCellRendererComponent(JList jList, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (panel == null){ panel = new OntologySourcePanel(); } panel.setOntology(((OntologyListItem)value).ont); if (isSelected){ panel.setBackground(jList.getSelectionBackground()); } else{ panel.setBackground(jList.getBackground()); } return panel; } }
public OntologySourcePanel() { setOpaque(true); setLayout(new BorderLayout(3, 3)); setBorder(new EmptyBorder(5, 5, 5, 5)); ontURILabel = new JLabel(); ontURILabel.setIcon(OWLIcons.getIcon("ontology.png")); add(ontURILabel, BorderLayout.CENTER); locURILabel = new JLabel(); locURILabel.setFont(locURILabel.getFont().deriveFont(12.0f)); locURILabel.setForeground(Color.DARK_GRAY); // Indent the physical URI slightly locURILabel.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); add(locURILabel, BorderLayout.SOUTH); }
public OntologySourcePanel() { setOpaque(true); setLayout(new BorderLayout(3, 3)); setBorder(new EmptyBorder(5, 5, 5, 5)); ontURILabel = new JLabel(); ontURILabel.setIcon(OWLIcons.getIcon("ontology.png")); add(ontURILabel, BorderLayout.CENTER); locURILabel = new JLabel(); locURILabel.setFont(locURILabel.getFont().deriveFont(12.0f)); locURILabel.setForeground(Color.DARK_GRAY); // Indent the physical URI slightly locURILabel.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); add(locURILabel, BorderLayout.SOUTH); }
public OntologySourcePanel() { setOpaque(true); setLayout(new BorderLayout(3, 3)); setBorder(new EmptyBorder(5, 5, 5, 5)); ontURILabel = new JLabel(); ontURILabel.setIcon(OWLIcons.getIcon("ontology.png")); add(ontURILabel, BorderLayout.CENTER); locURILabel = new JLabel(); locURILabel.setFont(locURILabel.getFont().deriveFont(12.0f)); locURILabel.setForeground(Color.DARK_GRAY); // Indent the physical URI slightly locURILabel.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); add(locURILabel, BorderLayout.SOUTH); }
public Component getListCellRendererComponent(JList jList, Object value, int index, boolean isSelected, boolean cellHasFocus) { if (panel == null){ panel = new OntologySourcePanel(); } panel.setOntology(((OntologyListItem)value).ont); if (isSelected){ panel.setBackground(jList.getSelectionBackground()); } else{ panel.setBackground(jList.getBackground()); } return panel; } }