Questions tagged as 'java'

1
answer

mapping entities with jpa?

I'm new to jpa, what I've been trying is to map a table of my DB of the user table which is divided into 2 types, which are natural and legal users but legal persons have data of ruc and organization to which belongs public class Usuario imple...
asked by 05.04.2017 / 19:13
1
answer

NullPointer when opening a window from another

I have two windows that I show you below: vistaAlbumesBuscar public class VistaAlbumesBuscar extends JFrame implements ActionListener{ /** * Componentes de la ventana */ private Coordinador miCoordinador; private JTextField campoT...
asked by 20.05.2016 / 19:29
1
answer

Get List item with lambdas

I am trying to migrate a code to Java 8, related to the classic exercises of Student / Teacher / Subject . I have some doubts about whether I am performing this lambda correctly to select a Student by id (Long field) of a List. Code to obtai...
asked by 19.05.2016 / 21:49
2
answers

Help with queues, JAVA

I have to run a program that simulates a queue, the data of the objects must be those of a person (name, age, sex). The program must insert the data and eliminate them in the order that is done in a queue, the data to be added must be provide...
asked by 15.05.2016 / 23:37
1
answer

How to import the PayPal API API for Java to my project

I need to see how to import the PayPal API SDK and download the GitHub SDK but I do not know what files I need to add to my project as well as its configuration.     
asked by 07.07.2016 / 15:46
2
answers

Convert dp to reverse pixels on Android

I need to convert dp to pixeles and pixeles to dp in Android Java. I get the width of the screen of the device, I return a value float that is in dp public static float getWidthDeviceDP(Context cont...
asked by 08.07.2016 / 18:31
2
answers

Where should JSP files be created?

I am starting to learn about java web with tomcat and it is giving me problems where to place each file. The servlets and the java classes, I am creating them within src but the files jsp , html , the view of my application, w...
asked by 04.06.2016 / 20:57
2
answers

View Images saved on a remote server in a Java client

I have to create a Java application with a remote client-server graphical interface, which allows the client to view an image stored on a remote server (my pc), I do not want to save the image, just visualize it from a JPanel or something simila...
asked by 17.06.2016 / 14:57
1
answer

Reload a glassfish from java EE

I'm making an application in java web and it's already mounted on a glassfish server. Is there any way that by means of a button or a function in my application you can deploy it again on the server with your changes? Is it possible? If so...
asked by 10.06.2016 / 13:51
2
answers

Double data format sent to mysql

My question is this: For example, enter the number "1" in a JTextField , then, before sending the number to the database and make the corresponding Insert, pass the number to double, and the number in the database is entered as entered...
asked by 21.06.2016 / 04:19