Questions tagged as 'java'

1
answer

How to position a browser inside another JFrame interface?

I'm designing a Java project to simulate a proxy server with authentication that has a single interface, inside which multiple internal frames are arranged. How to position a browser within this JFrame interface? See the project templa...
asked by 19.10.2018 / 15:19
1
answer

not-null property references a null or transient value

When I try to save some city, it shows not-null error, but looking, I can not find a solution looking at the controller, I understand the error, but in my project.    Caused by: org.hibernate.PropertyValueException: not-null property referenc...
asked by 19.10.2018 / 02:18
1
answer

Java, write to a specific line of a .txt file

I've been testing various ways to write data to a variable in a text file (.txt), but I need to know if I can write this variable on a particular line, so I could organize multiple data in the same file by manipulating only the desired line. p...
asked by 05.08.2018 / 07:30
3
answers

how to print a list of numbers with a merged sum?

I have this list of 1 a 10 . [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Code: List <Long> lista = new ArrayList(); for (long a = 1; a <= 10; a++) { lista.add(a); System.out.print(lista); } You would need a merged sum in t...
asked by 07.07.2018 / 01:32
2
answers

Query Syntax Error with RFID Code Filter

You're giving Syntax SQL error in from estoque where cod_rfid = 102 . Note: 102 is the value that is in the RFID tag. String dadoRFID = new String(readBuffer); String Del_inc = dadoRFID.substring(0,1); //Pega o primeiro caractere...
asked by 06.11.2018 / 02:24
1
answer

Relate disciplines and students to a pre-registration system

I'm doing a pre-registration system, and I came across a problem that bothers me a bit: As you can see in the picture, Curso has Disciplinas and Estudantes , only that each student needs to know in which Disciplinas...
asked by 26.07.2018 / 14:27
1
answer

Search for NULL mysql via Java

I want to write a resident in my database via java when one of the searched parameters is NULL , but it turns out I can not figure out how to pass this command. My code is: public Usuario registraSaida(String nome) throws SQLException...
asked by 05.06.2018 / 05:48
1
answer

Doubts the database relationship of an application using spring boot

I am developing an application that aims to register a supplier, in which this supplier is generic (it can be a snack shop, building material store, a pharmacy ... etc) in which it will provide products on the web platform. However, for the fina...
asked by 05.06.2018 / 17:15
1
answer

Retrieve name of mysql tables

I would like to retrieve the name of my tables in java with mysql database. I do not know if it is correct I get a hashcode: (1) model.Campanhas@b5cca49 (2) model.Campanhas@5c369e04 public ArrayList<Object> nameTables(){ try {...
asked by 10.06.2018 / 03:22
1
answer

Receiving a LocalDateTime from an html form

Problem: I'm trying to get a LocalDateTime of this input within a @Controller using a <form> that uses Thymeleaf. <input class="form-control" id="dueDate" type="datetime-local" th:field="*{dueDate}"/> But it alw...
asked by 25.05.2018 / 02:56