Questions tagged as 'java'

2
answers

Read JList files and display content in a JTextArea

JTextArea caixaTexto = new JTextArea(); try { String[] arrayLinhas = null; int i = 0; BufferedReader br = new BufferedReader(new FileReader(diretoriaExecucao + "/" + valorSelecionado)); while(...
asked by 11.10.2016 / 22:51
1
answer

Android Complex Type ksop2

I've been working for days developing an application that consumes a Soap web service.  Sending a complex type I'm getting, how should I do to send more than one complex type? The integration key I can send, but the ID, I can not get through,...
asked by 18.10.2016 / 14:25
1
answer

Start a thread again

I have an event on the start button, every time I load, 3 threads are started that start counting from 30 to 0, which reaches 1 to 0 wins. But however I reload the start button a few times and the count starts at 30 and does everything the same,...
asked by 14.10.2016 / 01:06
1
answer

NetBeans error: package org does not exist

I'm developing a desktop application using netbeans. I spent a few months without touching the project, and when I open it I get the message that the org package does not exist. I already deleted the Netbeans Cache folder, I updated it, updated...
asked by 07.05.2016 / 02:17
1
answer

How can I navigate and edit a txt file in Java [duplicate]

I have a txt file with a text in it I searched the internet I found some methods for writing and reading, however I have to edit a file that is standard so changing only some parts of the file. What can I use to do this function? For example,...
asked by 12.05.2016 / 17:29
2
answers

What is and how does a static block work in Java? [duplicate]

Studying Java I came across the following code: static { System.out.println("bloco estático inicializado"); } Then I ended up calling the main method and the block was executed. How does this happen? I know that a static...
asked by 26.09.2016 / 20:30
2
answers

How to sort a p: dataTable

How do I sort a datatable by a text. For example my system is a system of order of services, I need the orders "Open" to come first. Follow the datatable code below. I tried sortby but it did not work. This is my listAll: public List<...
asked by 14.04.2016 / 13:12
1
answer

How to choose which serialize field - Jackson

I'm using Jackson to convert my objects to Json . The fields I do not want to serialize markup with @JsonIgnore annotation, but in some cases I wanted to serialize those fields. Is there any way to choose when to serialize them?     
asked by 04.04.2016 / 16:11
1
answer

Remove JPanel from view

I would like to know how to remove a JPanel that is within a JFrame . I do not want to use the information or anything, I just want it to close. Using setVisible(false) leaves the panel invisible, I do not want this, I...
asked by 31.03.2016 / 13:00
1
answer

Socket with C # and java

Good morning, I'm writing an application where the socket server is in C # (because there are some drivers that have to be in C #) and the client in Java. I can make the communication perfectly between them, however when passing data, I have the...
asked by 05.04.2016 / 15:48