Questions tagged as 'java'

1
answer

Why does the size of the JFrame exceed the size of its ContentPane, even if it has a defined size?

I noticed a strange behavior between containers in the swing. To exemplify the test, I created a JFrame and a JPanel , and set the panel to contentPane of JFrame . Set the preferred and maximum size of the JPanel t...
asked by 10.05.2017 / 20:00
0
answers

Runs in eclipse but when the jar does not

package teste; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import javax.swing.JOptionPane; public class Mover {...
asked by 29.12.2017 / 22:37
1
answer

.txt does not show old messages, takes only the last one and displays

What the application consists of: saves the result of a question (qtd hit and qtd error) strong> on another screen. What the application is doing : Saves everything and only displays the result of the moment the application opens, it ig...
asked by 29.12.2017 / 22:32
1
answer

Send a command without refreshing the page

I'm developing a web application using PlayFramework, and I'm having a problem clicking the command I would like to display an alert and not redirect the page as it is doing, redirecting to a blank screen. Instead, just show the alert that the c...
asked by 29.12.2017 / 22:11
1
answer

Float with null value Spring

I have an application with Spring Data. A Call the findAll () method of Spring, there are null values in the database. When doing the set of the object the field comes with null value by triggering the error message: Can not set float field br.c...
asked by 29.12.2017 / 19:39
0
answers

SOAP Response returning NULL

I'm doing communication with a webservice SOAP, through the IDE I can execute the method calls and capture the values perfectly, however, when running .jar generated by IntelliJ, all returns are null ... I've already tried to generate .jar by ma...
asked by 26.12.2017 / 13:50
0
answers

post with javascript

In my HTML I get this STRING 'Destro' and step into that JS sendPost () <tr> <td>Destros</td> <td><span class="label label-success">${analitico.vitoriasDestro}</span></td> <td><spa...
asked by 26.12.2017 / 23:22
1
answer

Activity closes when calling the OnCreate method to create Spinner

I have a Spinner that if I invoke the method of creating it in OnCreate, the program closes abruptly. I think it should be something null or some variable from another scope, because if I call the method of creating Spinner in the submit button...
asked by 26.12.2017 / 23:52
0
answers

Cast problem

I have the following classes: public class Hotran { @Getter @Setter private String codEmpresa; @Getter @Setter private String nomeEmpresa; @Getter @Setter private Long voo; @Getter @Setter pr...
asked by 27.12.2017 / 22:48
1
answer

Error when spring starts [duplicate]

First of all, I use java 9 and apache tomcat 9 When I start the application this error happens: 18:00:46,804 ERROR DispatcherServlet:492 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating...
asked by 27.12.2017 / 21:25