Questions tagged as 'java-swing'

1
answer

Java Eclipse Swing: Error compiling an already functional method

Eclipse does not allow me to run my application since it launches the following:    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException       at Conexion.LlenadoCombo (Conexion.java:177) public void LlenadoCombo(JComboBox...
asked by 14.11.2016 / 12:58
1
answer

How would you look for a log of a sql database from java

I have a list that is filled in with the fields that I entered and then saved in the database, the problem is that when I select the button see user I want you to show me only the user information that I have selected from the list but I do not...
asked by 10.12.2017 / 00:53
2
answers

Problem to Close a JFrame from a Button inside a JPanel

Good afternoon, As the title says, my drawback is that I made 2 JPanel that I then added to a JFrame. The problem is that in a JPanel, I have the button that should close me or leave the JFrame invisible, but when placing an event on the b...
asked by 07.11.2017 / 23:51
2
answers

ActionPerformed within MVC

I have a question about a project that I am doing, which is the following: I am being asked for a project with MVC format, I already have the view and the model, I need to perform the ActionPerformed of each button of my project, which are appro...
asked by 30.05.2018 / 22:59
2
answers

Generate numbers for a matrix in java

I need to generate random numbers from 3 to 10 in a matrix of 8x8 without repeating them and since the matrix is something big the other numbers should be placed in 0 an example {0,0,0,0,0,6,0,0} {0,0,3,0,0,0,0,0} {0,0,0,0,0,0,0,9} {0,0,0,4...
asked by 03.12.2018 / 16:02
1
answer

Problems with spool in java

I'm doing a project with four desktop applications in Swing that connect to a database ( Mysql ) that I have on a server. Being three desktop applications where you would have to put the spool configuration. The applications what...
asked by 02.09.2016 / 09:22
1
answer

Move data from one JComboBox to another JComboBox

I want to do exactly that, I have a list and if I select an element in JComboBox a is added to JComboBox b , it happens that when the add occurs in JComboBox b the event is launched and returns the element to me JComboBox...
asked by 20.07.2016 / 13:19
1
answer

Differences and uses of javax.swing.JList and javax.swing.DefaultListModel [closed]

I have been doing a small application where I am using lists and I hit with defaultlistmodel and observing I have seen that they only change in the way of declaring the properties. The issue is that in addition to this there are other difference...
asked by 21.11.2017 / 23:10
2
answers

Can I edit a .Java file?

I need to modify some variables to start a program, these variables are constant during the start of the program I want to start, but at the request of the user can be modified, these variables I have within a file .java but the doubt....
asked by 31.10.2016 / 17:05
1
answer

Copy content from a Jtable to a File.txt

I am entering data at a jTable and through a jButton , I want to copy the information from the rows of jTable into a text file. public NuevaVenta() { initComponents(); Date fecha = new Date(); //fecha y hora actual...
asked by 07.03.2016 / 23:55