本文整理了Java中javax.swing.JTable.clearSelection()
方法的一些代码示例,展示了JTable.clearSelection()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.clearSelection()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:clearSelection
暂无
代码示例来源:origin: stackoverflow.com
from.clearSelection();
代码示例来源:origin: org.netbeans.api/org-openide-explorer
@Override
public void clearSelection() {
if (!ignoreClearSelection) {
super.clearSelection();
}
}
代码示例来源:origin: org.orbisgis/orbisgis-view
/**
* Clear the table selection
*/
public void onMenuClearSelection() {
table.clearSelection();
}
代码示例来源:origin: org.activecomponents.jadex/jadex-tools-bpmn
/**
* Clear the selection in the gui.
*/
public void clearSelectedRules()
{
list.clearSelection();
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_http
@Override
public void resetTextToFind() {
lastPosition = -1;
if(tableParams != null) {
tableParams.clearSelection();
}
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void actionPerformed(ActionEvent e) {
m_searchResults.clear();
m_searchField.setText("");
m_searchHitsLab.setText("");
m_table.clearSelection();
updateTable();
updateInstallUninstallButtonEnablement();
}
});
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void actionPerformed(ActionEvent e) {
m_searchResults.clear();
m_searchField.setText("");
m_searchHitsLab.setText("");
m_table.clearSelection();
updateTable();
updateInstallUninstallButtonEnablement();
}
});
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void actionPerformed(ActionEvent e) {
m_searchResults.clear();
m_searchField.setText("");
m_searchHitsLab.setText("");
m_table.clearSelection();
updateTable();
updateInstallUninstallButtonEnablement();
}
});
代码示例来源:origin: stackoverflow.com
public class Renderer extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
if (table.getValueAt(row, column) == null && isSelected) {
table.clearSelection();
return super.getTableCellRendererComponent(table, value, false, false,
row, column);
} else {
return super.getTableCellRendererComponent(table, value, isSelected,
hasFocus, row, column);
}
}
代码示例来源:origin: openpnp/openpnp
public static void selectNextTableRow(JTable table){
int index = table.getSelectedRow();
if (index == -1){
index = 0;
}
table.clearSelection();
if (++index > table.getRowCount()-1){
index = 0;
}
table.addRowSelectionInterval(index, index);
}
代码示例来源:origin: tonikelope/megabasterd
private void add_elc_account_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_add_elc_account_buttonActionPerformed
DefaultTableModel model = (DefaultTableModel) elc_accounts_table.getModel();
model.addRow(new Object[]{"", "", ""});
elc_accounts_table.clearSelection();
remove_elc_account_button.setEnabled(true);
}//GEN-LAST:event_add_elc_account_buttonActionPerformed
代码示例来源:origin: tonikelope/megabasterd
private void add_mega_account_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_add_mega_account_buttonActionPerformed
DefaultTableModel model = (DefaultTableModel) mega_accounts_table.getModel();
model.addRow(new Object[]{"", ""});
mega_accounts_table.clearSelection();
remove_mega_account_button.setEnabled(true);
}//GEN-LAST:event_add_mega_account_buttonActionPerformed
代码示例来源:origin: net.sf.jt400/jt400
/**
Loads the information from the resource list.
**/
public void load()
{
table_.clearSelection();
model_.load();
}
代码示例来源:origin: net.sf.jt400/jt400
/**
Loads the information from the system.
**/
public void load ()
{
table_.clearSelection ();
model_.load ();
}
代码示例来源:origin: openpnp/openpnp
/**
* Select the last row in a table. Handy for selecting a row that was just added.
*
* @param table
*/
public static void selectLastTableRow(JTable table) {
table.clearSelection();
int index = table.getRowCount() - 1;
index = table.convertRowIndexToView(index);
table.addRowSelectionInterval(index, index);
}
代码示例来源:origin: omegat-org/omegat
@Override
protected void initFromPrefs() {
temporaryPreferences.clear();
panel.colorStylesTable.repaint();
panel.colorStylesTable.clearSelection();
onSelectionChanged();
}
代码示例来源:origin: openpnp/openpnp
public static void selectFirstTableRow(JTable table) {
table.clearSelection();
int index = 0;
index = table.convertRowIndexToView(index);
table.addRowSelectionInterval(index, index);
}
代码示例来源:origin: nl.cloudfarming.client/planning-tactical
/**
* @param selectedCropProtections
*/
public void setSelectedCropProtectionTasks(String[][] selectedCropProtectionTasks) {
this.selectedCropProtectionTasks = selectedCropProtectionTasks.clone();
summaryTableModel.setData(this.selectedCropProtectionTasks);
summaryTable.clearSelection();
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void actionPerformed(ActionEvent e) {
Mask[] selectedMasks = getMaskForm().getSelectedMasks();
getMaskForm().getMaskTable().clearSelection();
RasterDataNodeDeleter.deleteRasterDataNodes(selectedMasks);
}
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* User pressed a header button; change the key value to match (and reorder).
*/
public void valueChanged(ListSelectionEvent e)
{
if (e.getFirstIndex() == e.getLastIndex())
if (e.getFirstIndex() > 0) // Column 0 is the form button
this.clickColumn(e.getFirstIndex());
JTable control = (JTable)m_gridScreen.getScreenFieldView().getControl();
control.clearSelection(); // Column selections not allowed
}
/**
内容来源于网络,如有侵权,请联系作者删除!