Questions tagged as 'java'

0
answers

Replace RequestContext with FacesContext

I currently use the following functions that are Primefaces : RequestContext.getCurrentInstance().update("ComponentTal") RequestContext.getCurrentInstance().execute("FuncaoJavaScript") How can I replace them using...
asked by 24.08.2017 / 14:18
1
answer

Calling element of a method in another method

When you run the program, in the "exibirVetores(int[] vet, int[] vetInvertida)" method, the Strings "inverted" and "normal" are empty ( null ). public class metodos02 { public static Scanner sc = new Scanner(System.in);...
asked by 17.08.2017 / 21:46
1
answer

How to find position of the occurrence of a String in a file in JAVA?

I'm having to implement a job for college, where I need to read a text file, word for word, save it to a hash table and then, according to other words read in a second file, report the occurrence of each one of them. So far so good! The proble...
asked by 18.08.2017 / 00:00
1
answer

Image not updated [closed]

I am making an application where I use a JFileChooser to choose an image, I take that image and I copy it to a folder that is in network. After that it executes a method that shows this image saved in a Label, transformed into icon. The probl...
asked by 17.08.2017 / 17:39
1
answer

How do I leave my Activity on 2 plan executing a function? [duplicate]

My project is to put a WebView in the Activity and when I leave the application, and it stays in the background, updating from time to time the Activity so that the WebView Web site updates too. someone help me?     
asked by 15.08.2017 / 20:40
1
answer

Add +1 Variable to each created object

I am creating a Candidate class, where I will pass a name and a candidate number. In it I created a vector, to store the candidate's number. So that you do not do not equal a candidate number. I created a variable, aux and a cont, to scan the fo...
asked by 17.08.2017 / 00:20
0
answers

Can I use SDK and NDK with Android Studio? [duplicate]

Good Night! I have an application that I made using sdk. However, there was a need to use NDK to be able to use some pre-existing functions in C / C ++. How does this work? I need to redo the project in order to use NDK or I can continue using...
asked by 07.08.2017 / 04:34
0
answers

Error with Java EE server on JBoss server

Hello. I made a project in NetBeans on a computer and it works normal, but when I try to run the same project on another computer it returns this error: Implantando C:\Projetos\confeccao\dist\confeccao.war {"JBAS014653: Composite operation...
asked by 06.08.2017 / 21:53
0
answers

How to call a class via a Menu

I have the following class below where the side menu calls are, but what I want to do, if I implement all the menus in this class the project will get too large, and I wanted each menu to call a different class , for example: public boolean on...
asked by 06.08.2017 / 03:03
1
answer

Android Studio ScrollView - Is there any way to change the size via code?

I have a Vertical ScrollView with 20 buttons positioned in 5x2 in the view, when I use the scroll I see the other 10 buttons that are hidden, however these buttons are invisible if it does not have functions defined in the select of the This is...
asked by 03.08.2017 / 22:28