File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public Escalation(java.awt.Shape shp) {
26
26
jpnOpciones .add (jtfFacEscY );
27
27
javax .swing .JButton jbtEscalation = new javax .swing .JButton ("Escalar" );
28
28
jbtEscalation .addActionListener ((java .awt .event .ActionEvent e ) -> {
29
- if (jtfFacEscX .getText ().equals ( "" ) || jtfFacEscY .getText ().equals ( "" )) {
29
+ if (jtfFacEscX .getText ().isEmpty ( ) || jtfFacEscY .getText ().isEmpty ( )) {
30
30
JOptionPane .showMessageDialog (Escalation .this , "Especifique la escala" ,
31
31
"Mensaje" , JOptionPane .INFORMATION_MESSAGE );
32
32
} else {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public Translation(java.awt.Shape shp) {
29
29
jpnOpciones .add (new javax .swing .JLabel (">, " ));
30
30
javax .swing .JButton jbtTrasladar = new javax .swing .JButton ("Trasladar" );
31
31
jbtTrasladar .addActionListener ((java .awt .event .ActionEvent e ) -> {
32
- if (jtfX .getText ().equals ( "" ) || jtfY .getText ().equals ( "" ))
32
+ if (jtfX .getText ().isEmpty ( ) || jtfY .getText ().isEmpty ( ))
33
33
JOptionPane .showMessageDialog (Translation .this , "Especifique el vector de traslación" ,
34
34
"Mensaje" , JOptionPane .INFORMATION_MESSAGE );
35
35
else {
You can’t perform that action at this time.
0 commit comments