Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Clinica

126 views

Published on

clinica

Published in: Education
  • Be the first to comment

  • Be the first to like this

Clinica

  1. 1. private voidjBtnmostrarActionPerformed(java.awt.event.ActionEventevt) { //TODO add yourhandlingcode here: double b=0.0,in=0.0,s=0.0,t=0.0; if(this.jRadioButton1.isSelected()) { s=100; } if(this.jRadioButton2.isSelected()) { s=150; } if(this.jRadioButton3.isSelected()) { s=50; } if(this.jRadioButton4.isSelected()) { t=30; } if(this.jRadioButton5.isSelected()) { t=50; }
  2. 2. if(this.jRadioButton6.isSelected()) { t=80; } if(this.jCheckBox1.isSelected()) { b=(s+t)*0.30; } else { b=0.0; } in=(s+t)-b; this.jLblbono.setText(String.valueOf(b)); this.jLblservicio.setText(String.valueOf(s)); this.jLblturno.setText(String.valueOf(t)); this.jLbltotal.setText(String.valueOf(in)); } private voidjBtnnuevoActionPerformed(java.awt.event.ActionEventevt) { //TODO add yourhandlingcode here: this.jTxtdni.setText(""); this.jTxtfecha.setText(""); this.jTxthora.setText(""); this.jTxtpaciente.setText("");
  3. 3. this.jRadioButton1.setSelected(false); this.jRadioButton2.setSelected(false); this.jRadioButton3.setSelected(false); this.jRadioButton4.setSelected(false); this.jRadioButton5.setSelected(false); this.jRadioButton6.setSelected(false); this.jCheckBox1.setSelected(false); this.jLblbono.setText(("")); this.jLblservicio.setText(("")); this.jLbltotal.setText(("")); this.jLblturno.setText(""); this.jTxtpaciente.requestFocus(); } private voidjBtnsalirActionPerformed(java.awt.event.ActionEventevt) { //TODO add yourhandlingcode here: System.exit(0); }

×