Package net.sf.mzmine.util.components

Examples of net.sf.mzmine.util.components.ComponentCellRenderer


    taskTable.setCellSelectionEnabled(false);
    taskTable.setColumnSelectionAllowed(false);
    taskTable.setRowSelectionAllowed(true);
    taskTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    taskTable.setDefaultRenderer(JComponent.class,
        new ComponentCellRenderer());
    taskTable.getTableHeader().setReorderingAllowed(false);

    JScrollPane jJobScroll = new JScrollPane(taskTable);
    add(jJobScroll, BorderLayout.CENTER);
View Full Code Here


    elementsTable = new JTable(elementsTableModel);
    elementsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    elementsTable.setRowSelectionAllowed(true);
    elementsTable.setColumnSelectionAllowed(false);
    elementsTable.setDefaultRenderer(Object.class,
        new ComponentCellRenderer(smallFont));
    elementsTable.getTableHeader().setReorderingAllowed(false);

    elementsTable.getTableHeader().setResizingAllowed(false);
    elementsTable
        .setPreferredScrollableViewportSize(new Dimension(200, 80));
View Full Code Here

TOP

Related Classes of net.sf.mzmine.util.components.ComponentCellRenderer

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.