Questions tagged as 'java-swing'

0
answers

It does not update in value of a JFormattedTextField, when doing field.setText ()

I'm doing campo.setText() , by pressing a button this value is displayed in the interface when it is updated. The problem is that by doing campo.getText() , you get the previous value that was entered using the keyboard, not the v...
asked by 16.04.2018 / 18:14
1
answer

Error can not call getNString () when capturing BD values

I am developing a small application of a private clinic and to enter the application, I first select the patient's identifier through JComboBox . Then, I have a method to fill a arrayList with the patients' data to later fill in...
asked by 02.05.2018 / 20:45
5
answers

[Ljava.lang.Object; can not be cast

I have the following problem, I want to make a query to my db, to bring a list of a related class, all worked with hibernate, but when I want to print on the screen it throws me the following error: Exception in thread "AWT-EventQueue-0" java....
asked by 09.10.2016 / 22:19
1
answer

problem when executing SQL statements

I'm finishing a project, which in a window designed with Java, and within this window with two textArea and one button. You write some SQL statements in the textArea, you select the one you want to execute and when you click on the button depend...
asked by 11.03.2018 / 01:03
2
answers

enum attribute combox

I have an attribute of type enum {V, M} and I have to assign the value through a combox from a swing application that I am doing from another class of another package, the fact is that I do not know how to invoke the attribute from its class to...
asked by 09.03.2018 / 21:08
0
answers

retrieve variable from a swing JLIST

I'm doing an application with java and swing and I need to recover the element marked by the user from a JList. I perform the same steps as in two checkboxes, but when doing for (int i = 0; i < listadoEspecialidades.getModel().getSize(); i+...
asked by 27.02.2018 / 17:45
1
answer

PreparedStatement does not insert data

Good afternoon: I request the collaboration to solve the following problem that I have with two files in java, one is called test and the other connections, the test file has a table that brings the data from the mysql database and with a click...
asked by 07.02.2018 / 20:08
0
answers

How to create swing buttons in run time to each row in my BDD?

You see guys, I have a student table, I want to place each student in a JTable and that each row has a button that when clicked, sends information about the row in which it is. If I do not understand, let me know so I can ask the question better...
asked by 12.02.2018 / 22:12
1
answer

Make a Jpanel visible with a button that is in another class and in another Jpanel

As I already wrote in the title of the question, I am trying to make a JPanel appear with a built-in JTextArea and that in turn this JTextArea write what is in another JPanel. The Jpanel are in different classes. (Below, leave a picture of the i...
asked by 27.01.2018 / 22:58
0
answers

Problem in java (windowBuilder)

I have a problem, my Java program consists of different panels, which are visible or not depending on the selected menu option, but when you start the program when you move the cursor over the panel that appears by default the buttons of other p...
asked by 17.01.2018 / 13:03