Posts by Alisson Steffens • 41 points
6 posts
-
0
votes1
answer30
viewsA: Spinner Json and Arraylist
I would advise using the lib Jackson (https://github.com/FasterXML/jackson-core) you can create a class that represents what comes from the server, and the lib transforms for you into a JAVA object…
-
0
votes2
answers54
viewsA: Why does a Function invoked by onclick not influence external commands to it?
Ok, here’s the thing, this if will only be called when the page loads; if you want it to be called whenever you click, the right one is for it in a function and call it too: <!DOCTYPE html>…
-
1
votes1
answer43
viewsA: Iterate over components Swing recursively is strange
I found out : e.getComponent() returns the container in which it will be added, not the component that will be added: changed to e.getChild() And now it works :o Btw, I have many components on the…
-
0
votes1
answer43
viewsQ: Iterate over components Swing recursively is strange
To add Listeners to all components of my Frame I’m iterating on it recursively: private void adicionarListeners(Component componente) { Stack<Component> stack = new Stack<Component>();…
-
2
votes2
answers433
viewsA: Put a name depending on the array number
A solution would be to make an array with the name of the teams; String [] nomes_equipes = {"Porto","Benfica","Sporting","Braga"}; then, just access the position (team) of the name array ex: if vc…
-
1
votes2
answers110
viewsA: Use two functions in the same Javascript
If what you need is to keep the same code for both of you, you can do it like this: function labelthumbs(e){ document.write('<ul id="teste">'); } function labelthumbs2(e){ labelthumbs(e); }…
javascriptanswered Alisson Steffens 41