Questions tagged as 'java'

2
answers

To send an image to a webservices, should I encode it to Base64? [closed]

I would like to know if to send the image from java I must first encode it.     
asked by 01.08.2016 / 15:50
0
answers

In what way can I imitate a HorizontalScroollView other than using one?

could help me telling me some or some ways to imitate a HorizontalScrollView , since I implemented one and I put buttons in it, but when I run the app (on the cell phone) it gets a lot stuck, I tried it on other cell phones but the same thing h...
asked by 30.07.2016 / 17:25
3
answers

How to restart a JFrame in Java without closing it?

I have an application in Java , which after a process, I need to restart, but not close. That is to say: I need all the components to take the initial state, as when the JFrame opens for the first time. Does anyone know which...
asked by 01.08.2016 / 01:29
1
answer

Print the result of messages received as a subscriber in a JTextArea

I am trying to make a program for an IoT project using the MQTT protocol, my problem is to print what I receive in a JTextArea subscriber status. I tried to update the JTextArea for every time a message arrived in messageArrived () and publish i...
asked by 24.04.2016 / 21:46
2
answers

Arraylist of objects, change the value of an attribute?

My zoo needs to add animals, for that the user writes: Number of different animals that the zoo will have. (ex: 3) Name of different animals that the zoo will have (ex: Elephant, gorilla, tiger) Amount of animals that will be added to th...
asked by 04.11.2018 / 05:40
0
answers

ReentrantLock and Condition

Could someone explain to me how to use .newCondition of the'ReentrantLock' class and .await of the interface Condition ? and, how does it work internally?     
asked by 03.03.2016 / 01:12
2
answers

Read and process more than one JAVA flat file

I have a method that allows me to read and load a flat file into the database, read it and separate it until finally loading it into the table. The problem is that I would like to be able to make a "massive load of data" that is, be able to read...
asked by 02.08.2018 / 18:49
1
answer

Avoid Deploying menu from icon in JFrame

Good afternoon. How can I prevent this menu from being displayed when I press the frame icon? Thank you very much.     
asked by 14.09.2016 / 21:14
0
answers

Doubts about set (Minimum | Maximum | Preferred) Size in java

I had a problem with a frame made in java to resize its components, and in one answer I found that the use of set(Minimum|Maximum|Preferred)Size methods were not recommended at all in establishing the dimensions of both the frame and its...
asked by 18.09.2016 / 22:25
1
answer

Closed Logback Error in Concurrent filter

I'm having a problem using the logback filters, below I leave the configuration of my appender . <appender name="console" class="ar.com.custom.logging.logback.UdpAppender"> <filter class="ch.qos.logback.core.filter.EvaluatorFil...
asked by 22.03.2016 / 20:02