Questions tagged as 'java'

1
answer

. I have to do Algorithm of the backpack and I can not match the text boxes to the variables

private void btnGenerarBeneficioActionPerformed(java.awt.event.ActionEvent evt) { //GENERANDO UN VALOR ALEATORIO PARA EL BENEFICIO //beneficio1: try{ int num1= (int)spibenef...
asked by 25.11.2017 / 12:24
1
answer

Error in MySQL / JAVA syntax

Good morning, I have the following code and I do not know why it is failing me. I think it's an error in my syntax because writing the following code was where the program stopped recognizing all my variables. import java.sql.Connection;...
asked by 25.11.2017 / 21:24
1
answer

How do I get a file.yml inside a folder? JAVA

I want to know how to get a list of files for example: MainFolder > Arenas > Arena1.yml Arena2.yml And be able to get the ones that Arena1.yml contains. My code (It does not work.): private static FileConfigurat...
asked by 25.11.2017 / 15:14
1
answer

Problem when creating my executable .JAR in java netbeans

I try to create a .JAR executable file for my GUI application in java, in which I use serialization for data, but when I run it, the .JAR buttons that use serialization, such as the save button, do not work. and the console throws me this err...
asked by 25.11.2017 / 02:34
2
answers

Delete v1 in endpoint url

I am using GAE to generate Servlets and everything works perfectly, however, the route of the endpoints always adds a "v1" which I want to remove, this is an example of how the route is:    link and I want it to be as follows:    li...
asked by 14.12.2017 / 17:17
0
answers

Use android code in netbeans project

I'm using netbeans 8.2 and the case is simple, I'm doing a multi-platform project, it runs as a service, because it's a music player that is controlled by a web service. When I take it to android, using this project as a dependency for an androi...
asked by 16.12.2017 / 20:24
1
answer

Doubt with ArrayLists in Java

my question is this: Can you dump the content that is in an ArrayList so far into an ArrayList? and then the first one to restart it to put another series of data and dump it in another position of the second one? I explain the question....
asked by 16.12.2017 / 12:21
1
answer

I throw an executor but only one thread is executed

My question was that when trying to do a function with an executor (in this case, a multiplication of matrices) and when checking the thread that was in the run, it always came out the same, 12. /* Atributos de la clase */ public int x,y;...
asked by 24.11.2017 / 13:24
1
answer

jtable of internal frame to jtable of a jframe

I need to know how I can make the data of jtable of an internal frame go to another jtable that is in jframe in java netbeans , I'm doing a project in this language and I'm new to this. This is part of the code: try...
asked by 24.11.2017 / 06:10
1
answer

How do I change the text of my jlabel of a Jframe according to the button I press from another jframe? [closed]

Good morning, I would like someone to help me with this ... it's something simple and maybe even laugh XD But anyway... I have 5 buttons in JFrame, each contains one of the 5 vowels text ... what I want is that when I press any of them, I open a...
asked by 24.11.2017 / 06:42