/** * {@inheritDoc} */ @Override public void setColumnMargin(int aMargin) { columnMargin = aMargin; delegate.setColumnMargin(aMargin); // the event will raise by itself }
/** * {@inheritDoc} */ @Override public void setColumnMargin(int aMargin) { columnMargin = aMargin; delegate.setColumnMargin(aMargin); // the event will raise by itself }
@Override public void setColumnMargin(int newMargin) { delegate.setColumnMargin(newMargin); }
public static JTable createMultipleRenderingTable(TableModel model) { JTable table = new JTable(model); table.getColumnModel().setColumnMargin(3); return table; }
public static JTable createMultipleRenderingTable(TableModel model) { JTable table = new JTable(model); table.getColumnModel().setColumnMargin(3); return table; }
/** * Sets the margin between columns. * * Convenience to expose column model properties through * <code>JXTable</code> api. * * @param value margin between columns; must be greater than or equal to * zero. * @see #getColumnMargin() * @see TableColumnModel#setColumnMargin(int) */ public void setColumnMargin(int value) { getColumnModel().setColumnMargin(value); }
/** * Sets the margin between columns. * * Convenience to expose column model properties through * <code>JXTable</code> api. * * @param value margin between columns; must be greater than or equal to * zero. * @see #getColumnMargin() * @see TableColumnModel#setColumnMargin(int) */ public void setColumnMargin(int value) { getColumnModel().setColumnMargin(value); }
/** * Sets the margin between columns. * * Convenience to expose column model properties through * <code>JXTable</code> api. * * @param value margin between columns; must be greater than or equal to * zero. * @see #getColumnMargin() * @see TableColumnModel#setColumnMargin(int) */ public void setColumnMargin(int value) { getColumnModel().setColumnMargin(value); }
/** * Sets the margin between columns. * * Convenience to expose column model properties through * <code>JXTable</code> api. * * @param value margin between columns; must be greater than or equal to * zero. * @see #getColumnMargin() * @see TableColumnModel#setColumnMargin(int) */ public void setColumnMargin(int value) { getColumnModel().setColumnMargin(value); }
/** * Sets the margin between columns. * * Convenience to expose column model properties through * <code>JXTable</code> api. * * @param value margin between columns; must be greater than or equal to * zero. * @see #getColumnMargin() * @see TableColumnModel#setColumnMargin(int) */ public void setColumnMargin(int value) { getColumnModel().setColumnMargin(value); }
public PluginInfoTable() { super(new PluginInfoTableModel()); setRowHeight(getRowHeight() + 10); getColumnModel().setColumnMargin(6); setGridColor(Color.LIGHT_GRAY); setShowHorizontalLines(true); setShowVerticalLines(false); getColumnModel().getColumn(1).setMaxWidth(80); getColumnModel().getColumn(2).setMaxWidth(80); } }
UsersInfoTable(String[] headers) { super(headers); getColumnModel().setColumnMargin(0); setSelectionBackground(Table.SELECTION_COLOR); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); setRowSelectionAllowed(true); } }
public WeasisAboutBox(Frame owner) { super(owner, String.format(Messages.getString("WeasisAboutBox.about"), AppProperties.WEASIS_NAME), true); //$NON-NLS-1$ sysTable = new JTable(new SimpleTableModel(new String[] { Messages.getString("WeasisAboutBox.prop"), //$NON-NLS-1$ Messages.getString("WeasisAboutBox.val") }, //$NON-NLS-1$ createSysInfo())); sysTable.getColumnModel().setColumnMargin(5); JMVUtils.formatTableHeaders(sysTable, SwingConstants.CENTER); init(); pack(); }
public RoomList() { super(new String[] { " ", Res.getString("title.name"), Res.getString("title.address"), Res.getString("title.occupants") }); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(0).setMaxWidth(30); getColumnModel().getColumn(3).setMaxWidth(80); setSelectionBackground(Table.SELECTION_COLOR); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); setRowSelectionAllowed(true); // setSortable(true); addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { enterRoom(); } } public void mouseReleased(MouseEvent e) { checkPopup(e); } public void mousePressed(MouseEvent e) { checkPopup(e); } }); }
public PluginInfoTable() { super(new PluginInfoTableModel()); setRowHeight(getRowHeight() + 10); getColumnModel().setColumnMargin(6); setGridColor(Color.LIGHT_GRAY); setShowHorizontalLines(true); } }
private void createRowHeader() { RowHeaderAdapter adapter = new RowHeaderAdapter(getTableModel()); rowHeader = new JTable(adapter, null, getRowSelectionModel()); rowHeader.addPropertyChangeListener("UI", adapter); rowHeader.setAutoCreateColumnsFromModel(false); rowHeader.setRowMargin(0); rowHeader.getColumnModel().setColumnMargin(0); rowHeader.setFocusable(false); TreeTable.updateRowHeaderRenderer(rowHeader); int ht = getRowHeight(); if (ht > 0) { rowHeader.setRowHeight(ht); } else { updateRowHeaderHeights(0, getRowCount()); } }
public PluginInfoTable() { super(new PluginInfoTableModel()); setRowHeight(getRowHeight() + 10); getColumnModel().setColumnMargin(6); setGridColor(Color.LIGHT_GRAY); setShowHorizontalLines(true); } }
CloudDebuggerTable() { setModel(new SnapshotsModel(CloudDebugHistoricalSnapshots.this, null, null)); setTableHeader(null); setShowGrid(false); setRowMargin(0); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(1).setCellRenderer(new SnapshotTimeCellRenderer()); getColumnModel().getColumn(2).setCellRenderer(new DefaultRenderer()); getColumnModel().getColumn(3).setCellRenderer(new DefaultRenderer()); getColumnModel().getColumn(4).setCellRenderer(new MoreCellRenderer()); resetDefaultFocusTraversalKeys(); setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN); setPreferredScrollableViewportSize(new Dimension(WINDOW_WIDTH_PX, WINDOW_HEIGHT_PX)); setAutoCreateColumnsFromModel(false); getEmptyText().setText(StackdriverDebuggerBundle.getString("clouddebug.nosnapshots")); addMouseListener(new SnapshotClicker()); addMouseMotionListener(new CursorSwitcher()); }
public JiveTable(String[] headers, Integer[] columnsToUseRenderer) { tableModel = new JiveTable.JiveTableModel(headers, 0, false); this.setModel(tableModel); getTableHeader().setReorderingAllowed(false); setGridColor(java.awt.Color.white); setRowHeight(20); getColumnModel().setColumnMargin(0); setSelectionBackground(new java.awt.Color(57, 109, 206)); setSelectionForeground(java.awt.Color.white); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); setRowSelectionAllowed(false); }
protected JTable createAndConfigureTable() { TableColumnModel cm = treeTable.getColumnModel(); JTable table = createTable(treeTable.getTreeTableModel(), cm, treeTable.getRowSelectionModel()); table.setOpaque(false); table.setFillsViewportHeight(true); table.setShowHorizontalLines(false); table.setRowMargin(0); if (cm == null) { cm = table.getColumnModel(); cm.setColumnMargin(isNimbus() ? 0 : 3); int hc = treeTable.getTreeColumnModel().getHierarchicalColumn(); if (hc >= 0) cm.getColumn(hc).setPreferredWidth(150); treeTable.setColumnModel(cm); } table.setShowVerticalLines(false); table.setRowHeight(20); table.setColumnModel(new ColumnModelAdapter(cm)); return table; }