All Questions
2,228 questions
1
vote
1
answer
167
views
How to play animations from a .glb file with sceneform?
I'm developing an AR virtual pet application using Sceneform and ArCore in Java in Android Studio and I have a .glb model with multiple animations. In the end, I want ot make something like Pokemon Go....
0
votes
1
answer
115
views
How to prevent lag when moving a Circle with an AnimationTimer in JavaFX?
I have a problem with AnimationTimer class i use it to move Circle(ball).
When I run the program (is a pong game) the ball stopped for a moment (0.5-1 second) and then continued its movement (ball ...
3
votes
1
answer
68
views
How to interpolate Node color using custom CSS variables?
There's a node and I need to dynamically change its color. I also want to do this using CSS variables. The problem is that JavaFX seems to only perform a CSS lookup when a node property (fill) is ...
0
votes
0
answers
35
views
Gif isn't playing, none errors
My gif file isn't playing, but there is no errors in console.
Render method:
@Override
public void render(float delta) {
elapsed += Gdx.graphics.getDeltaTime();
Gdx.gl.glClearColor(0, 0, 0, 1);
...
1
vote
1
answer
281
views
java.lang.IllegalArgumentException: capacity < 0: (-1611268096 < 0)
Error:
java.lang.IllegalArgumentException: capacity < 0: (-1611268096 < 0)
at java.base/java.nio.Buffer.createCapacityException(Buffer.java:279)
at java.base/java.nio.Buffer.<init>...
0
votes
0
answers
35
views
How to animate a RecyclerView item outside of the RecyclerView
I’m new to android studio, I’m trying to build a card game.
I used a RecyclerView to display the player's cards (each card is an ImageView). When the player clicks on a card, the card should move to ...
0
votes
0
answers
23
views
Simple animation using a JLabel and ImageIcon throwing an exception
I'm making a simple static animation at the start of my program, and it uses a timer and ImageIcons to work. Here is the code:
int staticChecker = 0;
private void btnStartMouseClicked(java.awt....
0
votes
0
answers
76
views
Sliding up (in & out) in Android 14 Animation
I have two activities and i want to make an animation in which when you click on a button in activity 1 it slide up out of the screen and opens activity 2 , and also in activity 2 there is a button ...
1
vote
0
answers
32
views
Wavy Alphabet ScrollBar Android Studio
image here
i have a list of alphabet textviews in a linearLayout. when i touch any alphabets i want wavy like animation to move the position of the texviews just like the picture i have given.its ...
1
vote
2
answers
71
views
Why is JFrame paint() plotting the same point multiple times (or not at all)?
Context
I'm writing a program that approximates the value of π using the Monte Carlo method.
My plan is have it visually plot X amount of points and calculate the result based on that plot.
The design ...
0
votes
0
answers
78
views
Visualizing Bubble Sort - JavaFX
Beginner here. I tried to recreate the bubble sort animation on VisuAlgo using javaFX, but I can't get the code right:
public class BubbleSortController implements Initializable {
@FXML
...
0
votes
1
answer
54
views
Inconsistent Game Speed and Meteor Falling Rate after Restarting
After restarting my game using a button, I'm encountering inconsistent game speed and meteor falling rates compared to the initial game launch. Initially, the game runs smoothly with quick meteor ...
0
votes
0
answers
85
views
Image processing in Java using BufferedImage
I have encountered a problem while trying to apply a color tint to an animation in java. My code iterates through all the pixels of all the images in the animation (I know it is inefficient, but I ...
1
vote
1
answer
92
views
JavaFX Tab text color Animation
Please, explain me, how to fix the lack of animation
The tab text must be all of this hexadecimal colors:
private final String[] textColors = {
"#FF0000", "#FF3300", "#FF6600&...
0
votes
1
answer
98
views
JavaFX_2D Animation_How to make a circle rotating other circle which is also rotating
I just want to make a 2D animation that the moon rotating the earth rotating the sun.
I could see some solar system codes but they are too complex and hard to read for me.
Could anyone help me with ...