Questions tagged as 'java'

1
answer

How do I disable the third and fourth EditText if the first one is not populated?

I have three EditText and I need to check if the first EditText is empty and if the second EditText is also empty. Affirmative case I should disable the third EditText. How can I do this?     
asked by 16.08.2017 / 16:36
2
answers

Creating a custom class of type WritableComparator

I'm creating an application to process video in a distributed way in hadoop using the map-reduce paradigm. I have several videos stored in the cluster and I wish from them to create a single video file. To do this, I'm extracting the frames...
asked by 07.08.2017 / 22:13
1
answer

RelativeLayout "anchored" at bottom of screen

Next I want to make this layout (from outer div id) below anchor at the bottom of the screen. But notice the following he is 0dp of height purposely, I do not want it to appear unless I click the button. So then everything works fine ... &...
asked by 14.07.2017 / 14:50
1
answer

Convert a to_date sql to a date java

My problem is this, I have to grab SQL insert lines and check if the formats in the TO_DATE function in these inserts are valid with a java method. For a 'DD / MM / YYYY' format, SimpleDateFormat solves my problem, but sometimes an insert is req...
asked by 07.07.2017 / 02:12
1
answer

Bring all table records with jpa and eclipselink

Well, I have a question here at JPA. Today I have a method to fetch the UFs by ID, as in the example below: public Uf consulta(Integer id) { EntityManager em = getEM(); Uf uf = new Uf(); try { em.getTransaction().begin();...
asked by 15.07.2017 / 02:34
1
answer

How do I get jsoup to only pass specific parts of the site?

How do I make it spend only part of the 1.25 € for String? link     
asked by 06.07.2017 / 13:31
1
answer

Clear components within a Tab

I have a method that cleans my components, however, it can not clean components that are within Tab . I was trying to apply it as follows: if (fieldValue instanceof Tab) { for (Tab tab : ((Tab) fieldValue).getTabPane().getTabs())...
asked by 27.07.2017 / 19:19
1
answer

Generate table contents through click action

I'm having a web project that needs to implement functions to generate the contents of a table according to the chosen item. For example in my dashboard I have a tower icon, and just below I have a table with all the equipment listed. The questi...
asked by 27.07.2017 / 02:09
1
answer

Two spinners that can not have the same value selected

Hello, I have a code that has two spinners and if we select an option in a spinner in the other this option ceases to exist, what I did was: Whenever you click on the spinner it does clear and adds all and then removes what is selected in the ot...
asked by 26.07.2017 / 23:45
1
answer

Change specific Tab background programmatically

I have a TabLayout in which I create the tabs programmatically in this method: mTabLayout.removeAllTabs(); for(int i = 0; i < list(); i++) { mTabLayout.addTab(mTabLayout.newTab().setText(list(i).name), false); } TabLayout.Tab n...
asked by 31.07.2017 / 23:10