Questions tagged as 'java-8'

1
answer

List in TextField or an editable Combobox when the user types - JavaFX

Someone more experienced, could you tell me if JavaFX has some way to make a list as you go typing in the textfield. Example: When you are going to enter your facebook email, and you type the first letter and your email appears below, exactly th...
asked by 22.10.2015 / 20:16
1
answer

How to limit the size of the heap in a JVM 8?

Until the 7th month, the -Xmx parameter limited the size of the heap, but today at 8 it is not happening. Today I use the -Xmx200m parameter and my application gets to consume 1.5GB in the heap, I use a lot of short object so practically they...
asked by 23.06.2015 / 15:19
1
answer

Add attributes in file creation

I'm developing a Java application that creates files in the user's directory. So when I created the files I needed to add some attributes in their properties, so I can identify where they originated this file if the operating system user copie...
asked by 24.09.2014 / 15:23
1
answer

JPA with the Java 8 Date API

With the many enhancements to the new Java 8 DateTime API, how should I instantiate a Date for an entity in JPA? Is it possible, for example, to have a YearMonth field that JPA controls?     
asked by 15.07.2014 / 05:45
1
answer

Transforming Collections into Stream

Would there be a way to convert the following code to java 8 Stream? setores = new SetorBusiness().buscarEtiquetaFuncionario(null, codDiretoriaSelecionada, codCoordSelecionada, uf, cidade, servidor, null, null, agencia); parametrosRela...
asked by 13.11.2017 / 18:23
1
answer

Group List with java 8

The input data would be a list of Products as below [ { "id": "123", "ean": "7898100848355", "title": "Cruzador espacial Nikana - 3000m - sem garantia", "brand": "nikana", "price": 820900.90, "stock": 1 }, { "id": "u7042", "ean": "789805480049...
asked by 01.10.2017 / 21:23
1
answer

Error adding attribute name to @WebService

I am creating the class that implements the WS call and trying to include the name attribute, this error appears: "@WebService annotation contains an endpointInterface attribute. No name attribute allowed" Does anyone know why? If I remove...
asked by 22.09.2017 / 15:13
1
answer

I can not generate this second vector

Type a program that loads a vector with 10 integers and sorts it in ascending order using the bubble sort method. The program should generate a second vector without the repeated numbers. package com.bubble.sort; import java.util.Scanner;...
asked by 13.09.2017 / 18:26
1
answer

Change Dialog is not displaying the data

I have a maven project that is using jsf, jpa and primefaces in which there is a dialog that is being used to update the data, except that the inputText is empty when it is called instead of appear the data in it (which is defined in the managed...
asked by 01.04.2017 / 18:49
0
answers

Change menu item accelerator menu

I created the following MenuItem , MenuItem item = new MenuItem("Alterar"); KeyCodeCombination acc = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.CONTROL_DOWN); item.setAccelerator(acc); The accelerator a...
asked by 13.12.2016 / 15:03