Questions tagged as 'java'

1
answer

Map columns of separate tables in a single object and vice versa

   Situation 1 I have the following very simple tables: ....................... And I have the following classes: Client: @Entity public class Cliente implements Serializable { private static final long serialVersionUID = 7...
asked by 03.07.2014 / 21:50
1
answer

Synchronization problem

This code worked in a Java IDE, but now Android is not working. This program needs to get an XML dataset from a website and then move to a spinner. import android.app.Activity; import android.os.AsyncTask; import android.support.v7.app.Acti...
asked by 01.07.2014 / 03:26
1
answer

Making web service calls separately

I need to finish an application that I'm doing in Android, in the login step I'm doing, and for that, I have two webservices to do it, one is the Identifier and the second is LoginSamba. I would like to make it explicit that: You will onl...
asked by 12.09.2014 / 19:39
1
answer

Problems sending data from a ListView to another Activity

QuestionAdapter public class QuestionAdapter extends BaseAdapter implements OnClickListener { private List<Pergunta> lista; private Context context; public PerguntaAdapter(Context context, List<Pergunta> lista){ this.context...
asked by 16.09.2014 / 22:32
1
answer

JPA with the Java 8 Date API

With the many enhancements to the new Java 8 DateTime API, how should I instantiate a Date for an entity in JPA? Is it possible, for example, to have a YearMonth field that JPA controls?     
asked by 15.07.2014 / 05:45
1
answer

Replace files with izpack

I have an installer that plays files in a folder, however I wanted to use the same installer to update the application, so there are some files that can not be overwritten. This way I thought of showing a dialog box when the file already exists...
asked by 16.06.2014 / 20:02
1
answer

impact of a high heap memory on the JVM

What is the impact of having a high memory heap in the JVM? Does the Garbage Collector take longer to clear memory when it is too high (about 12gb)? If so, is there any way to avoid this delay programmatically without using infrastructure soluti...
asked by 11.06.2014 / 15:08
1
answer

Organization of the codes generated by WindowBuilder

I'm using WindowBuilder to draw the graphical interface, but there's one thing that's kind of boring in it, which is as follows. When I create a JLabel for example, it declares the JLabel inside the constructor, making me unable to use it direct...
asked by 23.07.2014 / 09:45
1
answer

Java Authentication in DataBase generated by Asp.net MVC 5 (Generate passwordhash in Java same Asp.net MVC 5)

I need to Authenticate a user created in automatically in asp.net mvc 5 using the language java by Example:    user: so-and-so   password: Ab123456 Password recorded in the Database PasswordHash ACFCCbS1aKYPrQndKMluPDpLD51m1yh5UDBo49v1m...
asked by 24.07.2014 / 19:50
1
answer

How to update size / color / positions of a sphere within the actionPerformed in Java3D

This week I started studying Java 3D but I'm having a little problem, I can not move or change the color of objects within strong> actionPerformed Although I can change in other places To better understand the problem, here is the main cla...
asked by 27.07.2014 / 19:40