本文整理了Java中javax.swing.JTable.revalidate()
方法的一些代码示例,展示了JTable.revalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.revalidate()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:revalidate
暂无
代码示例来源:origin: org.geotools/gt-widgets-swing-pending
private void init() {
tab.revalidate();
}
代码示例来源:origin: de.tudarmstadt.ukp.wikipedia/de.tudarmstadt.ukp.wikipedia.revisionmachine
/**
* A call of this method should validate the status of the panels
* components.
*/
@Override
public void validate()
{
this.archiveTable.revalidate();
this.surrogatePanel.validate();
}
代码示例来源:origin: cybergarage/cybergarage-upnp
public void update(Directory dir)
{
conTableModel.update(dir);
conTable.revalidate();
}
}
代码示例来源:origin: org.geotools/gt-widgets-swing-pending
public void setParam(Param[] param) {
this.param = param;
tab.revalidate();
tab.repaint();
value = new Object[param.length];
for(int i=0;i<param.length;i++){
value[i] = param[i].sample;
}
}
代码示例来源:origin: fcrepo3/fcrepo
private void dataChanged() {
if (m_dataChangeListener != null) {
m_dataChangeListener
.actionPerformed(new ActionEvent(this, 0, "dataChanged"));
}
m_editor.revalidate();
m_editor.repaint();
}
代码示例来源:origin: dkpro/dkpro-jwpl
/**
* A call of this method should validate the status of the panels
* components.
*/
@Override
public void validate()
{
this.archiveTable.revalidate();
this.surrogatePanel.validate();
}
代码示例来源:origin: apache/ctakes
public void openParameterFile( final String path ) {
LOGGER.info( "Loading Piper cli values file: " + path );
try ( final BufferedReader reader = new BufferedReader( new InputStreamReader( FileLocator.getAsStream( path ) ) ) ) {
reader.lines().forEachOrdered( this::loadValueLine );
} catch ( IOException ioE ) {
LOGGER.error( ioE.getMessage() );
}
_cliTable.revalidate();
_cliTable.repaint();
}
代码示例来源:origin: raydac/netbeans-mmd-plugin
private void makeModelAndSetToTable(@Nonnull final String text){
final String[] parsed = parseExtensionsAndSortForFirstChar(text);
final String[][] data = new String[parsed.length][1];
for (int i = 0; i < parsed.length; i++) {
data[i] = new String[]{parsed[i]};
}
this.tableExtensions.setModel(new DefaultTableModel(data, new Object[]{"File extensions"}));
this.tableExtensions.revalidate();
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_http
/**
* Initialize the components and layout of this component.
*/
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
JPanel p = this;
p.setLayout(new BorderLayout());
p.add(makeMainPanel(), BorderLayout.CENTER);
// Force a minimum table height of 70 pixels
p.add(Box.createVerticalStrut(70), BorderLayout.WEST);
p.add(makeButtonPanel(), BorderLayout.SOUTH);
table.revalidate();
}
代码示例来源:origin: cytoscape/application
/**
* DOCUMENT ME!
*/
public void refresh() {
// refresh the view
prefsTable.setModel(prefsTM);
prefsTable.clearSelection();
prefsTable.revalidate();
prefsTable.repaint();
}
代码示例来源:origin: dkpro/dkpro-jwpl
@Override
public void actionPerformed(final ActionEvent e)
{
controller.removeArchive(archiveTable.getSelectedRow());
archiveTable.revalidate();
repaint();
}
});
代码示例来源:origin: de.tudarmstadt.ukp.wikipedia/de.tudarmstadt.ukp.wikipedia.revisionmachine
@Override
public void actionPerformed(final ActionEvent e)
{
controller.removeArchive(archiveTable.getSelectedRow());
archiveTable.revalidate();
repaint();
}
});
代码示例来源:origin: tulskiy/musique
private void refreshTable(JTable table) {
table.clearSelection();
table.revalidate();
table.repaint();
}
代码示例来源:origin: BTCPrivate/bitcoin-private-full-node-wallet
public void run() {
table.invalidate();
table.revalidate();
table.repaint();
saveEntriesToDisk();
}
});
代码示例来源:origin: ZencashOfficial/zencash-swing-wallet-ui
public void run() {
table.invalidate();
table.revalidate();
table.repaint();
saveEntriesToDisk();
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-spring-beans
public SpringXMLConfigNamespacesVisual() {
initComponents();
// set the color of the table's JViewport
includesTable.getParent().setBackground(includesTable.getBackground());
TableColumn col1 = includesTable.getColumnModel().getColumn(0);
col1.setMaxWidth(0);
includesTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
includesTable.revalidate();
// springLibrary = SpringUtilities.findSpringLibrary();
}
代码示例来源:origin: org.gephi/appearance-plugin-ui
private void applyColor(Color col) {
for (Object value : values) {
function.getPartition().setColor(value, col);
}
table.revalidate();
table.repaint();
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
/**
* adds a filter to the main filter table
*
* @param filter
* either a ConceptClass or a RelationType or an AttributeName
*/
public void addFilter(Object filter) {
model.addFilter(filter);
filters.clearSelection();
filters.revalidate();
filters.repaint();
}
代码示例来源:origin: org.gephi/appearance-plugin-ui
private void applyPalette(Palette palette) {
PaletteManager.getInstance().addRecentPalette(palette);
Color[] colors = palette.getColors();
int i = 0;
for (Object value : values) {
Color col = colors[i++];
function.getPartition().setColor(value, col);
}
table.revalidate();
table.repaint();
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_ldap
/**
* Initialize the components and layout of this component.
*/
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
setLayout(new BorderLayout());
add(makeLabelPanel(), BorderLayout.NORTH);
add(makeMainPanel(), BorderLayout.CENTER);
// Force a minimum table height of 70 pixels
add(Box.createVerticalStrut(70), BorderLayout.WEST);
add(makeButtonPanel(), BorderLayout.SOUTH);
table.revalidate();
}
}
内容来源于网络,如有侵权,请联系作者删除!