Questions tagged as 'java'

1
answer

Paste object inside String JSON

I get the following JSON from a web service / '{ “SinteseCadastral”: { “Documento”: “99999999999”, “Nome”: “NOM DE TESTES”, “NomeMae”: “NOME DA MAE DE TESTE”, “NomeFantasia”: “NOME FANTASIA DE TESTE”, “DataNascimento”: “99/99/9999”, “DataFunda...
asked by 29.04.2018 / 22:58
0
answers

Is it possible to create more than one module java9 (module-info) per project mavem in eclipse?

I'm testing the java 9 module system and so far I've been able to create a project in eclipse (maven or java) and create the modulo-info option: Right-click on the project + configure + create module-info. But if you need to separate the proj...
asked by 07.05.2018 / 21:32
1
answer

How to display tomcat log on screen

I'm creating a feature using jsf with primefaces, to display the application's log (tomcat), on the screen (view xhtml), however I did not find any plugin or append to do this, and before I started developing everything in hand I would to know i...
asked by 03.05.2018 / 16:20
1
answer

how to get a substring of size n that repeats

I have the following entry: aaisndiaunwioun test|test saiudb8iuyb aiwbu diby tab fiubaw palavragrande|palavragrande asibtiubi How to make the algorithm return test and palavragrande only if the before and after index of t...
asked by 03.05.2018 / 07:52
1
answer

I'm having trouble opening a new activity after taking a photo with android studio

Code public class primeiraTela extends AppCompatActivity { ImageView imageView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_p...
asked by 12.06.2018 / 17:12
0
answers

Draw a JPanel inside a JFrame [duplicate]

I would like to know how to draw a line inside a JPanel that is within a JFrame , at the push of a button. The layout of the button and JPanel within JFrame is exemplified in the image below: Whenthebuttonispress...
asked by 12.06.2018 / 22:51
0
answers

Error loading VTK libraries in Java

I'm using the VTK (8.1.1) 3D visualization system through its interfaces with the Java programming language in the operating system Ubuntu 18.04. Follow the steps described in this tutorial to configure and install VTK. I was able to run the...
asked by 23.05.2018 / 00:32
0
answers

Error creating project in android studio

When I create a new project in Android Studio the following error appears:    project location should not contain whitespace, this can cause problems with the ndk tools The page is First Name Last Name (with space). Okay, but I cou...
asked by 17.04.2018 / 20:52
1
answer

Autofocus in EditText does not work

I have a EditText that always needs to be in focus, and a Button any: <EditText android:id="@+id/edtCod" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputTyp...
asked by 17.04.2018 / 16:02
1
answer

JAVA POO - How to call a function from a Class

Then I have the following problem, I created a 30x60 matrix in which I will generate a number in a random position, so far so good. But when I get the function that generates the number and put it in the class, I'm having trouble calling it....
asked by 16.04.2018 / 00:40