Exemplo n.º 1
0
  /** Creates new form VisualizaLotesDGQ */
  public VisualizaLotesDGQ(java.awt.Frame parent, boolean modal, Timer timerPCP) {
    super(parent, modal);
    initComponents();
    setModal(true);
    setTitle("Visualizaçao do Status dos Jobs");
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    this.setResizable(false);
    /*
     * Ajusta o jframe corretamente na tela...
     */
    this.setSize(
        GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getSize());
    tabela.grabFocus();
    teclasAtalhos();
    pularCampoComEnter();
    alinhamentoTabela();
    alteraComportamentEnterTabela();
    atualizacaoAutomaticaTabela();
    setTimerPCP(timerPCP);

    /*
     * pinta coluna de status
     */
    tabela.getColumnModel().getColumn(0).setCellRenderer(new PintaLinhaTabelaPCP());

    SelectAllTodosCampos.addListeners(this);
    doLayout();
    jLabelTotalPecas.setText(String.valueOf(calculaTotalPecas()));
  }
Exemplo n.º 2
0
 public void ajustaFrameTela() {
   // ajusta o jframe corretamente na tela...
   this.setSize(
       GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds().getSize());
 }