Questions tagged as 'java'

0
answers

How to send and receive commands via telnet in a java application?

I am trying to make a program for the sample of meteorological parameters that come from another remote computer. Until the moment with the code that I have implemented I only have the connection with the remote computer but I can not get the wa...
asked by 08.04.2018 / 15:41
1
answer

How can I rotate different figures independently?

I need to rotate several figures, but the whole plane moves Methods to turn that I use this.graphics.transform(AffineTransform.getRotateInstance(Math.toRadians(this.direction),this.x, this.y)); And the other one this.graphics.rotate(Ma...
asked by 07.04.2018 / 02:58
1
answer

ScrollView does not scroll up

I am trying to generate a message sale that scrolls down as I insert text in a% multiline% code, but the% co_of% does not work when I try to move it up to see the previous messages. <ScrollView android:id="@+id/idChat" android:layou...
asked by 01.04.2018 / 12:24
2
answers

What does it fail to send my string String to my Post service?

Hi, I'm new working with Android Studio, I work in POST WEB SERVICE, I want to send a String string of base64, at the moment of sending my data to my string string you will generate "\" line breaks as you could solve my error: HTTP REQUEST:...
asked by 09.04.2018 / 22:22
0
answers

Draw several actors of the same class on the screen (LibGDX JAVA)

When creating different actors of the same class, each one with a different position when executing the program only creates the last created actor. public class MyGdxAjedrez extends ApplicationAdapter { private SpriteBatch lienzo; priv...
asked by 10.04.2018 / 14:38
0
answers

How to read a file inside a servlet from a jsp

I'm doing an application where I have to upload a file to the server, which I already did but I do not know how to read it inside a servlet and show its contents. This is the jsp: <h1>Subir archivos</h1> <form method="post" a...
asked by 29.05.2018 / 02:06
1
answer

How to change the value of a mock at run time?

I have the following method: public void ingresarCarga() { Integer idCarga = ingresoDao.ingresar(); ResultadoIngreso resultado; do { resultado = archivoDao.procesar(); try { if(resultado.getCodigo() ==...
asked by 29.05.2018 / 16:36
2
answers

List files from a directory in Java

I have this code with which I am listing the .sql files in a directory, specifically 20 files whose name is their number. When the program lists the files it does it in the following way (below code). How can I do it in ascending order and not l...
asked by 30.05.2018 / 00:52
0
answers

Move a matrix to the right

I am creating a project in which labels are generated automatically depending on a matrix. The matrix contains notes from students and what I'm trying to do is create the labels automatically based on the notes in the matrix, that I have mana...
asked by 30.03.2018 / 10:31
0
answers

Open modal made with bootstrap with java MVC

I'm doing a page with java MVC and Bootstrap. I have a view that is a modal, and I want to call it from the java driver class. That is to say on my main page, I want to press a button and that I open the modal that is in another page, this to no...
asked by 26.03.2018 / 22:39