Questions tagged as 'java'

1
answer

Difference between HttpClientBuilder.create (). build (), HttpClients.createDefault () and DefaultHttpClient

When creating an Http connection using: HttpClientBuilder.create().build(), HttpClients.createDefault() or: DefaultHttpClient . What's the difference? private static CloseableHttpClient httpClient = HttpClientBuilder.c...
asked by 23.01.2015 / 14:16
1
answer

How to use Seaglass 'Look and Feel' in my application? [closed]

I downloaded the Look and Feel SeaGlass for my JFrame in Java, but JCheckBox and JRadioButton simply bugged me, why does this happen? As you can see, the result is totally different than expected.     
asked by 31.01.2015 / 01:05
2
answers

How to create two connections with different databases?

I need to pass data from one database (DB2) to another (MySQL), and I'm thinking about how to do this, as in the database I have the data I do not have access to some tools, / em>, I can only do SELECT , I thought of making two connections...
asked by 24.01.2015 / 16:17
1
answer

How to properly declare Server Runtime dependency or provided by Wildfly in Gradle

I have a Java web project being developed to run on Wildfly, using the Eclipse IDE. This application uses JPA, JTA, JSF, and CDI at first, but will use other Java EE features in the future. The dependency control of this project is done by Gradl...
asked by 26.01.2015 / 17:12
1
answer

Make log shipping in android application in the occurrence of errors

Hello, I would like to know if there is any way to send the application log, or take some action when an error occurs in an android application (when the message "The application stopped working" is displayed). Is it possible to do something like...
asked by 01.12.2014 / 17:22
1
answer

How to know which page is responding to the JSP request

I have several pages JSP , and I treat all of them in my% control%. I would like to know if you can identify the page that is being displayed so that I can do all the treatments, servlet and requests , specific to this page. C...
asked by 24.11.2014 / 00:05
1
answer

Use of equals and inheritance

I have a parent class and in it I have equals and I have other child classes of this parent class and I want to override equals to compare private attributes of those child classes but I also want to use equals of my father...
asked by 21.11.2014 / 04:36
1
answer

How to transform a String "Caiaaaque" to another String "Kayak"?

I'm developing a system where the user types a wrong word, and I changed one or another letter of that word to correct, just for the same study purposes, and I have to go through the whole String and take an example, the user type Caiaaaque and...
asked by 24.09.2015 / 21:25
1
answer

Integration error "Java" and "C" through JNI

I am not able to consume functions of a "C" lib using Java with JNI. Here are my artifacts and the error generated. Class CalculadoraJNI : public class CalculadoraJNI { // Declaração do método nativo: public native int calcula...
asked by 01.11.2015 / 20:01
1
answer

Open modal with JavaScript to select certificate and send to server

When we enter the eCAC - Virtual Service Center page and click on Digital Certificate on the right side of the screen opens a modal to select a certain certificate that we configure in the system (this if there are certificate (s) in the confi...
asked by 06.11.2015 / 19:48