Questions tagged as 'java'

1
answer

Apache Lucene with Tika not returning words with accent

I made the library implementation Lucene and Tika of the Apache package and I managed to make it work super well for what I want. But I have a problem with words with an accent, it can not return results for words with an accent, I believe t...
asked by 18.07.2014 / 13:27
2
answers

How to make a ListView "Clickable"?

I have a simple phonebook system, where there is Activity s for: Registration; Editing the registry; Removing the registration; And one last to see all contacts within a ListView . All records come from a table in the d...
asked by 13.02.2015 / 19:44
1
answer

Exception in Java UiThreadingViolationException

I have done a project with LookAndFeel Substance , in it I have a thread that is updating periodically a JProgressBar , the problem is that in the function JProgressBar.setValue(1) and JProgressBar.setMaximum(10)...
asked by 09.02.2015 / 19:05
1
answer

JPA returning Object other than the class object type

The following query returns java.lang.ClassCastException: [Ljava.lang.Object; can not be cast to br.com.satisfacer.model.Customer public List<Cliente> teste(Cliente cliente) { return manager.createQuery("from Cliente c join c.compras...
asked by 27.08.2018 / 00:48
1
answer

Recursion Doubt with String in Java

I'm trying to solve the following exercise:    An S collection of strings is defined recursively by:       'a' and 'b' belong to S;    If X belongs to S, then Xb also belongs to S;    Write a procedure that implements this definition rec...
asked by 25.08.2018 / 17:33
1
answer

Table not loading

I'm trying to make the table list load and not loading always gives this error Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem: The constructor PanelListClientes() is undefined at view.FramePrincipal.li...
asked by 20.11.2018 / 00:06
1
answer

Is it possible to use libraries within the java project framework?

My question is as follows, can I by way of relative path link my .JSP to a library within the project directory? Or just in the server directory: Webapps, etc? Currently, when I want to show an image on my system, I do the following: <im...
asked by 10.08.2018 / 15:53
1
answer

Apply mascara to the Java backend

Does anyone know how to include a mask from a regex in a string? For example, I have the following regex String pattern = "\d{2}[/]\d{3}.\d{3}[/]\d{4}"; and a variable with the following String numeroProcesso = "010000012018"; valu...
asked by 13.08.2018 / 21:00
2
answers

Priority thread execution android

I have the following code to print to P.O.S on Android; Before I call up the data for thermal printing, I'll call to test if the printer has paper or everything is fine with it. PrinterDemo.getInstance(getApplicationContext(),toast,dialog).tes...
asked by 17.09.2018 / 16:41
1
answer

How to resolve a synchronization with the server when there is a connection crash on Android?

I'm doing an application, where it has a jobs registry in SQLite that should be synchronized with the server in PHP with Mysql. After searching a lot, I could not find any answers that solve my question. I'm basing my sync on Incremental...
asked by 30.08.2018 / 08:33