// fetures of +/- more details private void buttonPlus0ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_buttonPlus0ActionPerformed EnterDetail0.setVisible(true); EnterDetail1.setVisible(true); buttonPlus0.setEnabled(false); buttonPlus0.setVisible(false); buttonPlus1.setVisible(true); buttonPlus1.setEnabled(true); buttonMinus1.setVisible(true); buttonMinus1.setEnabled(true); buttonMinus2.setEnabled(false); buttonMinus2.setVisible(false); buttonMinus3.setEnabled(false); buttonMinus3.setVisible(false); this.setSize(532, 490); } // GEN-LAST:event_buttonPlus0ActionPerformed
// fill the "more details" fields accordimg the exists private void DetailsFieldsFirstDesplay(int list_lentgh) { if (list_lentgh == 1) { EnterDetail0.setVisible(true); EnterDetail1.setVisible(false); EnterDetail2.setVisible(false); EnterDetail3.setVisible(false); buttonPlus1.setVisible(true); buttonPlus2.setVisible(false); buttonMinus1.setVisible(false); buttonMinus2.setVisible(false); buttonMinus3.setVisible(false); this.setSize(530, 450); } else if (list_lentgh == 2) { EnterDetail0.setVisible(true); EnterDetail1.setVisible(true); buttonPlus0.setEnabled(false); buttonPlus0.setVisible(false); buttonPlus1.setVisible(true); buttonPlus1.setEnabled(true); buttonMinus1.setVisible(true); buttonMinus1.setEnabled(true); buttonMinus2.setEnabled(false); buttonMinus2.setVisible(false); buttonMinus3.setEnabled(false); buttonMinus3.setVisible(false); this.setSize(530, 485); } else if (list_lentgh == 3) { EnterDetail0.setVisible(true); EnterDetail1.setVisible(true); EnterDetail2.setVisible(true); buttonPlus0.setVisible(false); buttonPlus0.setEnabled(false); buttonPlus1.setVisible(false); buttonPlus1.setEnabled(false); buttonPlus2.setVisible(true); buttonPlus2.setEnabled(true); buttonMinus1.setEnabled(false); buttonMinus1.setVisible(false); buttonMinus2.setVisible(true); buttonMinus2.setEnabled(true); buttonMinus3.setEnabled(false); buttonMinus3.setVisible(false); this.setSize(530, 525); } else if (list_lentgh == 4) { EnterDetail0.setVisible(true); EnterDetail1.setVisible(true); EnterDetail2.setVisible(true); EnterDetail3.setVisible(true); buttonPlus0.setVisible(false); buttonPlus0.setEnabled(false); buttonPlus1.setVisible(false); buttonPlus1.setEnabled(false); buttonPlus2.setVisible(false); buttonPlus2.setEnabled(false); buttonMinus1.setEnabled(false); buttonMinus1.setVisible(false); buttonMinus2.setVisible(false); buttonMinus2.setEnabled(false); buttonMinus3.setVisible(true); buttonMinus3.setEnabled(true); this.setSize(530, 565); } }