Posts by Cassio Danilo • 191 points
7 posts
-
0
votes1
answer18
viewsA: Show a column with String in table view where the field of the model class is Boolean - javafx
Using the cellfactory in the desired column @FXML private TableColumn<Usuario, Boolean> colAdm; colAdm.setCellFactory(new Callback<TableColumn<Usuario, Boolean>, TableCell<Usuario,…
-
0
votes1
answer101
viewsA: How to apply a "Blur" effect when a Stagemodal overlaps an already opened Stage in Javafx
Try this way, because I believe you should take the open Stage Owner as a modal and apply the effect; GaussianBlur blur = new GaussianBlur(55); final Stage stage = new Stage();…
-
1
votes2
answers847
viewsA: How to go through an iterable?
I believe you can do it in two ways; 1st Option Iterable<String> keys = keysWithPrefix(pre); Iterator<String> it = keys.iterator(); while(it.hasNext()){ System.out.println(it.next()); }…
javaanswered Cassio Danilo 191 -
2
votes3
answers1481
viewsA: How to create a mini database written in php using a text file in json format
It would be something like this? Config.json [ { "nome":"Mariana", "status":"online" }, { "nome":"Joao", "status":"offline" }, { "nome":"Jose", "status":"online" } ] index.html <!DOCTYPE html>…
-
0
votes1
answer66
viewsA: Problem with function return
success: function (data) { var items = ""; var idSetorUsuarioLogado = setorUsuarioLogado(); var json = JSON.parse(data); $.each(json, function() { $.each(this, function(i, item) { if (item.Id ==…
-
12
votes2
answers13163
viewsA: How to make the Genericdao class using Hibernate?
public abstract class GenericDao<T, I extends Serializable> { @Inject protected EntityManager entityManager; private Class<T> persistedClass; protected GenericDao() { } protected…
-
1
votes1
answer107
viewsA: Json Correct format for typeahead?
It wouldn’t be right? jsonObject = new JSONObject(); jsonObject.put("Nome", "Flavio Benini"); jsonArray.put(jsonObject); jsonObject = new JSONObject(); jsonObject.put("Apelido", "Flavio Benini");…