Questions tagged as 'java-8'

1
answer

How can I fill several JTexField with the contents of an ArrayList?

The specific doubt is that you create JRadioButton in a dynamic way, that is, depending on the amount that exists in an ArrayList. From the FileManager class the user information is brought and it is required to show in its respective JTextField...
asked by 20.05.2017 / 21:19
1
answer

Error running a project with tomcat 8

When I try to raise my project and put the address localhost: 8080 / SpringSep I get the following error. This is what it gives in the log feb 06, 2017 9:02:42 AM org.apache.tomcat.util.digester.SetPropertiesRule begin ADV...
asked by 06.02.2017 / 16:06
1
answer

Program with decimals in while

I have the following code: package while2; import javax.swing.JOptionPane; public class While2 { public static void main(String[] args) { int numero; int i=1; int suma=0; int TotalNumeros=3; do...
asked by 11.07.2016 / 23:54
0
answers

JAVA - UBUNTU - Problem with serial ports

I'm a newbie in linux / xubuntu. I need to know in which ttyS * I have connected my RFID reader. My PC has 3 COM ports (COM1, COM2 and COM3). I connected it to COM1 and SUPUSE that corresponded to / dev / ttyS0 but I do not read anything (the so...
asked by 02.01.2019 / 20:29
1
answer

how to find dates in java in a db with jdatachooser

I want to store data in a db but I get an error @Override public List<Ausentismo> list05(Date fechai, Date fechaf, Date fechaMesA, Date fechaMesS) { List<Ausentismo> list05 = null; String sql = "SELECT AU.COD_MOTIVO, AU...
asked by 13.12.2018 / 17:08
0
answers

Subtract dates in java

I would like to be able to subtract two dates that I call from a BBDD but the problem that in some cases does not affect me correctly is the time zone @Override public List<Ausentismo> list(Date fechai, Date fechaf, Date fechaMesA, Dat...
asked by 18.12.2018 / 05:27
4
answers

Can I force Java to use the GMT / UTC + 0 time?

I am working with the APIs of Date and Time Java 8. In my code I am interested in taking the time GMT / UTC + 0 , but picks the one from the computer that is > GMT / UTC + 1 . Can I force Java to do this without having...
asked by 04.12.2018 / 12:45
1
answer

search for data from one table to another and print

Good to everyone, I have two lists that I call from a database of different tables: listat = personNE.list(); listah = historicot2NE.list(); int inter1 = listat.size(); // 81 datos int inter2 = listah.size(); // 18 datos...
asked by 23.11.2018 / 18:21
1
answer

concatenate two outputs for each or make them into one java

Consultation I have two foreach each of 81 records listat = personNE.list(); listap = parametrosEspNE.list(); for(ParametrosEsp pe : listap ){ pw.prinln(String.valueOf(pe.getVALOR()+"|"));...
asked by 15.11.2018 / 18:58
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