Questions tagged as 'java'

0
answers

I can not update jframe from a java Thread

I have a code that reads the serial port through a thread, but when I try to update a label I can not. I implemented a SerialRead Runnable class, and in that class I execute a loop to read the serial port. So far so good, I can read the serial p...
asked by 30.11.2015 / 21:43
1
answer

Why does the dataScroller of primefaces stop fetching the records?

My xhtml looks like this: <p:dataScroller ajax="true" id="listaDiarios" chunkSize="3" lazy="true" value="#{managedBeanUsuario.lazyRegistrosDiarios}" columnClasses="first-letter-page-diary,second-letter-page-diary" var="re...
asked by 28.11.2015 / 21:52
0
answers

Show Fragment in Activity with transition

Good afternoon, I have a main activity with a button and I would like that when the person clicks on this button, that fragment opens on the screen, there are three buttons inside a linear layout. <FrameLayout xmlns:android="http://schemas....
asked by 27.11.2015 / 17:51
1
answer

Cloning a class

I'm "trying" by cloning the following class: public class CadHorario implements Serializable, Cloneable { private int cdHorario; ... private Date horarioInicio; private Date horarioFim; private DiasDaSemana diasDaSemana;...
asked by 27.11.2015 / 13:42
0
answers

Problem with sessions in Tomcat

I would like to know the following personnel, an enterprise application has a large number of sessions in manager of Tomcat . The system has been increasing in the number of users and I would like to know tips from colleagues of...
asked by 27.10.2015 / 13:49
0
answers

Convert Bitmap to Mat

Hello, I'm trying to get BLOBS saved in a SQLite database and convert them to Bitmap. After that, I need to convert these Bitmaps to Mat for use with OpenCV. The problem is that when I open the camera (when these photos should be loaded), the ap...
asked by 28.10.2015 / 14:26
1
answer

Save data to DB and retrieve ID automatically [duplicate]

This is the code to save to the database using the DAO pattern, where I want to already recover the id of the registry in order to save the Usuario table that has FOREIGN KEY of the Habilitacao table: p> pub...
asked by 28.10.2015 / 16:20
0
answers

Sending msg by whatsapp for direct by an application

It is possible to send a message via whatsapp to a pre-determined contact directly from my application. Without opening the application and having to select the contact and send the message there.     
asked by 29.10.2015 / 13:26
1
answer

Compare rows with txt Java Android

I would like to create a method that compares each line of my text view with each line of a txt file Here I go through the txt file For example, in my text view the words blue green yellow green In my txt I have black blue green y...
asked by 28.09.2015 / 02:54
2
answers

What is the behavior of the JSF 2 life cycle when validating mandatory fields?

I have a customer registration form with two fields, the first field is the CPF with mandatory completion and the second Name with optional fill. When editing a customer with CPF and Name filled in, delete both fields and click Save, JSF returns...
asked by 28.09.2015 / 13:53