Questions tagged as 'java'

1
answer

Select an entire row - JTable Java

When I click on the checkbox, only the cell where the checkbox is is selected, as I do so that the entire row is selected at the moment that I select the checkbox. This is my Render class. public class Mirender extends DefaultTableCellRe...
asked by 10.01.2017 / 18:22
2
answers

Problem receiving data by GET on android

private static PostResponseAsyncTask task; task = new PostResponseAsyncTask(Registrados_HassMovil.this); task.execute(url_mostrarinformacion+"?fecha="+registro.getText().toString()+"&huerto="+huerto.getText().toString());    Here the probl...
asked by 10.01.2017 / 09:18
2
answers

Error when testing the ionic application on the cell phone

I want to test the ionic application on the cell phone, not on an emulator, by executing the command: ionic run android and having the cell phone in debugging mode activated and connected to the PC, I receive the following error: Error o...
asked by 09.01.2017 / 20:22
1
answer

Scanner assigned by reference

I'm trying to collect several numbers to add them. The first number I receive is the number of numbers that will be entered per console, and the rest are the numbers to be added separated by a space, so that the scanner receives something like t...
asked by 21.11.2016 / 19:46
1
answer

Play JButton "next" move to other options without leaving the JPanel?

A question, if I want to play in the "botonsiguiente" of a JPanel, and that I see several different options, but without opening a new window, how can I do it? My little program is about several problems to solve, I already did the first one, ho...
asked by 28.10.2016 / 19:46
1
answer

No static method getDefaultAPIVersion when calling FacebookSdk.sdkInitialize

I have migrated a project I had done 2 years ago from Eclipse to Android Studio, and in doing so I realized that Facebook classes no longer work the same. After also migrating the classes to the Facebook v4.0 API and getting the Android Studio t...
asked by 26.10.2016 / 14:14
1
answer

Go through all the sheets of an excel - With JAVA and POI

Good day, I have a functionality that replaces the text of some cells in an Excel document, so far it works, but I ran into a problem, when they are excel files that have more than one sheet per book, only the first one runs through the first sh...
asked by 17.11.2016 / 14:36
2
answers

consume Json in android studio FATAL EXCEPTION: Thread-13149

I have the following code to consume data from a webservice: public String enviardatosGet(String user, String pass){ URL url = null; String linea = ""; int respuesta = 0; StringBuilder resul = null; try { url = new...
asked by 24.11.2016 / 22:32
1
answer

Set a USER_AGENT in an android application, is it the same for HTTP?

I am trying to establish the USER_AGENT in an Android application, so that it can navigate, with which I indicate it. I am using the following lines of code: public void setUserAgent(){ DefaultHttpClient http = new DefaultHttpClient();...
asked by 02.11.2016 / 18:19
1
answer

They know how to add a JTable to a JFrame

I want to add a JTable to a JFrame to pure code without the NetBeans Desing tool     
asked by 31.10.2016 / 02:22