Questions tagged as 'java'

1
answer

How do I fill an arraylist with several objects using the interface?

EDIT I want to print the 11 players that the user types in the interface. Player is an object with the data string dorsal, last name and position. Gamer is where the whole interface you see below is. Driver is listener where I add functi...
asked by 29.11.2018 / 22:11
0
answers

Java Rest Help

Hello friends I need help I'm trying to make a rest api but I do not get it in java, I know it's all this long but I need some help since it's for a University Project. Thanks This is my code: bean: package bean; public class Album {...
asked by 30.11.2018 / 02:57
0
answers

Use @RolesAllowed annotation in tomcat using basic authentication in jax rs

I have a rest service like the following @Path("/noticias") public class ServicioNoticias { @GET @Produces(MediaType.APPLICATION_JSON) @RolesAllowed({ "user" }) public List<Noticia> getNoticias() { List<Notic...
asked by 04.12.2018 / 18:19
1
answer

send data from a fragment to an activity

I have a problem ... when I click on the item (which is inside a fragment) it directs me to an activity but I only get the data of the "title" ... the "image" and "place" comes out empty public void onStart() { super.onStart(); op...
asked by 04.12.2018 / 04:01
1
answer

JAVA - I can not print completely from my XML

I am developing a program that allows me to print the elements of tags of an XML that I have, this is the instruction that this is my main class, that allows me to print a certain tag: for(int k=0; k < list3.getLength(); k++) {...
asked by 27.11.2018 / 17:39
0
answers

Passing result of a java program to a database in PostgreSQL [closed]

The result of a token made in Java (Netbeans) to pass it directly to a database generated in PostgreSQL.     
asked by 27.11.2018 / 21:51
1
answer

I can not use the p: fileUpload .. when I put it in a page xhtml it stops working all the elements contained in the block form

I have a problem when entering the data to a form, when I enter dates and text there is no problem, uploads without problems to the database, but when you put the label: <p:fileUpload mode="simple" value="#{formularioController.cargar}" /...
asked by 27.11.2018 / 22:02
0
answers

JavaFX, problems updating button graphics

I'm doing a game of finding partners and a problem has arisen that I have not known for hours because it happens, I have the feeling that it will be silly but I can not see it. I mention the problem, I launch a method that should update the gra...
asked by 01.12.2018 / 03:36
1
answer

JPopupMenu Java

I am working with a JPopupMenu in NetBeans, I want my JPopupMenu to disappear immediately the mouse is out of this, I tried putting a listener to the JPopupMenu of type mouseExited, but what happens is that as soon as the mouse rests on top of a...
asked by 21.12.2018 / 22:29
1
answer

how to perform a mathematical operation in the same input, using javaserver faces?

Code xhtml <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head> <title></title> </h:head> <h:body> <p:layoutUnit p...
asked by 13.12.2018 / 17:33