Posts by lucas daniel • 430 points
11 posts
-
3
votes1
answer552
viewsQ: Update command does not work
I have three tables in a database, and I have a method called alteraLinhaTabela where I try to update one of the three tables at a time by identifying it by the variable tabela. I also pass two more…
-
0
votes1
answer382
viewsQ: Take a class that has a certain interface implemented in Generics
Hello. I want to do something like metodo(Class<? extends ClasseAbstrata> classe), only that of an abstract class, I want to use a interface, but I’ve moved on from extends for implements the…
-
1
votes1
answer326
viewsA: Convert java.time.Ser to java.time.Localdate
As the utluiz said in the comment, I would have to represent the date in textual format and so did. I changed my class Negociacao, in place of LocalDate another class that has a String: import…
javaanswered lucas daniel 430 -
2
votes1
answer326
viewsQ: Convert java.time.Ser to java.time.Localdate
Hello., I’m reading Caelum’s booklet about java tests jsf web services design Patterns. The problem is that I can’t read the date (I replace the Calendar for LocalDate in class Negociacao) for…
javaasked lucas daniel 430 -
17
votes1
answer616
viewsQ: Designing the Top Gear
I’m trying to make a game like Top Gear (SNES) to acquire some knowledge about 2D games, only I came to a question about the tracks: they are straight, curved or images? I am using Javafx. If I try…
-
4
votes1
answer123
viewsQ: Method with foreach only returns false
I have a method that will check whether the debt is equal to zero(divida == "0"). If it is he returns true, else it returns false. Code: for(String divida : dividas){ return divida == "0";…
-
1
votes1
answer469
viewsQ: Edit FXML Button text
I cannot change the text of the button created in FXML. Even if I put inside the initialize(... butao.setText("..."); he doesn’t change. What I do? Personcontroller, intializable: @Override public…
-
0
votes1
answer326
viewsQ: Run method when initialize class
I have a class called ligacao and when I initialize it (inside a button) I want another method that is within that class( that is started in a third class) to re-export and change from…
-
1
votes1
answer1874
viewsA: How to use thread in Javafx?
I don’t know if that’s what you want, but tai: import javafx.animation.FadeTransition; import javafx.application.Application; import javafx.beans.property.ReadOnlyObjectProperty; import…
-
1
votes1
answer280
viewsQ: How to return a Boolean on the button
I have a button and I want when it’s clicked to return true in a if of another class, but I haven’t found any method of how I do it. Button b = new Button(); Other class: public static…
-
0
votes1
answer633
viewsQ: Maturity of dates
I have this code that validates the dates of a card and puts in the table: @SuppressWarnings("nls") public static ObservableList<String> getPagaVenci1(TableView<PersonC> jtc, String sq4,…