Questions tagged as 'java'

1
answer

Align the contents of a JTextArea to the left

Hello! How could I align the content of a JTextArea to the left? I've tried with a setAlignmentY(this.LEFT_ALIGNMENT); But it seems not to work. Thank you, best regards!     
asked by 26.05.2018 / 08:47
1
answer

Connection database in JSP

I am trying to connect to the database using JSP and in eclipse, but I get an error. I have imported the MySQL libraries, I have put connectors .. and it still does not work, this is the code: <%@page import="java.util.*"%> <%@page...
asked by 22.05.2018 / 19:16
2
answers

Program in Java does not connect correctly with MySQL in Ubuntu

I have a problem with my java program, because my program does not find the bd. this is my class connect here is all fine because sis is connected to My sql but when I make a query just throws me the message I can not actalizar that I have wh...
asked by 15.05.2018 / 02:49
0
answers

Occurrence of values in a double list linked in Java

I am learning java and I am working with nodes, I want to create a method that returns the most used values in the list and how many times each one is used, however, when printing the values, the method does not return me exactly what I want...
asked by 19.06.2018 / 03:36
0
answers

Java nested class problems Web services

I have the following class that I generated when making a connection to a web services, this class is called StringMap: package entidades; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; impo...
asked by 18.05.2018 / 17:48
0
answers

Error I do not select the department combo when searching for the id of the province

String[] opciones={"Codigo","Nombre"}; String n1= (String) JOptionPane.showInputDialog(this,"Elija Opciones ","Buscar Empleado",JOptionPane.INFORMATION_MESSAGE,null,opciones,opciones[0]); if(n1.equalsIgnoreCase("Codigo"))...
asked by 06.05.2018 / 16:37
1
answer

Problems with XML in android studio

Hello, I am learning to use android studio and I had a problem. The thing is I want to recreate the screen design I did next and had planned to mount it in two linearlayout, which would be the row marked with a 1 and 2, then put different elemen...
asked by 17.05.2018 / 18:45
0
answers

com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token

I'm trying to map a JSON to an object in java, the JSON is something like this: { "usage": { "text_characters": 22, "features": 1, "text_units": 1 }, "entities": [{ "count": 1, "text": "pisos...
asked by 06.05.2018 / 21:24
2
answers

Get Array list with JSON in android studio

I have a problem that takes several hours to bother me. I have a dialog that is based on notifying if there is a new version of the application and sends a message with the available version along with the changes in it. I have this code:...
asked by 06.05.2018 / 02:57
1
answer

SSL SOCKET JAVA

I have to do an exercise that does the following:    Establish connection between Server and Client through SSL socket. The   The first thing they do is introduce themselves and verify that they are trustworthy   through certificates that I m...
asked by 07.05.2018 / 17:59