Questions tagged as 'java'

2
answers

What is a class variable and an instance variable?

Good to the whole community. I have written this POST with the aim of improving understanding about class and instance variable . I searched the Internet, and what has been clear to me, is that: A class variable is when it is written as...
asked by 27.01.2017 / 23:04
0
answers

Get data from jtable

What I'm trying to do is something complex, first what I have is a table that is being filled with 3 values each time I press a button, so what I want to achieve is that by pressing another button I can get all the data from the table W...
asked by 23.06.2017 / 17:09
2
answers

Problem with opening Java ports

I am learning java and trying to do a client-server type chat using TCP, which will work online, the fact is that what I have done so far works very well locally, but when putting a remote ip address the client It connects very well to the serve...
asked by 18.06.2017 / 12:39
1
answer

How to assign listeners in java mvc desktop with several forms?

Good afternoon community I am developing a sales system in java with mvc and hibernate. and there is a problem, when accessing the main form after the login, I do not take the listeners into account and it does not allow me to open the follow...
asked by 17.06.2017 / 16:47
1
answer

ListView setSelection - select item but do not change the background

I have a problem, when wanting to select an item after filling the listview, it does not use the drawable that I have of background <item android:state_selected="true" android:drawable="@color/colorTouch"/> <item android:s...
asked by 21.06.2017 / 17:20
1
answer

Pass username between classes

I need to pass the content of the object that has the username between different classes ... I tried it with an intent but it does not work for me User login class. public class Login extends AppCompatActivity implements View.OnClickListe...
asked by 19.06.2017 / 11:14
1
answer

Error creating a new project in Android Studio 2.3.3

When I create a new project in Android Studio 2.3.3 I get the following error:    Your Android SDK is missing, out of date, or is missing templates. You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs Ca...
asked by 16.06.2017 / 02:47
0
answers

Send the content to a Java program and execute it

I wanted to know if there is a way, through a form with html, to send the data entered by the user and that this data is received in a Java program so that a program with these values is executed. Currently the Java program I execute it by en...
asked by 15.06.2017 / 17:54
1
answer

Divide classes with parameters with Java

I have this code that calls a file txt , stores it in a ArrayList , and finally unordered and sorts all the characters in it. public static void main (String args []) throws IOException{ String linea = "PALABRA2.TXT"; ArrayLi...
asked by 16.06.2017 / 00:23
1
answer

Request to a webService encapsulated in a bluetooth datagram?

You see, I have a server in a raspberry. This server generates a distributed network topology based on ad-hoc (Mesh Network). I have several web services implemented (see topology, traffic sniffer in the network ..). The thing is that now I want...
asked by 20.06.2017 / 11:11