Questions tagged as 'java'

1
answer

How to make a simple image gallery for Android?

I need to create an image gallery where I slide my finger to move to the next image. I've been researching and found several ways to do something similar to what I want, but I was very confused. What would be the best way to do this? Here'...
asked by 21.03.2016 / 23:57
1
answer

I can not save to the database, nor does it show error logs in the hibernate project

In the project I use hibernate , and when I try to save a new client, it only shows the validation message of the CadastroClienteService class. The strange thing is that all fields are filled in form, it seems null pointer , b...
asked by 20.03.2016 / 19:27
3
answers

how to show data from a sharedPreferences in a ListActivity

I'm starting to work with SharedPreferences on android, a simple and fast way to store static and primitive data. However, my problem is in showing these saved values in a ListActivity. I have already searched here in the forum, google tutoria...
asked by 02.03.2016 / 15:59
1
answer

Delete subfolder of a Watcher ends the loop

My code is as follows: try { watcher = FileSystems.getDefault().newWatchService(); registerAll(path); } catch (IOException e) { return; } while (true){ WatchKey key; try { key =...
asked by 02.03.2016 / 19:45
1
answer

Get string from a textarea and popular an object

I would like to know if there is any API, plugin, something like that, and of course some idea of how I can get preformatted text like this: Cod Nome Celuler Telefone Tel_trabalho 123 Bruno 986159946 27054578 23345689 124 Carl...
asked by 10.05.2016 / 15:09
3
answers

currency mask jquery

In my xhtml I have 2 input value 1 and value 2. The first input perfectly works the jquery currency mask. More in the 2 input that is in a modal the currency mask is not working. currency function function configurarMoeda() { $(".moe...
asked by 13.05.2016 / 03:22
1
answer

Place fixed cryptographic key

The code below is working perfectly for both encryption and decryption, however, when I close the app and put the generated code before it closes it (I open the cryptographic app one word and I close the app and when I go back to decipher the me...
asked by 24.02.2016 / 15:37
1
answer

Search and compare data

I need to perform a search and I created the following code to accomplish it, but without success. I wonder if I'm doing it the right way. public void AcessoCC() { int id = 0; Integer infoConta; System.out.println("Informe o núme...
asked by 11.03.2016 / 10:08
1
answer

Error connecting to firebird database

I'm trying to create a web application and want to use java and html. Well after all set up and ready for a little connection test the following error occurs: Fev 09, 2016 1:28:02 PM org.apache.catalina.core.StandardWrapperValve invoke GRAVE:...
asked by 09.02.2016 / 20:17
1
answer

How can I persist data using ArrayList?

I need my ArrayList data structure to be visible in more than one method of my Products class. I'm working as follows: package estoque; import java.awt.Component; import javax.swing.JOptionPane; import javax.swing.JTextField; import java.u...
asked by 09.03.2016 / 18:53