Questions tagged as 'java'

0
answers

How to add fragments in order within an activity with a button?

This is the query I have, I have a ContainerActivity that contains an initial fragment, my RelevamientoFragment which is this screen In the floating button to add that they see the image, I have a case that opens another fragment, in this...
asked by 22.02.2018 / 01:57
1
answer

Update a record "amount" JAVA

I am practicing making a beverage sales system, in which I have a table with the products, with a button to add to the cart. If the selected product is ALREADY in the cart, it only increases its AMOUNT by 1. Otherwise, add it to the list and pla...
asked by 22.02.2018 / 18:57
1
answer

Threads when looking for files recursively java

I am trying to get the files and folders recursively in an ArrayList using threads, since the program if what I'm looking for has many files and directories remains frozen until it ends and I do not know very well what I have to do, this is the...
asked by 22.02.2018 / 20:01
0
answers

Save list of products chosen by the client

A query: I have a list of products, and for each of them both their name and their id are dynamic, for example I have 50 products, name = NAM + codigoproducto (NAM1, NAM2, NAM3, etc) This list is placed in an HTML table, which has a column for t...
asked by 22.02.2018 / 20:30
0
answers

EXPORT DATA FROM A HTML TABLE WITH PAGE TO EXCEL

I have this function to export data from a table that has pagination with Datatables, and it only exports me the view of the table and not all the columns. function exportGrid(tableid,filename) { var table= document.getElementById(ta...
asked by 22.02.2018 / 22:44
1
answer

How to show a single record of what a list in java returns?

I have the following code, which sends to call a query that returns a list to me and in console it sends me the suiente incidenciaAnioMesDet = anioMesDetService.findIncidenciaAnioMesDeByAnioMes(cvePersona, annio, 1); for (IncidenciaAnioMe...
asked by 22.02.2018 / 21:49
0
answers

Error creating a FrameLayout to play videos in WebView full screen

I created a webview to view a website with YouTube videos linked to it. However, these can not be viewed in full screen. In this previous question , where I asked about how to make such a solution, they responded with a Framelayout. The prob...
asked by 23.02.2018 / 00:59
0
answers

Error when inserting data into a table in PostgreSQL with Java Netbeans 8.2

I have a table with the fields: sales_id, date, name and address; of which the name and address are placed on the website, to register the sale, the user enters his name and address and at the time of sending the code must assign an id_venta and...
asked by 19.02.2018 / 13:41
0
answers

REST wrapper for SOAP service with support for HATEOAS

I did a REST wrapper to consume some SOAP services. Now I need to add support for HATEOAS but, for the resources I use the self generated classes with the library maven-jaxb2-plugin . For example, the auto generated class BookDetails...
asked by 20.02.2018 / 12:37
0
answers

I have problems with the DefaultTableModel class in java

My problem consists of the following: I have a JFrame, which contains a JTable with several fields, among these, there is one called Payment whose characteristic is to inform the user if a client within the list paid or not. In an area of the...
asked by 20.02.2018 / 06:20