All Questions
84 questions
1
vote
0
answers
24
views
Lit faces always rendering in front up in front JavaFX
I'm making a simple 3d viewer/editor app, and the renderer for some reason always renders the lit sides on top and unlit ones in the back. here is the full project
https://drive.google.com/drive/...
1
vote
1
answer
81
views
Screen resolution scale in JavaFx game
I'm creating a board game in JavaFx, and it works fine in my desktop PC, with a 1920x1080 screen. When i try to open it in my Laptop (which is 1920x1080 as well, but with the default screen size at ...
-1
votes
1
answer
163
views
2D Real time graphics in Java (IntelliJ) [closed]
I'm developing a program that need to display 3 real time graphs, currently I'm working on IntelliJ but if needed I'll move to another IDE like NetBeans, I've been searching some options but I have no ...
0
votes
0
answers
209
views
JavaFX: my tooltip is not showing up and I'm not sure why
I want to add a tooltip to a TableColumn but for some reason, it is not showing up even though it seems as if my implementation is correct. What is wrong with my implementation. I got the tooltip to ...
0
votes
1
answer
235
views
JavaFX access error, not sure what's causing it [duplicate]
This is my code (I removed a lot of graphics logic as to see if it would run a most basic file)
import java.util.Scanner;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java....
0
votes
0
answers
37
views
JavaFX 3D InvocationTargetError when applied texture [duplicate]
I am trying to make a 3D game in java.
So I decided to add a class to each material needed so I started with wood.
when I added diffuseMap I got InvocationTargetError.
Why did this happen?
Here is the ...
-1
votes
1
answer
1k
views
Making a zoomable coordinate system in JavaFX [closed]
I want to make a kind of "zoomable graphing calculator" in javafx so basically a coordinate system where you can zoom in with the mouse wheel. Im drawing everything on a canvas but Im not ...
0
votes
1
answer
64
views
Zooming relative to mouse doesnt work in JavaFX
I had a working code, which used ParallelCamera when zooming, and it worked perfectly.
Here's it:
double s = camera.getScaleX();
double d = e.getDeltaY();
double f = 1.2;
double x = e.getSceneX();
...
0
votes
1
answer
826
views
How to center a text in a rectangle in JavaFX
I am trying to draw a string exactly in the center of a rectangle using JavaFX GraphicsContext2D.
I don't want to use JavaFX components so please do not recommend them.
For example, I stroke a ...
1
vote
0
answers
548
views
How to speed up drawing graphs (charts) in Java? (own library)
How to write a java library that would display graphs (charts) with large datasets (100-200 thousand points)? I think that such a large graph does not need to be displayed entirely, I probably only ...
0
votes
0
answers
23
views
Using Javafx to Draw Basic Shapes (Rectangle, Circle, Sphere) [duplicate]
I have two classes. Rectangle.java and TestRectangle.java. I have to use those two classes to draw a simple 2D rectangle with javafx.fxml.FXML, GraphicsContent2D. Here's what I have so far.
Rectangle....
5
votes
2
answers
3k
views
NullPointers in JavaFX when using a large canvas
I am using Canvas-objects, two identically sized ones in a StackPane to be exact, in my application. When these objects get larger, JavaFX starts crashing when trying to paint/render:
java.lang....
1
vote
1
answer
94
views
Building a Charting Library on the JVM from Scratch [closed]
I thought I would ask around here as there are a lot of experienced devs with much more understanding of the Java ecosystem than me.
So, I am looking to build a plotting library for some simulation ...
1
vote
2
answers
784
views
marquee (ticker,text scroll) with java2d or javafx stutters
I'm trying to write a smooth ticker (text running from rigth to left on the screen).
It is almost as I want it, but there are still some stutters. I would like it to be as smooth as cloud moving in ...
0
votes
0
answers
198
views
How can I remove an image from a button?
I am working on a project where I set an image from a button like this:
`p2cardTableSlot00.setGraphic(new ImageView(player2Table.getGameCards().get(0).getCardImage()));`
My question is how can I ...