Questions tagged as 'java'

1
answer

PanelGrid does not divide columns with Repeat

I have a panelgrid that I can not in any way divide into a ui: repeat columns, whatever the amount. <h:panelGrid columns="2" > <ui:repeat var="p" value="#{cadSetor.campos}" > <p:commandLink actionListener="#{telaL...
asked by 29.06.2016 / 03:58
1
answer

Problems with objects using sockets in java

I'm trying to pass the person object that was instantiated on the server to the client. But I can not. Below are the classes I've used: Server public class ServidorTCPBasico { public static void main(String[] args) { try { Se...
asked by 28.06.2016 / 16:43
1
answer

How to print information that is in json format but is printed in a way that gives the user to read?

The application is printing in this json format but I do not want it to print like this. For example I just want you to print "translation": "Hi dear" and only. I'm using eclipse and the java server language, how do you do? I'm using an API b...
asked by 29.06.2016 / 16:57
1
answer

I can not access static content in spring-mvc

How do I access the static content of spring-mvc? For example a css. I have the following spring setting: import java.util.Properties; import javax.sql.DataSource; import org.hibernate.ejb.HibernatePersistence; import org.springframework....
asked by 26.06.2016 / 21:23
1
answer

You can create a generic Object list

I need to generate a generic list List<?> listaGenerica; having as a parameter a string with the class path, as shown below. Class class = Class.forName("com.teste.Endereco"); Is this possible? Sorry for the confusion in the...
asked by 02.08.2016 / 20:26
1
answer

How to create video through an image sequence?

I want to create a video using a set of images of the same type and size. I searched some examples but did not succeed in performing the algorithm. Of the examples, this link was the most complete: link However, the answer does no...
asked by 05.08.2016 / 15:39
1
answer

Android, PHP and HttpURLConnection - Send message to PHP with UTF-8

Sirs, very good day / afternoon / evening! I'm having problems with word accentuation. The backend of my system works in PHP by talking to an Android app. When I send the message from the App to the server PHP works normally, and PHP responds...
asked by 22.09.2016 / 15:49
1
answer

Skyrim style item system

I'm developing a 2D RPG in Skyrim style C #, and I'm in the part of implementing the game items, but with a lot of difficulties. I wanted to do a Skyrim-like mechanic in which you have a range of items sorted in a variety of ways such as arma...
asked by 20.09.2016 / 07:15
5
answers

Change button background

How can I change the background of a Button by clicking on it? For example: I have shape01 and shape02 , for default the Button is with shape01 , when clicking it I need to change to shape02 , and click...
asked by 19.09.2016 / 14:36
1
answer

How to set the basic requirements for running Java desktop application?

How do I identify the minimum requirements (RAM, processor, etc.) for my application to run? I do not have several computers to test with various situations. The computer I use for development has specifications a little above the "ordinary"...
asked by 28.10.2016 / 14:08