Questions tagged as 'java'

2
answers

Treeset contains repeated elements

I am trying to keep an ordered list without repeated elements. I have created a TreeSet, but I see that it inserts repeated elements and I do not see clearly why. If I use TreeSet.contains () it does not detect it either. Here the code TreeSet...
asked by 30.06.2017 / 12:04
1
answer

Java - Modify a JTable by means of an external Jframe

Hi, I have a question about a JTable . The program works by saving data of a product and then the list, but when wanting to modify by means of an external JFrame (that appears when pressing the EDIT button) I can not modify this data of the...
asked by 23.06.2017 / 11:14
1
answer

Stop TabView

I have two TabView and the problem is that if for example I have a Toast in Tab2 when opening Tab1 is executed, how can I make it so that it does not "exchange data", that is, if I am in Tab1 or Tab2 th...
asked by 23.06.2017 / 22:56
1
answer

Show image from the folder of a protected server with .htpasswd

I have a app in android showing images with this plugin . The problem is that I have added a .htpasswd to protect the images and now it does not show them to me, I have added to the url the parameters user:passwor...
asked by 23.06.2017 / 09:16
1
answer

Sockets with Java (server) and Python (client) without flush in python

Hi, I have a socket project (practice for now) and the problem is that on the client side (in python) I do not know how to clean or simulate the output buffer of the socket. The first message is sent "correctly", since it is the first and there...
asked by 07.07.2017 / 23:20
2
answers

Problems connecting java with mysql local network

I have a server Mysql installed and started in Raspberry pi with local address 192.xxx.0.1xx connected to the network and from another computer I try to establish a connection with a Java program with this code: public cla...
asked by 27.06.2017 / 16:56
2
answers

Fill Spinner with my Sqlite list

I have a Spinner with three positions 0, 1, 2 and what I want to do is create more positions with a list that I have in my Sqlite : final List lista = mDatabase.ReadCategorias(); Activity int flags[] = {R.draw...
asked by 26.06.2017 / 18:22
2
answers

Modify String

I would like to format a string in Java . Example, take the following string hola munDO. And let it be like this: Hola Mundo. The first letter of each word is capitalized.     
asked by 13.06.2017 / 01:22
1
answer

Fill arrayList from Database in Java

I am trying to make a didactic software, to fill a Java arrayList with the data of a database table. I have managed to fill it so it seems, because the system.out.println shows me three objects that are the three objects that are in the d...
asked by 12.06.2017 / 18:19
1
answer

Problem receiving a socket on android

I have a Raspberry sending some data to my Android APP and the only way it works for me is the following APP: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {...
asked by 12.06.2017 / 18:16