Questions tagged as 'java'

4
answers

ImageButtons Background

I have a ImageButton and when I click on it I want the Background of it to pass to another ImageButton . I have View v of the first ImageButton , and imgB6 is the ImageButton I want to get the ba...
asked by 29.01.2017 / 23:13
1
answer

MySQL in Java Desktop applications for various stores [closed]

Hello, if I make a Java Desktop application with MySQL database, which will be delivered to several establishments to use, how is the database? Do you have any suggestions? The application, I can get it to be installed easily, but what about the...
asked by 28.01.2017 / 19:48
1
answer

I want to use CardView to make the screen more beautiful just that the cardView works similar to a listView?

And I want to get dynamic data to show on the screen. Dynamic data coming from a webservice. So, do I need to use RecyclerView with CardView Layout to make the data dynamic? How can I make my CardView look like elements of a ListView?    ...
asked by 24.01.2017 / 15:30
1
answer

Add Firebase to Android Project [closed]

I did everything I asked for in the Firebase website, but when I click Sync on Gradle inside the project, before finishing it it shows an ERROR, as you can see below; Please help me!     
asked by 24.12.2016 / 20:55
1
answer

Problem in performing a Java language INSERT

Hello everyone, I have a problem that I think should be very easy but as I am new to it, it is not rs, I have an insert to perform in a class called ClienteDAO follow the code below: public class clienteDAO { public void Create(clie...
asked by 23.12.2016 / 20:03
1
answer

regex java replace all

String url = "/users/{id}/books/{id_book}"; url = url.replaceAll("{\w*}", "\w*"); System.out.println("result url:" + url); Trying to do a replace with regex, and returns me the following error: Exception in thread "main" java.util.regex.Pa...
asked by 11.03.2017 / 13:22
1
answer

SELECT on multiple SQLITE tables

I have a customer table and I list all items in this table in SQLite I also need to list these clients, also get the lowest date, referring to the client, in another table. Example: **Tabela de Clientes** id | codigo_cliente | nome_c...
asked by 09.03.2017 / 23:49
2
answers

How to securely store AWS credentials in a Java application?

I have a Java Desktop application that is distributed to clients. I now need to send data from this application to Amazon S3. For this you need to set AWS credentials ( accessKeyId and secretKey ). Among the possible options in document...
asked by 13.03.2017 / 14:16
2
answers

Line break in data from a list

I have a dialog that shows on the screen the data received from a list: <p:dialog header="#{zona.nome}" widgetVar="vendedores" minHeight="40"> <h:outputText value="#{zonaBean.getVendedoresPorZona(zona.id)}"/> <br /> </...
asked by 07.12.2016 / 20:12
1
answer

AlertDialog with background

I created this alertDialog but I would like to know if instead of having an icon when it appears, if it is possible it has another color or even use an image as its (Background). And Assign the buttons a background. public void icon (View View...
asked by 09.12.2016 / 15:15