Questions tagged as 'jframe'

1
answer

Problem with several && in jFrame

I have the following code where I have to control if a food has x ingredients, the thing is that if you meet the ingredients but you select one more, you also consider it good because the code is as follows if(radioLentejas.isSelected()){...
asked by 17.04.2018 / 09:52
2
answers

Using many JFrame? (the ones Netbeans brings by default)

I do not know if there will be a good practice for this, since I have a screen with a JMenu with many items ->Menu ->Usuario { ->Iniciar sesion ->Registrarse ->Informacion de usuario } ->Ayuda {...
asked by 26.02.2017 / 16:33
1
answer

Update data of a column in JTable without affecting the other data

Good morning. maybe it's something very simple, is there any way to update the data of a column by means of a button? this without affecting the other data of other columns. As you can see in the image, the purpose is to change all the data i...
asked by 15.09.2017 / 18:18
2
answers

Doubt with constructor when creating a JFrame. Java

I have a question at the time of being able to use the methods from a class that inherits from JFrame, like this: class MarcoLibre extends JFrame{ } In the constructor, I can access the methods that inherit from JFrame (and their correspon...
asked by 13.07.2018 / 19:38
1
answer

Applying Thread Race in an interface (it does not refresh)

I quickly explain what I intend, I have two runners running threads simulating running (sum of random value), it is a thread that executes and must for each iteration of the loop in the thread make a setvalue (distance run-time) in progressba...
asked by 04.05.2018 / 22:49
1
answer

Failed to compare the values of a JSpinner. JFrame

I have 2 spinners, each one with its corresponding values taken from a string: SpinnerListModel pal = new SpinnerListModel(palabras ); spinner = new javax.swing.JSpinner(pal); SpinnerListModel word = new SpinnerListMode...
asked by 03.05.2018 / 13:10
1
answer

How to change the java logo of a Jframe in netbeans?

I want to change the java logo which appears in the upper left part of the JFrame window. I use the following code in the Main constructor: Image ico=Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("img/holger2.jpg")); This...
asked by 12.12.2018 / 22:51
3
answers

How can I align the buttons horizontally in Java?

Hi, I would like to know how I can arrange the buttons horizontally for the next window. This is my code: import javax.swing.table.AbstractTableModel; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionLis...
asked by 29.04.2018 / 18:04
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
2
answers

If on Jframe Netbeans

I have a doubt I have executed this program in which in netbeans it makes a judgment that if money is less than total it leaves cantidad no suficiente and, if you re-enter it, and this time it is enough, then the invoice will come out ....
asked by 16.04.2017 / 01:22