Questions tagged as 'java'

1
answer

TabPane: Changing Tabs by clicking the JavaFX button

I do not know if I'm in the right place but it goes like this, people I started learning JavaFX a short time and I have a question, I was wondering how I can change Tab when I click on the example button: I have two Tab which is called tab1 and...
asked by 14.08.2017 / 23:15
1
answer

Wait for a method to run out so that it can be re-run again [closed]

I'm developing a data synchronizer, basically the synchronizer will every 5 seconds check if there is data to be synchronized. However, my question is how do I do when the synchronization is happening, it does not start a new synchronization,...
asked by 14.08.2017 / 14:02
1
answer

Vector: Enter 5 names and their heights, then show them all in ascending order. [duplicate]

I need to register 5 names and their heights, then show them all in ascending order. The problem is that I can only put the heights in the order, the names are in the order I typed. And also I am not able to use the double in place of the int...
asked by 14.08.2017 / 05:46
1
answer

JSF REQUIREMENTS

If I make a Request for my bean and this bean will make a query in a list. A list of cpf for example. Can I update the client of this request with every result of this loop made in the bean? I ask this because often this list can be extensive...
asked by 14.08.2017 / 07:57
1
answer

Setting up CORS in Spring Security

I need to configure Spring Security to accept requests from external applications. I do not know how to do it, I have a project in Spring Boot and Spring Security where I only accept request from the same source. Must accept AJAX request using a...
asked by 11.08.2017 / 20:01
1
answer

Equivalent to sql function LEFT () in JPA

What is the equivalent function of LEFT () in JPA? I need to get only the first 6 characters of a field. The equivalent select in sql would be: select left(campo,6), count(*) qtd from tabela group by left(campo,6)     
asked by 11.08.2017 / 22:25
1
answer

Use set with Scanner and array

I have the following question: I'm using the following code that works quietly System.out.println("Digite a Primeira Nota: "); Scanner inNota1 = new Scanner(System.in); estud.notas[0] = inNota1.nextDouble(); But when learning about the p...
asked by 04.09.2017 / 21:20
1
answer

Tables not being generated - Hibernate

I have 2 tables in my software that are not being generated correctly. SQL is generated, but when verifying in MySQL, not the meetings. If I change the tag to: <property name="hibernate.hbm2ddl.auto" value="validate"/> or <...
asked by 05.09.2017 / 14:16
1
answer

How to use the BalloonTip library?

I would like to use tooltips like the balloontip library, but I did not find one way to use, it seems to be different from the conventional toolTips that to be applied use the setToolTipText method. How can I apply this...
asked by 21.10.2017 / 01:07
1
answer

Positioning components vertically with GridBagLayout

I created a java code to position objects in the window of type JComboBox and JTextField and I want them to be one underneath the other. The code I tried is this: /*Biblioteca */ import java.awt.*; import java.awt.event.*; import...
asked by 21.10.2017 / 22:46