Questions tagged as 'java'

1
answer

How to configure a JSON send with POST?

I need to make an API that captures some machine data (OS name, cpu usage, network usage etc.) and send as JSON. I was able to capture the data and make it appear on the console in the form of JSON, however, I never moved with the SEND of data....
asked by 01.06.2018 / 16:33
3
answers

ListView with different layouts by lines, according to filtered value

I have a single table in the DB, which contains records with fields like: tipo, data, hora, cliente, historico According to the value of tipo , the cliente field is mandatory, ie vazio . To create a ListView...
asked by 30.01.2018 / 11:43
1
answer

How to switch from the second to the third screen?

Recently I started to develop a small application that relies totally on switching screens from buttons. There are still many details to be resolved, but what worries me now is how to make the switch to change the screen. I have already been abl...
asked by 25.05.2018 / 15:14
0
answers

Error persisting byte array in postgresql

Gentlemen, I receive an exception ERROR SqlExceptionHelper:131 - ERRO: coluna "ds_inddir" é do tipo bytea mas expressão é do tipo bigint the mapping of the table this way @Lob @Basic(fetch= FetchType.EAGER) @Column(name = "ds_poldir") pri...
asked by 25.05.2018 / 01:59
1
answer

How to open an Activity from a java class?

I have a java class called Firebase, this class only does firebase functions ... I am authenticating a new user in firebase, so far so good .. O problem is that I can not move to another Activity, it's giving the following error: 05-24 23:...
asked by 25.05.2018 / 02:01
0
answers

Problem calling method on AndroidStudio

I want to call a method in Android Studio after the user selects an option. However, I have tried in several ways through getItemId (), however, I call the method and nothing happens. Will it be a problem in the takeScreenshot method, or should...
asked by 03.06.2018 / 03:45
1
answer

How to get a char data from JOptionPane?

char cadastrar; cadastrar = JOptionPane.showInputDialog("cadastrar: A-aluno P-professor M-medico");     
asked by 23.05.2018 / 22:28
0
answers

Pick up data from a JNA Pointer

I'm currently working with jna . It's been a struggle to learn. but I ended up finding jnaerator that generates the entire interface with the methods directly with header.h . But I caught in a part. In a given method, the retu...
asked by 24.05.2018 / 01:44
0
answers

Ireport List within List

I have a List List batches = new ArrayList Your content is Name, email phone, Item ArrayList Soon on the page display I put on a table so Lot 1 First name Augusto Email XPTO Items: fish, cat, touch, I would like to know how to...
asked by 26.05.2018 / 23:10
1
answer

Return database search data in JTable

I'm developing an interface that should return a JTable of the values of a mysql table. I developed the following method: public class Teste extends javax.swing.JFrame { private JTable table; DefaultTableModel modelo = new Defa...
asked by 27.05.2018 / 00:45