Questions tagged as 'java'

1
answer

Error trying to use connection with mysql in Apache Server Tomcat in the Cloud (hibernate)

I have an error trying to execute the execution of my web application on a web server called facilcloud (jelastic), my project is working with mysql hibernate, mongodb, java 1.6, spring mvc, bootstrap, maven among other tools. The problem I h...
asked by 31.12.2016 / 06:58
1
answer

Problems with the JCheckBox item listener

I am using this code to make the key entered in the JPasswordfield "jp_clave" readable by checking the JCheckBox "jcb_key" private void jcb_claveActionPerformed(java.awt.event.ActionEvent evt) { j...
asked by 05.02.2017 / 04:54
1
answer

Connect a Java project to Apache Solr 4.10.3

I have Apache Solr 4.10.3 running a collection called "Collection1". I also have a project in Maven at the moment completely clean and ready to put together. The first thing I want to do is connect to Solr to get indexed data from Collection1. O...
asked by 03.02.2017 / 20:14
2
answers

Put date in JDateChooser JAVA

How do I put a date consulted in a JDateChooser (JAVA)? I have tried to format it in various ways but I can not ... NOTE : I have the date in a formatted string ( yyyy / MM / dd )     
asked by 23.12.2016 / 00:06
1
answer

About loading images BufferedImage in java

I am working on a project in java in which a form is filled out and the entered data is passed to bar codes. I already downloaded the jbarcodebean library, I already generated the first field as a barcode. What I want to know is, How to add...
asked by 23.12.2016 / 07:22
0
answers

Get web toi api / asp from java / android

Hello wrote a web api in C # to authenticate, using postman sent the parameters and returns the token correctly, I will leave at the end of post the parameters for testing, and searched for a number of code to bring para...
asked by 05.01.2017 / 16:04
2
answers

Problem with preparedStatement

I'm trying to execute the following commands: stmt=con.prepareStatement("CREATE DATABASE ?"); stmt.setString(1, nombreBase); stmt.executeUpdate(); Doing about select or insert works but doing so with these commands does not al...
asked by 16.01.2017 / 17:30
0
answers

Use MySQL database or save data in file for sales system

I'm starting as a software vendor. I have been asked for a system to control sales and stock of a small commercial establishment. I thought about making a desktop application with Java and MySQL (Netbeans and WAMP Server). My question is this...
asked by 17.01.2017 / 14:30
1
answer

Program in which never leaves the main (infinite loop (?)) [duplicated]

Good, I created a main for a program and the thing is that before adding a bit of code I was doing everything right, when I reached the end of the program I finished the program and everything OK. However, now when the program ends, it does no...
asked by 16.01.2017 / 15:47
3
answers

Include JLabel in JPanel

I am trying to show a JLabel in a JPanel, but it is not shown to me. I do not know why it will be My code is as follows: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DialogoCancion extends JFrame { pri...
asked by 26.12.2016 / 22:21