Questions tagged as 'java-swing'

1
answer

Exception in thread "main" java.lang.NoClassDefFoundError: javax / xml / bind / DatatypeConverter

I'm doing an application on a computer, we're 4 and everyone uses Windows except me (Mac). This application uses a database with MySQL . At the beginning I had JDK 10 , now I have the 1.8 (8) . I have two versions of NetBean...
asked by 13.11.2018 / 19:12
1
answer

Transform System.out.println to enter it in the graphic part

Good friends programmers, I have a situation: I am transforming a program that uses System.out.println to print on the screen and I must convert it into its consequent graphic part. Part of the code that I need to transform is: pub...
asked by 13.11.2018 / 22:36
1
answer

Problem showing the data in a JTable

I have the following problem, I was developing a code that would do some calculations with distributions and random numbers that would then be passed to a table in another view that would show the results of the n repetitions of the calculation,...
asked by 12.11.2018 / 06:20
1
answer

Query by the MouseListener and MouseAdapter Java method

I have created a project which contains jtextarea and jlabel , adding to jlabe l the option of transferhandler in order to drag the label and write it in the textarea. My problem is that when I drag this jlabel...
asked by 09.11.2018 / 20:46
0
answers

Send different data from a single frame according to the button that is pressed

My question is this, I have several JButton in my interface and I would like to know if it is possible to call the same JFrame with all the buttons. But depending on which JButton is pressed, the data that is generated or saved in the JFrame are...
asked by 08.11.2018 / 02:32
1
answer

Update JTree

To see if you can help me, I'm doing a small explorer to list a specific directory, I need to know how to get a button or without a button to update, that is, if I add more files in that directory. Do not have to close and reopen the applicati...
asked by 05.11.2018 / 12:21
1
answer

Problems with raising Search window in JAVA

I have a ABM People screen (JinternalFrame). One of the fields on the screen is "City". In the same one when pressing F3 I call a generic search screen ( Jframe ) in the following way: if(e.getKeyCode()==KeyEvent.VK_F3) { Buscador...
asked by 03.11.2018 / 15:25
1
answer

SAVE DATA FROM A COMBO BOX TO MYSQL

I will comment on the problem I have. I have a ComboBox in Java which is connected to a BD (Mysql). The ComboBox loads perfectly the data of the BD, in this case the name of some users. However, when I programmed the 'Save' button I do not know...
asked by 08.11.2018 / 23:36
0
answers

JPanel background is not visible

Initially I was grabbing a chess but I ran into this problem so I simplified the program to ask the question. The Program in question is the following: public class NewClass { public static void main(String[] args) { javax.swing.Swing...
asked by 27.10.2018 / 18:24
1
answer

Save button that serves to update

I appeal to you since I have a question and can not think of anything to solve it. I comment I'm doing a CRUD in Java with the BD Mysql. I have done almost all the buttons, I just need to update. It turns out that I want the Save button to als...
asked by 04.11.2018 / 22:23