Está en la página 1de 26

if (opcion_Producto1.getSelectedIndex() >= 1 && opcion_Producto2.

getSelectedIndex()
>= 1 && opcion_Producto3.getSelectedIndex() >= 1 &&
opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1 &&
opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex() >=
1 && opcion_Producto8.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Producto6.setText("HP PAVILION GAMING 16-A0001LA");
mostrar_Producto7.setText("LAPTOP HP ENVY 15-DR1001LA");
mostrar_Producto8.setText("HUAWEI MATEBOOK 13");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Cantidad6.setText("" + op6);
mostrar_Cantidad7.setText("" + op7);
mostrar_Cantidad8.setText("" + op8);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));
mostrar_Total2.setText("$" + String.format("%.2f", resultp2));
mostrar_Total3.setText("$" + String.format("%.2f", resultp3));
mostrar_Total4.setText("$" + String.format("%.2f", resultp4));
mostrar_Total5.setText("$" + String.format("%.2f", resultp5));
mostrar_Total6.setText("$" + String.format("%.2f", resultp6));
mostrar_Total7.setText("$" + String.format("%.2f", resultp7));
mostrar_Total8.setText("$" + String.format("%.2f", resultp8));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1 &&
opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Producto6.setText("HP PAVILION GAMING 16-A0001LA");
mostrar_Producto7.setText("LAPTOP HP ENVY 15-DR1001LA");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Cantidad6.setText("" + op6);
mostrar_Cantidad7.setText("" + op7);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));
mostrar_Total2.setText("$" + String.format("%.2f", resultp2));
mostrar_Total3.setText("$" + String.format("%.2f", resultp3));
mostrar_Total4.setText("$" + String.format("%.2f", resultp4));
mostrar_Total5.setText("$" + String.format("%.2f", resultp5));
mostrar_Total6.setText("$" + String.format("%.2f", resultp6));
mostrar_Total7.setText("$" + String.format("%.2f", resultp7));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1 &&
opcion_Producto6.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Producto6.setText("HP PAVILION GAMING 16-A0001LA");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Cantidad6.setText("" + op6);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));
mostrar_Total2.setText("$" + String.format("%.2f", resultp2));
mostrar_Total3.setText("$" + String.format("%.2f", resultp3));
mostrar_Total4.setText("$" + String.format("%.2f", resultp4));
mostrar_Total5.setText("$" + String.format("%.2f", resultp5));
mostrar_Total6.setText("$" + String.format("%.2f", resultp6));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1
&& opcion_Producto5.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-
GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Producto5.setText("LAPTOP ACER NITRO 5");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Cantidad5.setText("" + op5);
mostrar_Total1.setText("$" + String.format("%.2f",
resultp1));
mostrar_Total2.setText("$" + String.format("%.2f",
resultp2));
mostrar_Total3.setText("$" + String.format("%.2f",
resultp3));
mostrar_Total4.setText("$" + String.format("%.2f",
resultp4));
mostrar_Total5.setText("$" + String.format("%.2f",
resultp5));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-
GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Producto4.setText("HUAWEI MATEBOOK D14");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Cantidad4.setText("" + op4);
mostrar_Total1.setText("$" + String.format("%.2f",
resultp1));
mostrar_Total2.setText("$" + String.format("%.2f",
resultp2));
mostrar_Total3.setText("$" + String.format("%.2f",
resultp3));
mostrar_Total4.setText("$" + String.format("%.2f",
resultp4));
} else {
if (opcion_Producto1.getSelectedIndex() >= 1 &&
opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("HP LAPTOP - 15-
GW0012LA");
mostrar_Producto2.setText("LAPTOP ASUS -
G512LIHN054T-GAMING");
mostrar_Producto3.setText("MACBOOK AIR");
mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op2);
mostrar_Cantidad3.setText("" + op3);
mostrar_Total1.setText("$" + String.format("%.2f",
resultp1));
mostrar_Total2.setText("$" + String.format("%.2f",
resultp2));
mostrar_Total3.setText("$" + String.format("%.2f",
resultp3));
} else {// CONDICION DE 8-7-6
if (opcion_Producto8.getSelectedIndex() >= 1 &&
opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("HP PAVILION GAMING
16-A0001LA");
mostrar_Producto2.setText("LAPTOP HP ENVY 15-
DR1001LA");
mostrar_Producto3.setText("HUAWEI MATEBOOK
13");
mostrar_Cantidad1.setText("" + op6);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp6));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-5
if (opcion_Producto8.getSelectedIndex() >= 1 &&
opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex() >=
1) {
mostrar_Producto1.setText("LAPTOP ACER
NITRO 5");
mostrar_Producto2.setText("LAPTOP HP ENVY
15-DR1001LA");
mostrar_Producto3.setText("HUAWEI MATEBOOK
13");
mostrar_Cantidad1.setText("" + op5);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp5));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-4
if (opcion_Producto8.getSelectedIndex() >=
1 && opcion_Producto7.getSelectedIndex() >= 1 &&
opcion_Producto4.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HUAWEI
MATEBOOK D14");
mostrar_Producto2.setText("LAPTOP HP
ENVY 15-DR1001LA");
mostrar_Producto3.setText("HUAWEI
MATEBOOK 13");
mostrar_Cantidad1.setText("" + op4);
mostrar_Cantidad2.setText("" + op7);
mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp4));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-3
if (opcion_Producto8.getSelectedIndex()
>= 1 && opcion_Producto7.getSelectedIndex() >= 1 &&
opcion_Producto3.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("MACBOOK
AIR");
mostrar_Producto2.setText("LAPTOP
HP ENVY 15-DR1001LA");
mostrar_Producto3.setText("HUAWEI
MATEBOOK 13");
mostrar_Cantidad1.setText("" +
op3);
mostrar_Cantidad2.setText("" +
op7);
mostrar_Cantidad3.setText("" +
op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp3));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-2
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex() >=
1 && opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");


mostrar_Cantidad1.setText("" +
op2);
mostrar_Cantidad2.setText("" +
op7);
mostrar_Cantidad3.setText("" +
op8);
mostrar_Total1.setText("$" +
String.format("%.2f", resultp2));
mostrar_Total2.setText("$" +
String.format("%.2f", resultp7));
mostrar_Total3.setText("$" +
String.format("%.2f", resultp8));
} else {// CONDICION DE 8-7-1
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex() >=
1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op7);

mostrar_Cantidad3.setText("" + op8);
mostrar_Total1.setText("$"
+ String.format("%.2f", resultp1));
mostrar_Total2.setText("$"
+ String.format("%.2f", resultp7));
mostrar_Total3.setText("$"
+ String.format("%.2f", resultp8));
} else {// CONDICION DE 8-6-5
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1 && opcion_Producto5.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ACER NITRO 5");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001L");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op5);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp5));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));


} else {// CONDICION DE 8-
6-4
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001L");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));


} else {// CONDICION
DE 8-6-3
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1 && opcion_Producto3.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001L");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));


} else {//
CONDICION DE 8-6-2
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1 && opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001L");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op6);
mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));


} else {//
CONDICION DE 8-6-1
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex() >=
1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001L");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));


} else {//
CONDICION DE 8-5-4
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex() >=
1 && opcion_Producto4.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op5);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));


} else
{// CONDICION DE 8-5-3
if
(opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex() >=
1 && opcion_Producto3.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("MACBOOK AIR");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op5);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));


}
else {// CONDICION DE 8-5-2

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1 && opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op5);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-5-1

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op5);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));


mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-4-3

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1 && opcion_Producto3.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("HUAWEI MATEBOOK D14");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op4);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp4));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-4-2

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1 && opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("HUAWEI MATEBOOK D14");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op4);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp4));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-4-1

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("HUAWEI MATEBOOK D14");


mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op4);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp4));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-3-2

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex()


>= 1 && opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("MACBOOK AIR");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op3);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp3));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-3-1

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex()


>= 1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("MACBOOK AIR");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op3);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp3));


mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-2-1

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto3.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op2);

mostrar_Cantidad3.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp2));

mostrar_Total3.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 7-6-5

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex()


>= 1 && opcion_Producto5.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ACER NITRO 5");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op5);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp5));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-6-4

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex()


>= 1 && opcion_Producto4.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");


mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-6-3

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex()


>= 1 && opcion_Producto3.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-6-2

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex()


>= 1 && opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-6-1


if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex()
>= 1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op6);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-5-4

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1 && opcion_Producto4.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op5);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-5-3

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op5);
mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-5-2

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1 && opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op5);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-5-1

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1 && opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op5);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-4-3

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1 && opcion_Producto3.getSelectedIndex() >= 1) {
mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("HUAWEI MATEBOOK D14");

mostrar_Producto3.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op4);

mostrar_Cantidad3.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp4));

mostrar_Total3.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 8-7

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto7.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Producto2.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op7);

mostrar_Cantidad2.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp7));

mostrar_Total2.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-6

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Producto2.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op6);

mostrar_Cantidad2.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp6));

mostrar_Total2.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-5

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ACER NITRO 5");


mostrar_Producto2.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op5);

mostrar_Cantidad2.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp5));

mostrar_Total2.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-4

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-3

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-2

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));


mostrar_Total2.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 8-1

if (opcion_Producto8.getSelectedIndex() >= 1 && opcion_Producto1.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION DE 7-6

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto6.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op6);

mostrar_Cantidad2.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp6));

mostrar_Total2.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-5

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ACER NITRO 5");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op5);

mostrar_Cantidad2.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp5));

