Questions tagged as 'java'

1
answer

How to fill a JComboBox in java?

Good day! I have a problem, I am trying to fill a JComboBox from mysql, and I can not! :( The console does not send me an error but it does not show anything either, I'm just starting in this and I do not have much experience! Hopefully someone...
asked by 23.07.2018 / 15:33
2
answers

I can not get 1 object from my database, problem with SQLite and PreparedStatement

I'm doing a system with a full CRUD, the only problem I have is that I can not recover 1 object from my database, I can list all the objects but I do not get only 1, I'm using MVC and java web. Here is the servlet that runs the search @Over...
asked by 24.07.2018 / 15:10
1
answer

Iterator interface, use in ArrayList. Java

I understand that when an interface is implemented all the methods it contains must be implemented, since the methods declared in an interface are abstract and only the header is declared ... That's why I do not fully understand how the iterato...
asked by 21.07.2018 / 20:17
1
answer

Mapping xml to Java Objects - Null Pointer in Class

I'm trying to map an xml to Java classes. It turns out that I get an xml input, and I need to break it down in classes. INPUT XML: <empleado> <nombre>juan</nombre> <segundo_nombre>pablo</segundo_nombre> &...
asked by 23.07.2018 / 17:17
1
answer

Route error with subreports in other computers

In the development of a Java system I used iReport Designer 5.6.0 to generate some reports. However, I have had a problem with reports that contain subreports. I have a parent report that also contains a subreport that would be the detail,...
asked by 25.07.2018 / 19:17
1
answer

Calculator in Java

I have a little doubt about a graphing calculator that I'm doing in java. What happens is that I have everything done, but there is a problem pressing the same button and operate all the numbers. Then I leave the code: private void igualAc...
asked by 19.07.2018 / 01:57
1
answer

Help to understand the following method?

I have the following method in my program, and although I understand it a bit I can not capture its logic completely. I am a newbie with the programming of Java.Swing and NetBeans and I am learning alone but apparently the method is a bit comple...
asked by 08.07.2018 / 04:06
1
answer

Scrollbar

I want to put a scroll bar both to the right and to the bottom I know I have to put JScrollPane but I do not know where I would put it or how. This is the code: package bonos1; import java.awt.BorderLayout; import java.awt.Color; imp...
asked by 06.07.2018 / 17:33
2
answers

how to separate code in eclipse?

Suppose I have main.java and code.java in the ide processing you can open a tab and write a function and then use it in draw () try doing something like this in eclipse in main.java I have public class main { public static void m...
asked by 30.07.2018 / 23:28
1
answer

How to make multiple sql statements from java? -closed

[! [] [1]] This code executes a single sql statement. public Connection getConnexion(String query){ Connection cnx = null; try{ Class.forName(driver); PreparedStatement ps= null; cnx = (Connection) DriverManager.getConnection(url,usuario,pa...
asked by 05.07.2018 / 01:33