Questions tagged as 'java'

1
answer

Change attributes from one Object to another

In my java application I have an object declared as Extrair extrair = new Extrair(); And I use this object and its attributes for my servlet. But I need to pass this object to .jsp. In the jsp I use extrair = request.getAttribute();...
asked by 26.08.2014 / 05:23
1
answer

Client Rest / Error in doInBackground () [closed]

Apparently there are no errors in the codes, but I do not know why it's pointing out an error in the //if (log.loginstatus(user,pass)=="1"); method. Except for error there is no method in doInBackGround that changes the thread . S...
asked by 17.08.2014 / 18:17
1
answer

How to ensure all threads are executed?

How can I ensure that the Get method of a FutureTask will only be called when all threads have already executed? I have this method: for (int j = 0; j < threadNum; j++) { FutureTask<Integer> futureTask = taskList.get(j);...
asked by 20.01.2015 / 16:18
1
answer

How to enable self-completion in declarative Views in the Crux Framework?

When creating a new project (or even when I import existing projects) in Eclipse, how can I enable the autocompletion of components in views? I have to import some catalog, or would this be a setting in Eclipse itself?     
asked by 27.08.2014 / 15:21
1
answer

Offline database [duplicate]

I am creating a program that uses a database on file. I was told that SQLite is for this, I can create database with it and access per file. In the case then would I use the SQL or JDBC library to connect to this database? Does SQL already com...
asked by 26.08.2014 / 19:29
1
answer

SimpleJaxWsServiceExporter - BaseAddress

I created a Web Service with JAX-WS and used Spring to put it online and also to decrease the use of XML. Problem is that when I declare the SimpleJaxWsServiceExporter in the Spring configuration file I have to put the baseAddress attribute that...
asked by 28.08.2014 / 15:35
2
answers

Change title color ActionBar

This is my new layout, however the overflow items have gone blank with white background, and I need white background with black letters. Remembering that I used the stylegenerator. <style name="Theme.Datalayer" parent="@android:style/The...
asked by 28.08.2014 / 20:12
1
answer

How to use the subclipse in eclipse kepler of ubuntu 14.04 64 bits

I have already made all the settings indicated on the site: link And when I access the Team menu - > SVN displays the following error message: Failed to load JavaHL Library. These are the errors that were encountered: no libsvnjavahl-1...
asked by 05.11.2014 / 13:50
1
answer

Change background color of the title of a Dialog

I have the following dialog box: ThegreenpartwassetwithLinearLayout,buttheandroid:background="#77FF77" attribute did not change the color of the title bar. Dialog Java: public void ver_log(View v){ DialogLog(); } private void Dia...
asked by 26.12.2014 / 01:15
1
answer

Fill values in a vector and ask for position and values

public class teste4 { Scanner op = new Scanner(System.in); int[] vetor = new int[10];{ for (int i = 0; i < vetor.length; i++) { System.out.println("Digite o valor da posição " + i); vetor[i] = op.nextInt(); } }...
asked by 18.09.2014 / 01:11