Call values of a class using a value obtained in a jtextfield

1

I need a little help ...

I have a jframe in which I call another jframe, with this I capture in a jtexfiel a certain text.

What I need is for that jtexfiel to call the values of another jframe.

for example: the uroanalysis class has color, appearance, density and ph I want that when I get the text uroanalysis in my jtexfield I can call its values.

    
asked by Yan Carlos 17.03.2018 в 22:37
source

2 answers

1

Without putting your code you can not give a good answer. I recommend you look at the JTEXTFIELD documentation here

The method would be getText ().

    
answered by 18.03.2018 в 00:31
1

I can not really help you without seeing the code, because I can not understand what you need. But depending on what you put in, I think you could use a callback function, which is invoked when you request the JTextField data.

If you're not sure what it's about, here's a good explanation

The other interpretation is that you want to get the values entered in that JTextField by pressing for example a JButton. In that case it is a bit easier, you have to use the getText () function of the JTextField in question. I advise you to read the documentation, it's all very clear there.

    
answered by 18.03.2018 в 00:36