Package javax.swing

Examples of javax.swing.JTable$CellEditorRemover


                activePreview == 0 ? Globals.prefs.get("preview0") : Globals.prefs.get("preview1"));

        sortedEntries = new SortedList<BibtexEntry>(entries, new EntryComparator(false, true, "author"));
        model = new EventTableModel<BibtexEntry>(sortedEntries,
                new EntryTableFormat());
        entryTable = new JTable(model);
        GeneralRenderer renderer = new GeneralRenderer(Color.white);
        entryTable.setDefaultRenderer(JLabel.class, renderer);
        entryTable.setDefaultRenderer(String.class, renderer);
        setWidths();
        TableComparatorChooser<BibtexEntry> tableSorter =
View Full Code Here


        GridBagConstraints gridBagConstraints;

        setLayout(new GridBagLayout());

        dataPane = new JScrollPane();
        table = new JTable(new DataTableModel(tableData, headings));
        table.setAutoCreateRowSorter(true);
        for (int i = 0; i < Columns.values().length; i++) {
            table.getColumnModel().getColumn(i).setPreferredWidth(Columns.values()[i].width);
        }
        dataPane.setViewportView(table);
View Full Code Here

  }//GEN-END:initComponents

  private void tableMouseRightClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tableMouseRightClicked
    if (!((evt.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK))
      return;
    JTable myTable = (JTable)evt.getSource();
    Object value = myTable.getModel().getValueAt(myTable.rowAtPoint(evt.getPoint()), myTable.columnAtPoint(evt.getPoint()));
    if (value == null)
      return;
    ((JMultipleProseClient)getTopLevelAncestor()).newTextAreaContent(value.toString());
  }//GEN-LAST:event_tableMouseRightClicked
View Full Code Here

      return;
    ((JMultipleProseClient)getTopLevelAncestor()).newTextAreaContent(value.toString());
  }//GEN-LAST:event_tableMouseRightClicked

  private void tableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tableMouseClicked
    JTable myTable = (JTable)evt.getSource();
    if (isActive(myTable))
      return;
    setActiveTable(myTable);
    ((WorksheetSingleClientModel)myTable.getModel()).setSelectedCells(new int[] { myTable.rowAtPoint(evt.getPoint()) });
    ((WorksheetSingleClientModel)myTable.getModel()).setSelectedColumn(myTable.columnAtPoint(evt.getPoint()));
  }//GEN-LAST:event_tableMouseClicked
View Full Code Here

    ((WorksheetSingleClientModel)myTable.getModel()).setSelectedCells(new int[] { myTable.rowAtPoint(evt.getPoint()) });
    ((WorksheetSingleClientModel)myTable.getModel()).setSelectedColumn(myTable.columnAtPoint(evt.getPoint()));
  }//GEN-LAST:event_tableMouseClicked

  private void onMousePressed(java.awt.event.MouseEvent evt) {
    JTable myTable = ((JTableHeader)evt.getComponent()).getTable();
    if (isActive(myTable))
      return;
    setActiveTable(myTable);
  }
View Full Code Here

    /** Constructor. */
    public AboutJavaInfosPanel(GanttProject parent) {
        super(GanttLanguage.getInstance().getText("jinfos"), GanttLanguage
                .getInstance().getText("settingsJavaInfos"), parent);

        JTable jTableProperties = new JTable();
        AboutFieldTableModel modelproperties = new AboutFieldTableModel();
        jTableProperties.setModel(modelproperties);

        try {
            Enumeration props = System.getProperties().propertyNames();
            SortedSet s = new TreeSet();
            while (props.hasMoreElements()) {
View Full Code Here

    /** Constructor. */
    public AboutLibraryPanel(GanttProject parent) {
        super(GanttLanguage.getInstance().getText("library"), GanttLanguage
                .getInstance().getText("settingsLibrary"), parent);

        JTable jTableLib = new JTable();
        LibraryFieldTableModel modellib = new LibraryFieldTableModel();

        jTableLib.setModel(modellib);
        modellib.addField(new LibraryInfo("ganttproject-"
                + GanttProject.version + ".jar", "ganttproject.biz",
                "Project Manager."));
        modellib.addField(new LibraryInfo("commons-httpclient.jar",
                "jakarta.apache.org", "WebDAV support."));
View Full Code Here

    /** Constructor. */
    public AboutAuthorPanel(GanttProject parent) {
        super(GanttLanguage.getInstance().getText("authors"), GanttLanguage
                .getInstance().getText("settingsAuthors"), parent);

        JTable jTableAuthors = new JTable();
        AuthorsFieldTableModel modelauthors = new AuthorsFieldTableModel();

        jTableAuthors.setModel(modelauthors);
        modelauthors.addField(new AuthorsInfo("THOMAS Alexandre",
                "alexthomas@ganttproject.org"));
        modelauthors.addField(new AuthorsInfo("BARASHEV Dmitry",
                "dbarashev@ganttproject.org"));
        modelauthors.addField(new AuthorsInfo("AZURE Joe",
View Full Code Here

                "resourceRole")), GanttLanguage.getInstance().getText(
                "settingsRoles"), parent);

        appli = parent;
        myRolesModel = new RolesTableModel();
        rolesTable = new JTable(myRolesModel);
        rolesTable.setPreferredScrollableViewportSize(new Dimension(400, 350));
        rolesTable.setRowHeight(23);
        rolesTable.getColumnModel().getColumn(0).setPreferredWidth(30);
        rolesTable.getColumnModel().getColumn(1).setPreferredWidth(370);
View Full Code Here

   *
   * @return javax.swing.JTable
   */
  private JTable getJTable() {
    if(jTable == null) {
      jTable = new JTable();
      jTable.setModel(getJTableModel());
      jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      jTable.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent e) {
          jButton_Modifier.setText(LangageManager.getProperty("common.dialog.remove"));
View Full Code Here

TOP

Related Classes of javax.swing.JTable$CellEditorRemover

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.