Questions tagged as 'java'

1
answer

Listview lines disappear when scrolling

I'm using listview and populating it with cursoradapter . Scrolling up and down the lines disappear. If I start with 30 elements, as I scroll up and down I get less ... until I get more or less number of lines without scrolling....
asked by 07.02.2016 / 23:25
0
answers

How to use JProgressBar with reads of files in excel

I have a method that receives a file of type Excel, and a Jtable. This method reads the file and throws the data contained within it into the jTable. import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; im...
asked by 10.03.2016 / 18:24
1
answer

How to access an inherited attribute in an entity with a query in Spring Data

I have the Client entity that extends Person: @Entity @Table(name = "cliente") @PrimaryKeyJoinColumn(name="id_pessoa") @Document(indexName="cliente") public class Cliente extends Pessoa implements Serializable { Person has the attribute:...
asked by 10.03.2016 / 15:28
1
answer

How to manipulate a JSON with fasterXML in java?

I have a json that comes from the MongoDB bank, I have to get and manipulate json using fasterXml. I will have to get the json properties names and separate them with period (.) Instead of comma (,) Type like this: "type" : "object", "id"...
asked by 01.02.2016 / 20:03
1
answer

Find current location [duplicate]

I'm developing an application where I need to remove the current location of the user, the problem is that the code I developed returns me the last coordinates in the device and I just wanted the current ones but not always only after mine pos...
asked by 31.01.2016 / 09:45
1
answer

JavaFX TextField picking up the event

I would like to know which event when exiting the object TextField of JavaFx , changes a value of another object. if (textFieldC1.getText().equals("50")) { slider1.setValue(Double.valueOf(textFieldC1.getText())); }     
asked by 29.01.2016 / 20:00
0
answers

AngularJs + (Spring MVC or Specification)

Galera, I'm starting the development of a system (java), and I'm in doubt about the technology. The system is totally restricted (login / password) and will be available on the internet, so I need security. I know a little Angular and wanted...
asked by 02.02.2016 / 17:14
0
answers

ImageView on Android is it possible to zoom? [duplicate]

In ImageView , you can zoom in on the image in the ImageView field defined. <ImageView android:id="@+id/imageView1" android:layout_width="fill_parent" android:layout_height="fill_parent"...
asked by 03.02.2016 / 00:41
1
answer

Can I cancel a JDBC connection?

I'm using the following code in a Thread: try { Class.forName("org.postgresql.Driver"); DriverManager.setLoginTimeout(60); conexao = DriverManager.getConnection(url,usuario,senha);...
asked by 22.02.2016 / 14:06
1
answer

How to execute a method at the end of the section? [duplicate]

I need to execute a certain method when the section is closed (when the user clicks close the browser). I'm working with JSP and I'm not sure how I can do this.     
asked by 22.02.2016 / 12:37