Questions tagged as 'java'

1
answer

Bring only the name in the ListView, but relate to the ID

I have a WebService that lists all my users and brings users to the bank. I have a class Usuario { int id; String nome; } With its builders, gets and sets, etc. And I can return all my users. However, I want to throw all this in a...
asked by 23.06.2015 / 02:18
1
answer

Unreachable Statement

I need help, at line 107 android studio shows an error that says:    "Error: (107, 48) error: unreachable statement" Since Line 106, which is AdapterView.AdapterContextMenuInfo info, is in red. When I remove line 107 which is the...
asked by 15.07.2015 / 19:17
2
answers

Update JLabel with countdown

I have a For that counts down, but when I pass the value to Label it only takes the last value of the loop. This is my method: public static void contagemRegressiva(){ System.out.println("Start"); int i=0;...
asked by 09.07.2015 / 05:07
2
answers

How to hide title of JTabbedPane tabs?

I need to hide the JTabbedPane titles because I'm creating my own buttons to access the tabs.     
asked by 15.07.2015 / 14:04
2
answers

Function only returns zero

Good afternoon !! I would like your help in the following question: I have the following function that returns me as result 0 only: public double calorEspecifico(){ double cp; cp = (fruto.getCp1() + fruto.getCp2(...
asked by 23.06.2015 / 19:05
1
answer

How to execute java at the prompt by Eclipse

I made a code in java and in it I use "\ r" which only works at the prompt and would like to know how to execute this code at the prompt by eclipse itself.     
asked by 06.07.2015 / 21:30
1
answer

What is RecyclerView on Android?

What is the function of RecyclerView in an Android application?     
asked by 24.08.2015 / 21:44
2
answers

Problems with sockets in java, how to send and receive messages simultaneously between client and server?

I'm working with sockets in java and I was able to find the following problem, writing the server class I sent a message to the client to read, so far, ok !! But when I try to send a message to the server from the client, I can not get the two m...
asked by 03.07.2016 / 22:57
2
answers

Error using string of values

Hello, I'm using string within values. It's all working fine, but when the sentence is made up of something that comes from the bank (for example) and a string, it's putting numbers instead of text. numeroAvaliacoes.setText(" " + object.get...
asked by 12.12.2016 / 14:05
2
answers

Underline a word inside a TextView [duplicate]

How can I emphasize, leave a single word inside a TextView in bold / italic? For example: <TextView android:text="Abelha Barco Casa Dado" android:layout_width="wrap_content" android:layout...
asked by 22.12.2016 / 20:50