Questions tagged as 'java'

1
answer

Project imported from Netbens from one machine to another [closed]

When importing a project from one machine to another it does not run and fails to find the file:    org / jetbrains / kotlin / ant / antlib.xml. How do I resolve it?     
asked by 08.05.2017 / 22:18
3
answers

How to make an AlertDialog run once at the start of an Activity?

I have an alert message that is in the main activity and that is executed at the moment of entering that activity, how can I make the alert message show once, that is, when it is for example in the activity 2 and return to the main activity the...
asked by 09.05.2017 / 02:22
2
answers

Check thread asleep from another thread

I have a problem with the java threads. The issue is that I have a thread that runs every 10 minutes, but it takes a few times to execute X times, and other times And, so to speak. They can be 5 seconds, or 7 or 10, you do not know. The issue is...
asked by 30.05.2017 / 12:44
1
answer

java.lang.ClassCastException: java.lang.String can not be cast to Data.Locality

My question is this, how can I store the identifier and the name of the locality at the time of auto completion of a JComboBox? Because when I filter inside the combo, I want to store the selected element but I get an error. java.lang.ClassCas...
asked by 01.05.2017 / 23:09
1
answer

Error using a WebView, NullPointerException

Good I have a problem when doing my WebView. 05-02 23:38:11.239 29315-29315/srf.lec.noctambuloss E/AndroidRuntime: FATAL EXCEPTION: main Process: srf.lec.noctambuloss, PID:...
asked by 03.05.2017 / 04:42
1
answer

Help with an exercise where Do Implement

Good I need help the following code is not doing the evaluation of if after asking its continue it returns to the beginning of the loop. import java.util.Scanner; public class EjercicioCinco { public static void main(String[]args)...
asked by 02.05.2017 / 13:04
5
answers

"replaceAll ()" in java does not work correctly

Good morning, I am using a small line of code to clean the price information obtained through "scrap". Since I get from different countries, I have different currencies and I want to leave the number clean. For this I use: price.select("...
asked by 12.03.2017 / 01:26
1
answer

Export data with ExtJS in Excel file

I am trying to export one or many records from a panel to an Excel template. Today I can only export a selected record but I want to improve this part. I have tried several possibilities but either print only one record or print the entire panel...
asked by 21.03.2017 / 17:17
1
answer

Initialize a Lazy list in hibernate using a criterion with a parameterized SetAlias

I have the following code: criterio = session.createCriteria(Tecnico.class) .add(Restrictions.eq("expediente", usuario)) .add(Restrictions.eq("password", contrasenia)) .createAlias("empresa", "empresa", JoinType.LEFT_OUTER_JOIN) .setF...
asked by 10.03.2017 / 16:42
2
answers

How to grant permits in a fragment?

I am working on an app that needs to make calls, my problem is that I do not make the calls because I do not have the permission, how do I grant the permissions within a fragment?     
asked by 23.03.2017 / 23:22