Examples of TableSorter


Examples of edu.harvard.wcfia.yoshikoder.ui.TableSorter

        // interface
        Container cPane = getContentPane();
        cPane.setLayout(new BorderLayout());
       
        // insert current report
        TableSorter sorter = new TableSorter( current );
        table = new JTable(sorter);
        sorter.setTableHeader(table.getTableHeader());
        table.setFont(yoshikoder.getDisplayFont());
        TableUtil.packColumn(table, 0, 2);

        JPanel central = new JPanel(new BorderLayout());
        central.add(new JScrollPane(table), BorderLayout.CENTER);
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.ui.TableSorter

        return rep;
    }
    */
   
    protected void setReport(YKReport rep){
        TableSorter sorter = new TableSorter(rep);
        table.setModel(sorter);
        sorter.setTableHeader(table.getTableHeader());
        table.setFont(yoshikoder.getDisplayFont());
        TableUtil.packColumn(table, 0, 2);
    }
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.ui.TableSorter

        cPane.setLayout(new BorderLayout());
       
        JPanel buttons = createButtonPanel();
        //cPane.add(buttons, BorderLayout.SOUTH);
       
        TableSorter sorter = new TableSorter(report);
        JTable table = new JTable(sorter);
        sorter.setTableHeader(table.getTableHeader());
        table.setFont(yoshikoder.getDisplayFont());
        TableUtil.packColumn(table, 0, 2);

        JPanel central = new JPanel(new BorderLayout());
        central.add(new JScrollPane(table), BorderLayout.CENTER);
View Full Code Here

Examples of entagged.tageditor.models.TableSorter

      //Setup right treetable model with multiple selection allowed
      tableModel = new TagEditorTableModel(this);

      //Creates the right treetable, with the above model, turn off
      // autoresize and sets Table selection listeners
      tableSorter = new TableSorter(tableModel); //Provides sorting capabilities
      table = new JTable();
      table.setModel(tableSorter);
      table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
      tableSelectionModel = table.getSelectionModel();
      tableSelectionModel.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.TableSorter

        return tableModel;
    }

    public void setTableModel(ListViewTableModel tableModel) {
        this.tableModel = tableModel;
        this.sorter = new TableSorter(this.tableModel);
        this.sorter.setTableHeader(this.table.getTableHeader());
        this.sorter.setParent(this);
        this.table.setModel(this.sorter);
    }
View Full Code Here

Examples of nu.fw.jeti.util.TableSorter

            new String[]{
                I18N.gettext("main.options.Name"),
                I18N.gettext("main.options.Enabled"),
                I18N.gettext("main.options.Description")},
            plugins);
        TableSorter sorter = new TableSorter(dataModel);
        jTable1 = new JTable(sorter);
        sorter.setTableHeader(jTable1.getTableHeader());
        sorter.setSortingStatus(0, TableSorter.ASCENDING);
        jTable1.setDefaultRenderer(String.class, new PluginRenderer());
    jTable1.setRowSelectionAllowed(false);
        jTable1.getColumnModel().getColumn(0).setPreferredWidth(60);
        jTable1.getColumnModel().getColumn(1).setPreferredWidth(15);
        jTable1.getColumnModel().getColumn(2).setPreferredWidth(180);
View Full Code Here

Examples of nu.fw.jeti.util.TableSorter

  private JButton jButton1 = new JButton();
  private TableSorter sorter;   

  public PrefPanel(Backend backend)
  {
    sorter = new TableSorter(initTableModel());
        jTable1 = new JTable(sorter);
        sorter.setTableHeader(jTable1.getTableHeader());
        sorter.setSortingStatus(0, TableSorter.ASCENDING);

    jTable1.getColumnModel().getColumn(0).setPreferredWidth(60);
View Full Code Here

Examples of nu.fw.jeti.util.TableSorter

                I18N.gettext("emoticons.Enabled"),
                I18N.gettext("emoticons.Description"),
                I18N.gettext("emoticons.Type") },
            Preferences.getPlugableCopy(iconType));

        TableSorter sorter = new TableSorter(dataModel);
        jTable1 = new JTable(sorter);
        sorter.setTableHeader(jTable1.getTableHeader());
        sorter.setSortingStatus(0, TableSorter.ASCENDING);
        //jTable1.setDefaultRenderer(String.class, new IconRenderer());
    jTable1.setRowSelectionAllowed(false);

        jTable1.getColumnModel().getColumn(0).setPreferredWidth(60);
        jTable1.getColumnModel().getColumn(1).setPreferredWidth(15);
View Full Code Here

Examples of nu.fw.jeti.util.TableSorter

    private void init() throws Exception
    {
        setTitle(I18N.gettext("groupchat.Manage_Members"));
      setIconImage(StatusIcons.getImageIcon("jeti").getImage());

        sorter = new TableSorter(tableModel);
        tabMembers = new JTable(sorter);
        sorter.setTableHeader(tabMembers.getTableHeader());
        sorter.setSortingStatus(0, TableSorter.ASCENDING);
        JScrollPane scrollPane = new JScrollPane(tabMembers);
        tabMembers.setPreferredScrollableViewportSize(new Dimension(300, 200));
View Full Code Here

Examples of nu.fw.jeti.util.TableSorter

    Container contentPane = dialog.getContentPane();
    contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS));
    JLabel lbl = new JLabel(I18N.gettext("groupchat.bookmarks"));
    lbl.setAlignmentX(0.5f);
    contentPane.add(lbl);
        final TableSorter sorter = new TableSorter(conferencesTableModel);
        final JTable table = new JTable(sorter);
        sorter.setTableHeader(table.getTableHeader());
        sorter.setSortingStatus(0, TableSorter.ASCENDING);
        table.setAlignmentX(0.5f);
        table.setPreferredScrollableViewportSize(new Dimension(200, 100));
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        ListSelectionModel sm = table.getSelectionModel();
        sm.addListSelectionListener(new ListSelectionListener() {
            public void valueChanged(ListSelectionEvent e) {
                ListSelectionModel lsm =
                    (ListSelectionModel)e.getSource();
                delButton.setEnabled(!lsm.isSelectionEmpty());
            }
        });
    final JList list = new JList(conferences.toArray());
    list.setAlignmentX(0.5f);

        JScrollPane listScroller = new JScrollPane(table);
        contentPane.add(listScroller);
        delButton =
            new JButton(I18N.gettext("groupchat.delete_bookmark"));
        delButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        int i = sorter.modelIndex(table.getSelectedRow());
                if(i != -1) {
                    conferences.remove(i);
                    conferencesTableModel.update();
                    storeConferences();
          dialog.dispose();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.