Posts by Dannark • 266 points
12 posts
-
1
votes1
answer220
viewsA: How to upgrade the size/color/positions of a sphere within actionPerformed in Java3d
I discovered the problem, I needed to add the permissions to move the object. tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE); ap.setCapability(Appearance.ALLOW_MATERIAL_WRITE); Adding these…
-
1
votes1
answer220
viewsQ: How to upgrade the size/color/positions of a sphere within actionPerformed in Java3d
This week I started studying Java 3D but I have a little problem, I can’t move or change the color object within the actionPerformed Although I can change in other places To better understand the…
-
0
votes2
answers9331
viewsQ: How to change the Text Color of a listview?
I’m trying to change the color of the text of this listview that I did by following some examples on the internet, but the most I could was the comment from row 39* txt.setTextColor(Color.GREEN);…
-
1
votes1
answer133
viewsA: How to create (Spawn) multiple rectangles?
Hey guys I was able to find a solution, just use an arraylist to store my various instances of my same class. This site here helped me:…
-
2
votes1
answer133
viewsQ: How to create (Spawn) multiple rectangles?
I’m creating a little game Jframe where I need to create several rectangles that will be the projectiles/bullets of my character(main/main) then I created the following class: Bullet Class package…
-
2
votes1
answer551
viewsQ: How to get the color of a pixel on the screen in JAVA 2D game?
Was there any way How to get the color of a Pixel on the x and y coordinates of the screen I specify?
-
3
votes2
answers3349
viewsQ: How to do Collision in game with Java 2D platform?
I’ve been trying for several days to make a collision method that returns me or tells me the sides of a rectangle that are being collided. I’ve already used the method Intersects but it only returns…
-
2
votes1
answer133
viewsQ: How to make getHeight() not return 0 before the Draw method?
I have a problem where I need to make a ball appear in the middle of the screen getHeight()/2, the real problem is in the function init() where the value of getHeight() return me 0, which should…
-
0
votes1
answer1254
viewsQ: Update one (Textview) through another function
I’m trying to update the text of a Textview through a function, but I’m getting an error right after the line Log. i("UPDATE","-1-"); (line 12) The code should work perfectly when I call the…
-
2
votes1
answer613
viewsQ: Problems with Asynctask crashing the application
I am developing a online chat which should update alone all the time, the problem is that each query hangs the application for a half seconds. I had already asked a similar question in: How to make…
-
1
votes1
answer379
viewsQ: How to make connections to a php work in the background on Android
I have a little app of chat who logs in and sends messages to the server through php + JSON, but each query crashes the app for a half second, which is really boring. I heard something called…
-
0
votes2
answers1994
viewsQ: How to decode a JSON array [{},{}] on my android
How I turn this string in an array on my Android so I can manipulate it? [{"id":"1","login":"Admin","senha":"Admin","nome":"Admin","msg":"Eba","logado":"0"},…