Questions tagged as 'java'

2
answers

How to read a file sent by user using FileInputStream?

I would like the user to send an .xls file to the system and from that a database would be created. The method I have is working, however the parameter that the FileInputStream receives is a String indicating the path of the file. Only the syste...
asked by 21.07.2014 / 20:56
1
answer

Look and Feel is not updated on all subcomponents

I'm facing a problem with the look and feel that I found a bit strange, when I run the project through IDE all components are rendered according to the skin I selected, but when I generate the JAR, some components are not rendered with the theme...
asked by 13.08.2014 / 14:24
1
answer

Error trying to create a connection to the database (MySQL)

I tried to make a connection to the MySQL database using AsyncTask , but it is giving error in the class responsible for the connection, MysqlConnect :    The Log () constructor is not visible I'm following this tutorial and...
asked by 13.02.2015 / 20:41
1
answer

How to use jQuery + Ajax with Java EE

I'm creating a connection to the bank in Java like this: try{ Class.forName("org.postgresql.Driver"); Connection con = DriverManager.getConnection("jdbc:postgresql://localhost/projeto","postgres","754753"); if(request....
asked by 15.02.2015 / 19:20
1
answer

Avoid ListView overlay

I have a problem with the% s of% s which is as follows: I work with 2% with% s and I want when I click on one, that the other disappears and that they do not overlap as they have. I just want it when I click and open the first ListView an...
asked by 05.02.2015 / 03:34
1
answer

jFrame frozen / hung when opened in a jTable

The idea is to click on the line of the table that is a jFrame1 and open another jFrame2 with the search of the information of the person based on RE, but when I click on it the code until it works but opens the frozen and locked window. The c...
asked by 30.01.2015 / 13:58
1
answer

Injection between jars

I have a Jar, Helper project, which has a process manager, where it controls the execution of etal threads. Where it gets an interface that performs execution when triggered. I have another Jar, Service project that implements the Helper inte...
asked by 28.06.2014 / 22:28
1
answer

Run Graphviz (dot.exe) through Java application

I am trying to generate a graph from a .dot file using the Graphviz tool. To do this, within a Java application, I am invoking the command prompt by navigating to the Graphviz installation folder and entering the command as follows: String cd=...
asked by 25.06.2014 / 23:37
1
answer

Permissions and antivirus issues to run the application

I created an application in Java and generated a .JAR executable, which works perfectly, after that I used Launch4j that makes my .JAR into .EXE and then I used InstallCreator to create an installer for my .EXE application for a more professiona...
asked by 08.07.2014 / 00:06
1
answer

How to create (spawn) several rectangles?

I'm creating a Jframe game where I need to create multiple rectangles that will be the projectiles / bullets of my main / I created the following class: Class Bullets package dannark; import java.awt.Color; import java.awt.Graphics;...
asked by 25.06.2014 / 17:35