本文整理了Java中javax.swing.JTable.setEnabled()
方法的一些代码示例,展示了JTable.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.setEnabled()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:setEnabled
暂无
代码示例来源:origin: wiztools/rest-client
@Override
public void disableBody() {
jb_string.setEnabled(false);
jb_file.setEnabled(false);
jb_config.setEnabled(false);
jt.setEnabled(false);
jd_options.setEnabled(false);
}
代码示例来源:origin: wiztools/rest-client
@Override
public void enableBody() {
jb_string.setEnabled(true);
jb_file.setEnabled(true);
jb_config.setEnabled(true);
jt.setEnabled(true);
jd_options.setEnabled(true);
}
代码示例来源:origin: robward-scisys/sldeditor
/**
* Sets the enabled.
*
* @param enabled the new enabled
*/
@Override
public void internalSetEnabled(boolean enabled) {
if (table != null) {
table.setEnabled(enabled);
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
void setChangesEnabled (boolean flag) {
this.changesEnabled = flag;
table.setEnabled(flag);
}
代码示例来源:origin: org.apache.airavata/airavata-xbaya-gui
/**
* @param enabled
*/
public void setEnabled(boolean enabled) {
this.table.setEnabled(enabled);
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core
/**
* If the gui needs to enable/disable the FilePanel, call the method.
*
* @param enable Flag whether FilePanel should be enabled
*/
public void enableFile(boolean enable) {
browse.setEnabled(enable);
files.setEnabled(false);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
private void setUIEnabled(boolean st) {
filterCombo.setEnabled(st);
refreshButton.setEnabled(st);
hostCombo.setEnabled(st);
procTable.setEnabled(st);
}
代码示例来源:origin: jewes/gchisto
private void setComponentsEnabled(boolean enabled) {
addButton.setEnabled(enabled);
renameButton.setEnabled(enabled);
removeButton.setEnabled(enabled);
moveUpButton.setEnabled(enabled);
moveDownButton.setEnabled(enabled);
table.setEnabled(enabled);
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createTableAgeLength() {
$objectMap.put("tableAgeLength", tableAgeLength = new JTable());
tableAgeLength.setName("tableAgeLength");
tableAgeLength.setEnabled(false);
tableAgeLength.setRowHeight(24);
}
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
selectivityTable.setEnabled(isActive());
}
});
代码示例来源:origin: fr.ifremer/isis-fish
@Override
public void processDataBinding() {
tableTargetSpecies.setEnabled(getMetierSeasonInfo() != null);
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-maven-osgi
private void rbDefaultsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbDefaultsActionPerformed
exportTable.setEnabled(false);
exportPersist.setDefault(true);
}//GEN-LAST:event_rbDefaultsActionPerformed
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-maven-osgi
private void rbCustomActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbCustomActionPerformed
exportTable.setEnabled(true);
exportPersist.setDefault(false);
}//GEN-LAST:event_rbCustomActionPerformed
代码示例来源:origin: dgarijo/Widoco
public void stopLoadingAnimation(){
this.barStatus.setVisible(false);
this.barStatus.setIndeterminate(false);
this.backButton.setEnabled(true);
this.nextButton.setEnabled(true);
this.languageButton.setEnabled(true);
this.labelStatusReading.setVisible(false);
this.tableProperties.setEnabled(true);
this.loadMetadataFromOnto.setEnabled(true);
this.loadMetadataFromDefaultConfigFile.setEnabled(true);
this.useLicensiusWSCheckBox.setEnabled(true);
}
代码示例来源:origin: omegat-org/omegat
private void updateEnabledness() {
boolean enabled = isEditable();
panel.filtersTable.setEnabled(enabled);
panel.filtersTable.setFocusable(enabled);
panel.cbRemoveTags.setEnabled(enabled);
panel.cbRemoveSpacesNonseg.setEnabled(enabled);
panel.cbPreserveSpaces.setEnabled(enabled);
panel.cbIgnoreFileContext.setEnabled(enabled);
if (!enabled) {
panel.filtersTable.getSelectionModel().clearSelection();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-jsf
private void resetSectionsTable() {
sectionsTable.setEnabled(false);
sectionsTable.setModel(getNoTemplateTableModel());
sectionsTable.repaint();
}
代码示例来源:origin: senbox-org/snap-desktop
protected void updateUIState() {
boolean productSelected = product != null;
int numSelectedPins = 0;
if (productSelected) {
updatePlacemarkTableSelectionFromView();
numSelectedPins = getNumSelectedPlacemarks();
}
placemarkTable.setEnabled(productSelected);
buttonPane.updateUIState(productSelected, placemarkTable.getRowCount(), numSelectedPins);
}
代码示例来源:origin: hneemann/Digital
/**
* Called if dialog shows data from running model and model had stopped.
*/
public void detachFromRunningModel() {
table.setForeground(Color.BLUE);
table.setToolTipText(Lang.get("msg_dataNotUpdatedAnymore"));
table.setEnabled(false);
}
代码示例来源:origin: chatty/chatty
@Override
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
updateButtons();
// Make table visibily disabled
table.setEnabled(enabled);
table.setFocusable(enabled);
table.setOpaque(enabled);
table.setShowGrid(enabled);
}
代码示例来源:origin: net.sf.sfac/sfac-core
@Override
protected void synchronizeEditableState() {
if (table != null) {
boolean tableEnabled = isEnabled();
table.setEnabled(tableEnabled);
table.setBackground(tableEnabled ? Color.WHITE : Color.LIGHT_GRAY);
table.setForeground(tableEnabled ? Color.BLACK : Color.DARK_GRAY);
table.repaint();
getTableModel().setEditable(isEditable());
}
checkActionStates();
}
内容来源于网络,如有侵权,请联系作者删除!