Questions tagged as 'java'

1
answer

JPA make a join of a table that has attribute @manyToOne and @ManyToMany

I am having a question regarding table joins, I have a sales class the same as Customer, Buy, ProductList. I would like to make a report with product name, customer name, product value and date of purchase only I do not have the slightest idea h...
asked by 27.04.2018 / 19:23
2
answers

Pass JSP model to SpringMVC controller

Could someone please explain to me how to fix the error of my JSP? This form will serve to register products in my system, it receives a list of product categories from the database. My Controller ProductController.java: import java.util...
asked by 16.09.2014 / 06:36
2
answers

How to decode a JSON Array on Android

There was a need to decode a JSON Array like this: output: [ [{ }, { }], [{ }, { }] ] I was doing this in a way that decoded a Array like this: output: [{ }, { }, { }] Code of how you were doing: Meth...
asked by 09.09.2014 / 15:06
1
answer

Connection MySQL Local Database and Online Server

I am developing an application using Java Swing + MySQL database, however I am in analysis of making an online platform that talks to the local application, using the database to interconnect the data, because in reality the system itself they t...
asked by 02.09.2014 / 18:47
2
answers

2 decimal place using double [duplicate]

I'm learning to program, I'm doing an application with 3 edittext (where I enter the numbers I want to calculate) and a textview to display the result. I would like to know how to calculate 2 numbers with option to be able to fill the third ed...
asked by 21.09.2017 / 12:14
2
answers

Instantiate an object throughout the Java application life cycle

I have an application here in Java that uses the Amazon SDK to send images to an S3 bucket. To do this I use threads, basically it is modeled as follows: The Mai n class has a list of threads and each list item is sent to an Executi...
asked by 29.09.2017 / 14:51
2
answers

Customize the "Generate toString () ..." of eclipse to print the path of a class

How do I customize the Generate toString() function of eclipse (source> Generate toString ()) to print the path of a class? For example I have the following entity that prints: package com.etc.model; @Entity @Table(name="CLIENTE") p...
asked by 30.09.2017 / 04:48
1
answer

How to validate a text field with InputVerifier?

Normally when I need to validate a text field without using action events, I use focus events, such as those available through the FocusListener . In this example, I check if the field was filled out when I lost focus, and I returned...
asked by 06.10.2017 / 16:07
2
answers

Error performing insert in an Android application: "Empty bindArgs"

Explanation: I have an android application that was made using ADT (Android Developer Tools) I use the bank sqlite in it and eventually I perform some operations as insert or update and also some select 's. Pr...
asked by 18.02.2014 / 00:23
2
answers

Transparent background in java

I have a problem with background transparent of a JTextField , changing the content of JTextField it seems to overlap the text and everything is mixed: I'msettingthebackgroundlikethis:Field.setBackground(newColor(1.0f,1.0f...
asked by 18.02.2014 / 19:35