Questions tagged as 'java'

1
answer

How to rotate imageView 90º?

Hi, I'm doing an Image editing app and I need to know how to do a 90-degree rotation of an imageView and replace the original with the rotated image I searched the sites and found this way, but when I do the rotation, the image gets very small a...
asked by 08.12.2015 / 23:18
1
answer

Pass the item name clicked on the Android ListView

I have a code that I get the ID of the item clicked on ListView and step to another Activity , but I would like to get the name clicked and not the ID. My code: if (controle != null) { controle.setOnItemClickListener(new Ad...
asked by 09.12.2015 / 13:47
1
answer

Doubt about updating JLabel in JFrame

Why can not I update my labelHora in Frame ? Using a print after the line labelHora.setText(x); I noticed that the content of labelHora changes, but the screen continues the default, which in this case is "zzz". package ultili...
asked by 02.12.2015 / 05:51
1
answer

Tutorial Demoiselle 2.5 - M1C2 - ERROR rt.jar unknow

Unknown error for me I'm starting on api REST. : 11:35:51,778 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/calc].[calc.Api]] (http-localhost/127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet calc.Api th...
asked by 11.11.2015 / 16:39
1
answer

How to reconstruct the XML of a Fragment layout, when it is expanded?

I have a screen with a fragment, which without being expanded, it just shows the username and password field and the button to register, and I wanted it when I expanded it, fields like name, date of birth, municipality, state, were inserted betw...
asked by 09.11.2015 / 19:22
1
answer

Java / eclipse does not recognize Path GET annotation

I'm developing a Restful application, using eclipse and jersey (Without using framework). But I'm having a problem with annotations like @Path, @GET. When I use these annotations it gives an error in the package line within the class. The fol...
asked by 10.11.2015 / 18:43
1
answer

Persist array of JPA objects

I'm trying to persist a ArrayList of Entity in JPA with the following for : EntityManagerFactory emf = Persistence.createEntityManagerFactory("PU"); EntityManager em = emf.createEntityManager(); em.getTransaction().begin();...
asked by 30.10.2015 / 13:15
1
answer

Doubt Receiving Parameters (WebService Soap)

Well, I'm in the following scenario: I have this class, it is a webservice (contains the @WebService method): @WebService(name = "l", targetNamespace = "o") public abstract interface Service { @WebMethod(operationName = "Cancelar")...
asked by 29.10.2015 / 15:30
1
answer

AND and OR Operators

I recently started using the Criteria API because I need to make queries that would be very complex with HQL. How do I use the AND and OR operators in queries with the Criteria API?     
asked by 29.10.2015 / 03:50
1
answer

Sugar ORM ANDROID

Good morning Is there any way to change tables and fields in the Sugar ORM database, so that when performing the app update, it does not crash? I have a registration and I have the PRODUCTS table and it contains name, code, location, etc ....
asked by 29.10.2015 / 13:10