Package edu.pitt.dbmi.nlp.noble.ui.widgets

Examples of edu.pitt.dbmi.nlp.noble.ui.widgets.ResourceCellRenderer


   * @param command
   * @param list
   * @return
   */
  private JPanel createFilterPanel(String label, String command, JList list){
    list.setCellRenderer(new ResourceCellRenderer());
    JToolBar toolbar = new JToolBar();
    JButton add = new JButton(new ImageIcon(ADD_ICON));
    add.setToolTipText("Add "+command);
    add.setActionCommand("add-"+command);
    add.addActionListener(this);
View Full Code Here


    JFrame f = new JFrame("RepositoryManager");
    if(STAND_ALONE)
      f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().setLayout(new BorderLayout());
    ontologies = new JList();
    ontologies.setCellRenderer(new ResourceCellRenderer());
    terminologies = new JList();
    terminologies.setCellRenderer(new ResourceCellRenderer());
    ontologies.addListSelectionListener(this);
    terminologies.addListSelectionListener(this);
    JScrollPane s1 = new JScrollPane(ontologies);
    JScrollPane s2 = new JScrollPane(terminologies);
    s1.setPreferredSize(new Dimension(300,200));
View Full Code Here

   
    // list
    ontologyList = new JList(new DefaultListModel());
    ontologyList.addListSelectionListener(this);
    ontologyList.setMinimumSize(new Dimension(1,1));
    ontologyList.setCellRenderer(new ResourceCellRenderer());
    //panel.add(scroll1,BorderLayout.CENTER);
   
    // info
    ontologyInfo = new JEditorPane();
    ontologyInfo.setContentType("text/html; charset=UTF-8");
    ontologyInfo.setEditable(false);
    ontologyInfo.setMinimumSize(new Dimension(1,1));
 
   
    // root selector
    rootList = new JList(new DefaultListModel());
    rootList.setCellRenderer(new ResourceCellRenderer());
    JToolBar toolbar = new JToolBar();
    JButton add = new JButton(new ImageIcon(ADD_ICON));
    add.setToolTipText("Add Class Tree");
    add.setActionCommand("add");
    add.addActionListener(this);
View Full Code Here

   
    //bottom panel
    // results
    results = new JList();
    results.addListSelectionListener(this);
    results.setCellRenderer(new ResourceCellRenderer());
   
    JScrollPane s = new JScrollPane(results);
    s.setPreferredSize(new Dimension(300,500));
    // info panel
    info = new JEditorPane();
View Full Code Here

      //label.setBorder(new EmptyBorder(10,0,15,0));
      list = new JList();
      list.setFixedCellWidth(150);
      list.setVisibleRowCount(10);
      list.addListSelectionListener(this);
      list.setCellRenderer(new ResourceCellRenderer());
      list.addMouseListener(new ExplorerMouseAdapter());
      popup = createPopup();
      // add
      add(label,BorderLayout.NORTH);
      add(new JScrollPane(list));
View Full Code Here

TOP

Related Classes of edu.pitt.dbmi.nlp.noble.ui.widgets.ResourceCellRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.