Questions tagged as 'java'

2
answers

Sort arraylist by two parameters

I have java a class Mensaje with the attributes: String Tipo int Orden String Contenido In a ArrayList I add several instances of this class The problem arises when I have to order it in such a way that I stay above sorted...
asked by 27.03.2018 / 16:00
1
answer

How to get the id (int) of several layouts with variables listed in Android?

Good, I would like to know how to get the id of a series of layouts that have names of similar variables, in this case their suffix is a number. I want to store your IDs in an array. But obviously I can not change the number by a concatenatio...
asked by 20.06.2017 / 00:54
1
answer

Bring a url with special characters

I have a web service made in java in the Netbeans IDE, in which I want to bring back a url that contains special characters like the following + url example: link When I use the get method to return the value to consult (ie the name of the...
asked by 20.06.2017 / 23:56
1
answer

Error editing data from a Sqlite Database

I explain, I can add data to my database Sqlite but I can not edit it, I comment. In my RecordatoriosAdapter I have the following method: private void editTaskDialog(final Recordatorios recordatorios) { LayoutInflater infl...
asked by 20.06.2017 / 00:54
1
answer

place an image to Label in javaFx

I would like to put an image at label of the Fx library. I have tried but I can not find any method that has this function. Label label= new Label(); label.setBackgraund();     
asked by 06.06.2017 / 16:36
1
answer

Problem when sending and receiving data

I am trying to perform two processes using bean, my problem is that I can not find the way these processes are carried out continuously. The first process is to send an object and the second process is the response of it. @Component public cla...
asked by 06.06.2017 / 12:46
1
answer

Query about java variables

The problem is that it does not let me call the variables of hora1 , minuto1 and segundo1 at the end of the method to make the impression import javax.swing.JOptionPane; public class menus { public menus(){ }...
asked by 28.05.2017 / 06:25
2
answers

Help to store this data

I am interested in saving two types of data, String and int. I have to store numbers so that: int: 1/ String:"Uno" ... int: 89/ String:"Ochenta y nueve" I know that in other languages there are tuples, but I do not know how to store it in j...
asked by 26.05.2017 / 13:17
1
answer

Is it possible to mount two ImageIcon in a JOptionPane?

I would like two images to appear in a single JOptionPane of either input or message. Object seleccion = JOptionPane.showInputDialog( null, "Seleccion Respuesta Correcta", "Preguntas",JOptionPane.QUESTION_MESSA...
asked by 04.07.2017 / 22:30
1
answer

Store a date in java with the SET and GETTERS methods

my question is how can I store a date in a JFrame having a jDateChooser to select that date, I use the SET and GETTERS methods. My attribute of class Producto is Date fechaVencimiento which has the methods public Date getFechaV...
asked by 29.05.2017 / 04:24