Questions tagged as 'java'

0
answers

Listener for monetary mask and call method

I have a class to apply the money mask, I apply this class in the editText listener. Being this a discount field I need him to do two things 1 - show the value formatted in our currency ex R $ 21,36 (this is Ok) 2 - need to call a method to c...
asked by 25.05.2017 / 04:26
0
answers

How to put an Expandable ListView in an Aba?

Opa, I can not configure this type of listView in an ABA. For example, I have screen 1 when I click the button on screen 1 it goes to the screen that I want to put the tab (named after the college campuses). Only within each tab, I want...
asked by 25.05.2017 / 15:44
2
answers

How can I condition or check an item in a listview?

How can I condition or check an item in a listview? I have an Array with some names, I would like to identify the name clicked so I could make a condition, for example I clicked on "Andrew Murray" then from that item it will pull information...
asked by 25.05.2017 / 14:34
2
answers

How to add custom methods to all spring data services

I've implemented methods on a Repository so all my child repositories have the same methods. Lowers the code of how I implemented a% custom% This is the interface: @NoRepositoryBean public interface BaseMyRepository<T, ID exte...
asked by 16.05.2017 / 23:43
1
answer

Consuming REST on Wordpress

Good morning! Implemented a Rest API with Spring and would like to consume it on a website within Wordpress. Is this done through Plugins or Direct with code inside the Post? For a Post Request, how would you link a form's data in the h...
asked by 19.05.2017 / 16:21
1
answer

using EntityManager to return a List

Well, I'm having a problem when I get a list of phones from the bank, these phones have to belong to a CPF. In my query I do this public List<Telefone> buscar(Proprietario proprietario) { return this.manager.createQuery("select...
asked by 19.05.2017 / 03:56
1
answer

Set selected ComboBox item as clicked on jTable

I'm trying to fill in the fields of a form as the item clicked on jTable. Text fields are filled in normally, but the comboBox remains with the default value selected. //método que preenche a comboBox public void fillCBFornecedor(){ fornCt...
asked by 19.05.2017 / 01:28
1
answer

Why the app does not leave the white screen and does not give errors?

I'm making a pretty basic app with a screen that simulates a bingo card. The problem is that when I run the code, without checking for repeated numbers (because there are no repeated numbers in a bingo card), the program runs quietly: publi...
asked by 31.05.2017 / 06:53
1
answer

insert data from an array into the database - java

I am creating a system that at some point must create a request and this request has several items that I put inside a ListList. I have a request table in the database, how will I create my method in DAO to save the order items in the order tabl...
asked by 31.05.2017 / 04:51
1
answer

Toast with problem

I'm new to android, my question is silly, my toast was just to appear when the user entered the wrong password or email, but it appears even when it's correct, what's wrong with my code? try { JSONObject json = new JSONObject(resu...
asked by 30.05.2017 / 22:22