Questions tagged as 'java'

0
answers

Is it possible to encrypt the password for connecting to the database that is inside a Java application?

I'm using a Java application and using the PostgreSQL database. To make the connection to the bank I use this method: public static Connection getConnection() throws Exception { try { Class.forName("org.postgresql.Drive...
asked by 08.11.2017 / 18:47
1
answer

Screen stops responding after clicking one of the buttons

I'm doing a simple game show of the old woman next to Swing. I wanted to know why, when I trigger an event to click through the ActionPerfomed method, my program freezes. I've been researching a bit and found that these are normal interfa...
asked by 29.11.2017 / 22:34
0
answers

Links WSDL: Gravataí

Next, I need WSDL links to Gravataí, I already looked in the manuals and site of the city and developer (IPM) but there are only php links. I contacted them again and again: Only php links. Does anyone who works with sending NFSe to Gravataí...
asked by 29.11.2017 / 13:32
1
answer

Integer array conversion in String

I am a beginner in Java and would like to learn how to convert an array of integers to a String.     
asked by 24.06.2014 / 05:50
0
answers

Error sending MDFe

The company where I work has a Java project done in Eclipse for sending NFSe and MDFe. An error has occurred when I try to send an MDFe. The error log is in the pastebin link. link     
asked by 30.10.2017 / 19:08
1
answer

Java - Import Excel with combo and checkbox

I need to perform an excel spreadsheet import using java. Only the worksheet has selection values such as checkboxes and combos. As in the example below: Does anyone have an example java code that can retrieve these values, with Apache...
asked by 30.10.2017 / 20:46
1
answer

How can I show an image that is in the database using jsp?

Well, here's the thing. I'm using JSP, SERVLET and MySQL to insert images into my project, I just happen to save the image path in the database, and then call that path to show the image. Hence the problem: <% ArrayList<Fotos>...
asked by 19.11.2017 / 20:02
1
answer

Define an abstract attribute in a non-abstract class

I want to be able to instantiate an employee class (so this can not be abstract) and have an abstract salary attribute that will be static for each employee type. I can do (in the official class): private abstract int salario; and its su...
asked by 19.11.2017 / 14:52
1
answer

Open external links in another browser

So I have an App that my site is all responsive and is working perfectly. But I would like the external links to be opened in another browser. For example: The user clicks on a Google Adsense ad that has the site and the ad site opens in the...
asked by 29.07.2016 / 00:01
0
answers

Attempt to invoke virtual method 'java.lang.String java.lang.String.toString ()' on a null object reference

I'm developing an application that has the objective of consulting prices and ordering times consuming the service of the Post Office. However I am having difficulty implementing the application service. When I put a Toast to see if I am able to...
asked by 10.11.2017 / 18:44