javax.swing.JLabel.update()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中javax.swing.JLabel.update()方法的一些代码示例,展示了JLabel.update()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.update()方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:update

JLabel.update介绍

暂无

代码示例

代码示例来源:origin: IanDarwin/javasrc

@Override
  public void update(Graphics g) {
    System.out.println("update");
    super.update(g);
  }
}

代码示例来源:origin: uk.ac.ebi.intact.app/data-conversion

public void updateProteinProcessedCound( final int newCount ) {
  if ( progressBar == null ) {
    throw new NullPointerException( "The progress bar hasn't been created." );
  }
  // update current element
  current = newCount;
  currentLabel.setText( "Current: " + current );
  currentLabel.update( frame.getGraphics() );
  // update the progress bar
  progressBar.setValue( current );
  frame.setTitle( getWindowsTitle() );
}

代码示例来源:origin: uk.ac.ebi.intact.util/data-conversion

public void updateProteinProcessedCound( final int newCount ) {
  if ( progressBar == null ) {
    throw new NullPointerException( "The progress bar hasn't been created." );
  }
  // update current element
  current = newCount;
  currentLabel.setText( "Current: " + current );
  currentLabel.update( frame.getGraphics() );
  // update the progress bar
  progressBar.setValue( current );
  frame.setTitle( getWindowsTitle() );
}

代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public void updateProteinProcessedCound( final int newCount ) {
  if ( progressBar == null ) {
    throw new NullPointerException( "The progress bar hasn't been created." );
  }
  // update current element
  current = newCount;
  currentLabel.setText( "Current: " + current );
  currentLabel.update( frame.getGraphics() );
  // update the progress bar
  progressBar.setValue( current );
  frame.setTitle( getWindowsTitle() );
}

代码示例来源:origin: uk.ac.ebi.intact.app/data-conversion

public void setStatus( final String status ) {
  // update status
  statusLabel.setText( status );
  statusLabel.update( frame.getGraphics() );
  frame.setTitle( getWindowsTitle() );
}

代码示例来源:origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public void setStatus( final String status ) {
  // update status
  statusLabel.setText( status );
  statusLabel.update( frame.getGraphics() );
  frame.setTitle( getWindowsTitle() );
}

代码示例来源:origin: uk.ac.ebi.intact.util/data-conversion

public void setStatus( final String status ) {
  // update status
  statusLabel.setText( status );
  statusLabel.update( frame.getGraphics() );
  frame.setTitle( getWindowsTitle() );
}

代码示例来源:origin: fiji/Stitching

@Override
  public void itemStateChanged(ItemEvent ie)
  {
    try
    {
      final int state1 = choice1.getSelectedIndex();
      final int state2;
      
      if ( state1 == 4 )
        state2 = 0;
      else
        state2 = choice2.getSelectedIndex();
        
      display.setImage( images[ state1 ][ state2 ].getImage() );
      label.update( label.getGraphics() );
    }
    catch( Exception e ){}
  }
});

代码示例来源:origin: fiji/Stitching

@Override
  public void itemStateChanged(ItemEvent ie)
  {
    try
    {
      final int state1 = choice1.getSelectedIndex();
      final int state2;
      
      if ( state1 == 4 )
        state2 = 0;
      else
        state2 = choice2.getSelectedIndex();
      
      // update the texts in choice2
      choice2.removeAll();
      for ( int i = 0; i < choose2[ state1 ].length; ++i )
        choice2.add( choose2[ state1 ][ i ] );
      
      choice2.select( state2 );
      
      
      display.setImage( images[ state1 ][ state2 ].getImage() );
      label.update( label.getGraphics() );
    }
    catch( Exception e ){}
  }
});

代码示例来源:origin: net.preibisch/multiview-reconstruction

int selected = ( (Choice) gd.getChoices().get( 0 )).getSelectedIndex();
  label.update( label.getGraphics() );
});

相关文章

JLabel类方法