Questions tagged as 'jtextfield'

2
answers

How to validate if a text field is numeric in Java?

How to validate if a text field is numeric in Java? I have validations for textfields that receive Strings, and it warns me when it's empty. boolean Valida(){ if(txtRFC.getText().equals("")){ javax.swing.JOptionPane.showMessageDial...
asked by 06.06.2018 / 22:46
1
answer

How to check objects in a java cycle? [closed]

I wanted to know if it is possible to do a validation, for example, if I have 3 jtextfield with serial name ejm: jTextField1 jTextField2 jTextField3 (obviously more) and I want to see what they have stored, what can I do in a cycle? and in...
asked by 27.03.2017 / 18:29
1
answer

Delete JTexfield and insert another data

Good I want to delete a JTexfield save that data in my variable num1 and insert another to fill the variable num2. These two will go to a method in the operations class that receives those 2 parameters here part of the code JButton btnmulti =...
asked by 10.02.2017 / 06:32
2
answers

How can I disable a jtextfield for ten seconds in java

Hi, could you tell me which is the best way to disable a jtextfield after the user press enter for a certain time like 10 sec Thanks     
asked by 28.08.2018 / 05:34
1
answer

Problem NaN error or infinity error

Hi, I have a problem with a textfield when I try to show the result of a calculation. I tried converting it to String and everything but it says NaN error or infinity error. I better show you some images to help me. the first image shows the jfr...
asked by 27.09.2017 / 21:33
2
answers

Read a matrix from a text file txt and load it into jtextfield

If someone can help me, I'll thank them. I have a code that reads me a matrix of X by X from a text file that I have saved on my machine, I print it on the console and everything is fine. Now, I need the data from the matrix to upload them...
asked by 22.03.2018 / 04:29
1
answer

Java - Round a float and place it in a jTextField

I have a project in Netbeans based on MVC. In the part of the "ABMProduct" view, I have the following code: private void txtGananciaActionPerformed(java.awt.event.ActionEvent evt) { float pv = 0,...
asked by 16.03.2017 / 15:13
2
answers

Range of Values in JavaFx JtextField

Good and thanks in advance for the help, I need to restrict the values inserted in a JTextField to> 0 and
asked by 16.11.2017 / 17:35
3
answers

Error in JAVA creation of arrayList incompatible types: String can not be converted to branch ----

What does the error mean and how can I solve it? It is a database of a bank in which I have to use a type "branch" but I can not use it add that type To My arrayList ArrayList Array_Asesores = new ArrayList(); Here is the code porfavorrr .....
asked by 07.12.2017 / 16:07
3
answers

I do not get 2 decimals in the jTextField to pass it to a DB!

I'm going crazy and I do not know what to do, to see if someone can help me. I would like that in the jTextField9 I would only get 2 decimals ( 123.45 ), because like this I get many decimals (123.45322222). because then I want the result w...
asked by 24.05.2018 / 15:20