Questions tagged as 'java'

1
answer

Error inserting JDBC data

I'm having the following problem, I want to insert the data from my expense table but some error occurs with my foreign key, what can it be?    expensea: Can not add or update child row: a foreign key constraint   fails ( trabalhoviagemd...
asked by 04.07.2015 / 04:09
1
answer

Print ArrayList, Java Swing [closed]

I'm starting studies on Java applications with Swing, and I have questions about how to print my ArrayList. What is the best way to print or list an ArrayList within a window? In my case we have a calendar, we insert contacts into an Array...
asked by 13.11.2015 / 22:59
1
answer

Performance when generating a table in JSF

I'm having a question about how to improve perfomance when generating a table on a page using components JSF and Primefaces . I am generating a table, after doing a SQL query and mapping the object using Hibernate ,...
asked by 09.11.2015 / 17:53
1
answer

java.lang.NullPointerException: Attempt to read from field 'java.lang.String

I'm trying to implement a stack (database), the problem is that I'm not able to send my data to the other Activity's in my application, so when I open another activity to check if the data is there, it I want to be able to access the data in my...
asked by 28.03.2016 / 03:06
1
answer

Details with @Autowired and Down object

There is a conflict of concepts with me. I have here a service called: AtividadeService There are some lines that call my attention: import com.dendetech.entity.Atividade; Why import the entity? If it only works for Atividad...
asked by 10.09.2015 / 16:00
1
answer

put name in the columns from a vector of objects

public class TableModelAgendamento extends AbstractTableModel { int contador = 1; int qtdFuncionario; private TOFuncionario[] func = new TOFuncionario[qtdFuncionario]; String coluna[] = new String[qtdFuncionario]; private List<TOItemAgendamen...
asked by 19.09.2015 / 02:55
1
answer

Dynamic Paging with Angular Table

I have the following scenario: IretrievethisdatafromaRestAPIwithVraptor.Iwouldliketodisplayonlytwoitemsperpage,butIdonotknowwheretostart.Iimplementedthispagingusingthe ui-bootstrap . How do I make a dynamic query and display only two item...
asked by 23.09.2015 / 16:43
1
answer

JPanel disappearing while giving a get in it

I'm building a layer-based application using the Spring Framework, I'm newbie and well doing the wrong thing. My problem is as follows, as you can see in the image below I have PrincipalFrame and PessoaFrame > PessoaPanel...
asked by 11.09.2015 / 01:49
1
answer

Multiple errors compiling in Android Studio [closed]

I created a project in Android Studio (yes, the Rotate the device). I finished the main screen and created the action for the Root button. After I created a "Welcome" screen, several errors appeared. One of these are these;    Error: (23, 10)...
asked by 27.09.2015 / 04:16
1
answer

Prevent a second click on the same button

In this memory game, when I click the first button and then the second button, everything happens according to the algorithm, but when I click the first button twice, a problem happens ... I wanted to know how to avoid a second click on the firs...
asked by 05.06.2015 / 15:09