mostrar_Total2.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-4

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1) {
mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-3

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-2

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 7-1

if (opcion_Producto7.getSelectedIndex() >= 1 && opcion_Producto1.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op7);
mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION DE 6-5

if (opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto5.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ACER NITRO 5");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Cantidad1.setText("" + op5);

mostrar_Cantidad2.setText("" + op6);

mostrar_Total1.setText("$" + String.format("%.2f", resultp5));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

} else {// CONDICION DE 6-4

if (opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op6);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

} else {// CONDICION DE 6-3

if (opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op6);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

} else {// CONDICION DE 6-2

if (opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1) {
mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op6);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

} else {// CONDICION DE 6-1

if (opcion_Producto6.getSelectedIndex() >= 1 && opcion_Producto1.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op6);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp6));

} else {// CONDICION DE 5-4

if (opcion_Producto5.getSelectedIndex() >= 1 && opcion_Producto4.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Cantidad1.setText("" + op4);

mostrar_Cantidad2.setText("" + op5);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

} else {// CONDICION DE 5-3

if (opcion_Producto5.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op5);
mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

} else {// CONDICION DE 5-2

if (opcion_Producto5.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op5);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

} else {// CONDICION DE 5-1

if (opcion_Producto5.getSelectedIndex() >= 1 && opcion_Producto1.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("LAPTOP ACER NITRO 5");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op5);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp5));

} else {// CONDICION DE 4-3

if (opcion_Producto4.getSelectedIndex() >= 1 && opcion_Producto3.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Producto2.setText("HUAWEI MATEBOOK D14");

mostrar_Cantidad1.setText("" + op3);

mostrar_Cantidad2.setText("" + op4);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

mostrar_Total2.setText("$" + String.format("%.2f", resultp4));

} else {// CONDICION DE 4-2

if (opcion_Producto4.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("HUAWEI MATEBOOK D14");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op4);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp4));

} else {// CONDICION DE 4-1

if (opcion_Producto4.getSelectedIndex() >= 1 && opcion_Producto1.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("HUAWEI MATEBOOK D14");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op4);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp4));

} else {// CONDICION DE 3-2

if (opcion_Producto3.getSelectedIndex() >= 1 && opcion_Producto2.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Producto2.setText("MACBOOK AIR");

mostrar_Cantidad1.setText("" + op2);

mostrar_Cantidad2.setText("" + op3);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

mostrar_Total2.setText("$" + String.format("%.2f", resultp3));

} else {// CONDICION DE 3-1

if (opcion_Producto3.getSelectedIndex() >= 1 && opcion_Producto1.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("MACBOOK AIR");

mostrar_Cantidad1.setText("" + op1);
mostrar_Cantidad2.setText("" + op3);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp3));

} else {// CONDICION DE 2-1

if (opcion_Producto2.getSelectedIndex() >= 1 && opcion_Producto1.getSelectedIndex()


>= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Producto2.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Cantidad1.setText("" + op1);

mostrar_Cantidad2.setText("" + op2);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

mostrar_Total2.setText("$" + String.format("%.2f", resultp2));

} else {// CONDICION 8

if (opcion_Producto8.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK 13");

mostrar_Cantidad1.setText("" + op8);

mostrar_Total1.setText("$" + String.format("%.2f", resultp8));

} else {// CONDICION 7

if (opcion_Producto7.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP HP ENVY 15-DR1001LA");

mostrar_Cantidad1.setText("" + op7);

mostrar_Total1.setText("$" + String.format("%.2f", resultp7));

} else {// CONDICION 6

if (opcion_Producto6.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP PAVILION GAMING 16-A0001LA");

mostrar_Cantidad1.setText("" + op6);

mostrar_Total1.setText("$" + String.format("%.2f", resultp6));

} else {// CONDICION 5

if (opcion_Producto5.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ACER NITRO 5");


mostrar_Cantidad1.setText("" + op5);

mostrar_Total1.setText("$" + String.format("%.2f", resultp5));

} else {// CONDICION 4

if (opcion_Producto4.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HUAWEI MATEBOOK D14");

mostrar_Cantidad1.setText("" + op4);

mostrar_Total1.setText("$" + String.format("%.2f", resultp4));

} else {// CONDICION 3

if (opcion_Producto3.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("MACBOOK AIR");

mostrar_Cantidad1.setText("" + op3);

mostrar_Total1.setText("$" + String.format("%.2f", resultp3));

} else {// CONDICION 2

if (opcion_Producto2.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("LAPTOP ASUS - G512LIHN054T-GAMING");

mostrar_Cantidad1.setText("" + op2);

mostrar_Total1.setText("$" + String.format("%.2f", resultp2));

} else {// CONDICION 1

if (opcion_Producto1.getSelectedIndex() >= 1) {

mostrar_Producto1.setText("HP LAPTOP - 15-GW0012LA");

mostrar_Cantidad1.setText("" + op1);

mostrar_Total1.setText("$" + String.format("%.2f", resultp1));

}
}

}
}

}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}

También podría gustarte