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) {
2626 jpnOpciones .add (jtfFacEscY );
2727 javax .swing .JButton jbtEscalation = new javax .swing .JButton ("Escalar" );
2828 jbtEscalation .addActionListener ((java .awt .event .ActionEvent e ) -> {
29- if (jtfFacEscX .getText ().equals ( "" ) || jtfFacEscY .getText ().equals ( "" )) {
29+ if (jtfFacEscX .getText ().isEmpty ( ) || jtfFacEscY .getText ().isEmpty ( )) {
3030 JOptionPane .showMessageDialog (Escalation .this , "Especifique la escala" ,
3131 "Mensaje" , JOptionPane .INFORMATION_MESSAGE );
3232 } else {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public Translation(java.awt.Shape shp) {
2929 jpnOpciones .add (new javax .swing .JLabel (">, " ));
3030 javax .swing .JButton jbtTrasladar = new javax .swing .JButton ("Trasladar" );
3131 jbtTrasladar .addActionListener ((java .awt .event .ActionEvent e ) -> {
32- if (jtfX .getText ().equals ( "" ) || jtfY .getText ().equals ( "" ))
32+ if (jtfX .getText ().isEmpty ( ) || jtfY .getText ().isEmpty ( ))
3333 JOptionPane .showMessageDialog (Translation .this , "Especifique el vector de traslación" ,
3434 "Mensaje" , JOptionPane .INFORMATION_MESSAGE );
3535 else {
You can’t perform that action at this time.
0 commit comments