Questions tagged as 'java-swing'

1
answer

Update JTable cells in real time

Can the cells of a Jtable be updated while it is on the screen? Type opens the window that has the JTable and it is written in it and then with the info that you put before it, it fills other cells. Is that possible?     
asked by 09.01.2018 / 14:52
1
answer

Does not work dispose () in Java [closed]

This is the main Frame code: import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.*; public class Venta extends JFrame implements ActionListener, ChangeListener, ItemListener { private JLabel micro,...
asked by 17.11.2017 / 13:36
1
answer

Java swing duplicates the JTextField when resizing

Good, I've been studying a bit of user interface design in Java and I have a problem, the case is that when you add a text entry to a JPanel (With JTextField) and change the size of the window , several more cells are created, when I understand...
asked by 26.01.2018 / 12:59
2
answers

Threads to show counter JAVA SWING

I have the next class of Thread public class Hilo extends Thread{ public Hilo(String name) { super(name); } @Override public void run(){ int cantMaxima = Sistema.TIEMPO; in...
asked by 15.11.2017 / 00:27
1
answer

How to make an event by pressing two keys?

I'm doing a program where I want to include keyboard shortcuts. The program in question has a series of jTextFields that I want to fill directly with the keyboard without having to be jumping from field to field, and I also want to be able to do...
asked by 15.10.2017 / 14:10
1
answer

Show Name Java Jframe

I have a query. I have the following java code and I want the button to greet me to capture the name that the user types and when I click on the button, I will show it to me in the Jframe. import java.awt.event.ActionEvent; import java.awt.eve...
asked by 04.09.2017 / 15:04
2
answers

Just paste into a JTextField

I need to do in Java, that in a JTextField only data can be copied, that is: not allow data to be entered directly from the keyboard just allow a data to be copied from another side and pasted into the JTextField. Is this possible?    ...
asked by 03.11.2017 / 14:04
1
answer

Calling a JComboBox from a JFrame from a class

I am working on a desktop application. The functional is realized in a class of a specific package. My code is as follows public void cargarComboCurso() { String url = "jdbc:sqlserver://localhost:1433;databaseName=Escuela";...
asked by 06.09.2017 / 01:36
1
answer

Question Game Find Java Objects

I'm doing a hidden object game in java, where I have an interface with enough label (30 or more) that have an image, and the interface also has 5 buttons which have the names of 5 images of the interface, and with those names look for the image...
asked by 16.07.2017 / 04:21
1
answer

Passing data from one JTable to the fields of another JFrame

How can I do to pass data from one JTable to another JFrame? For example: I have 3 JTextField and 2 JCombobox in a JFrame which are what I should fill in from JTable when pressing in a JFrame different. I...
asked by 23.07.2017 / 05:08