Questions tagged as 'jtextfield'

1
answer

how to validate the length of 2 or more jtextfield in a single method?

I have 2 jtextfield and I want to validate the number of characters they type in them text_root_username = new JTextField(); text_root_username.addKeyListener(this);////// text_root_password = new JPasswordField();...
asked by 16.04.2018 / 04:55
1
answer

Math class does not work [closed]

public double getStringToDouble(String x){ return Double.parseDouble(valorMod); } public String getDoubleToString(double x){ cadena = String.valueOf(valorMod); return cadena; } With those methods I transform from String to Double, to...
asked by 22.10.2017 / 01:40
1
answer

How can I fill several JTexField with the contents of an ArrayList?

The specific doubt is that you create JRadioButton in a dynamic way, that is, depending on the amount that exists in an ArrayList. From the FileManager class the user information is brought and it is required to show in its respective JTextField...
asked by 20.05.2017 / 21:19
1
answer

How can I show the content entered in a JTextfield in a JOptionPane (In a form)?

This is the code of my form, the part of the JOptionPane is where I have the problem. // LDVives = Place where you live private void txtNombreActionPerformed(java.awt.event.ActionEvent evt) { txtNo...
asked by 18.12.2018 / 23:39
0
answers

Pass a JtextField to a Jtable

I need to pass the information that is placed in a JtextField to a Jtable this is activated when you click on the voton update someone who can help me please this is my code: import java.awt.event.ActionEvent; import java.awt.event.ActionListe...
asked by 26.07.2018 / 19:53
1
answer

Problem when modifying the value of JTextField

I try to do a simple and simple calculator on my own, but I run into a problem trying to change the value of the JTextField by pressing a button. Here the code: Frame Class: public class Frame extends JFrame{ public Frame(){ setTitl...
asked by 13.06.2018 / 20:53
0
answers

How to detect when an asp textbox changes its content without pressing any key?

What I want to do is that when a textbox changes its content it performs an action, but the user will never see the textbox will be filled automatically, so there will never be a typing for the textbox change. Form 1: jQuery('#some_text_box...
asked by 19.05.2018 / 19:59
1
answer

how to validate a jtextfield from mvc that enter only numbers

An example of this is the validation that a textfield, its length is equal to 4 but, how would you do so that when entering you are only numbers and only letters? public void keyTyped(KeyEvent e) { if(e.getSource().equals(t.getTxtdesc()))...
asked by 08.05.2018 / 06:28
1
answer

Problem with accumulator in Java

This is the first time I have requested your help, I am doing this code as a task and I have not managed to get the accumulator "totaldia" to save the data that the "Shutdown" variable sends. I would appreciate it if you make me see where I fail...
asked by 28.04.2018 / 16:35
1
answer

Capture the text of JTextField - it does not work

I am learning this wonderful and complex language. Following a video course (from youtube) in which is the following exercise: /* * To change this license header, choose License Headers in Project Properties. * To change this template file,...
asked by 22.09.2017 / 01:43