Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [javafx]

The JavaFX platform enables developers to create and deploy rich desktop or browser-embedded applications that behave consistently across multiple platforms and browsers.

0
votes
0answers
43 views

JavaFX Basic 4-Function Calculator

I would appreciate your feedback on any improvements I can make on this 4 function Calculator I wrote in Java with JavaFX. I used a Scene Builder for the layout, see both the Java and FXML code below. ...
0
votes
0answers
11 views

Running a JavaFX 11 interface update at regular intervals (in Kotlin)

I want to update a field on a JavaFX 11 UI in response to a thread which retries a process every second and updates statusString with the result. Since the ...
-1
votes
1answer
129 views

Breaking up a simple Paint application into smaller classes

(Sorry this is a repeat post, I hadn't logged in on my initial question and am unable to respond) I currently have a working code for a simple paint application but it is all in one file and very ...
4
votes
1answer
162 views

Simple Java Download Manager

I have written a simple download accelerator in java which downloads the same file in multiple threads and then combines them all. I would love some feedback on my design. How the same implementation ...
1
vote
1answer
56 views

JavaFX controller for a poker game

I am making a poker application in JavaFX. When I try to display the cards on the screen it is working perfectly fine. Yet I have a method with a lot of duplicated code in it. I have tried to ...
2
votes
0answers
36 views

KeyEvent listener: mapping physical keyboard to onscreen keyboard [closed]

I have an assignment to create a GUI with a keyboard and text area. Conceptually, the user would type on the physical keyboard and the respective key would change background on screen to reflect that ...
3
votes
1answer
375 views

Media player component with JavaFX

I am trying to build a media player as a part of a bigger project in JavaFX. It is a simple media player as of now, which requires a Presentation component to ...
2
votes
1answer
66 views

Cards for Monster, Spell and Trap interfaces [closed]

So I wrote a card game in Java/JavaFX but I don't particularly like this solution and I was wondering if you guys have any better solutions: ...
3
votes
2answers
72 views

Creating user accounts

I have a method which allows to create user account. It contains some conditions to control empty fields, wrong format of email, weak password, etc. ...
2
votes
0answers
85 views

Encapsulation of putpixel is terribly slow in JavaFx

I am trying to write a simple rendering engine in JavaFx and I manage encapsulate putpixel in the way that I pass x,y coordinates and color and it draws pixel of that color to the screen. I also wrote ...
0
votes
1answer
268 views

Minesweeper JavaFX app

This is my Minesweeper JavaFx app. It is working without any weird bugs, at least none that I found. I am not too concerned about the way it looks either, the main reason I post this here is to get an ...
1
vote
0answers
78 views

JavaFX Audio Visualizer unsure about MVC / Observer / Listerner design patterns

I have a MP3Player Class that does the Fast Fourier Transform and puts the values in a float array (called bands). Then every 20ms it notifys the Observer (VisualizerController) which then uses ...
5
votes
1answer
394 views

Cookie Clicker in JavaFX

Download the Program I have written a Cookie Clicker Game with JavaFX. I have not much experience so I guess that the code looks terrible to a person that is familar with JavaFX. So lets improve that!...
5
votes
1answer
612 views

JavaFX Checkers game

I started self teaching myself Java a few months ago. I recently came to the point where I felt it was time to blackout myself from any help or guiding material other than Oracle's docs, so I made a 2 ...
8
votes
1answer
93 views

A Game of Life application, with mouse clicks

I have a Game of Life program that has a grid[][] array which is populated by Cell objects. If there's a cell in a grid square, ...
7
votes
1answer
472 views

Moving Cell objects around a game field

I have a 20x20 field that contains Square objects. Each Square contains a Rectangle that is ...
3
votes
0answers
73 views

Algorithm to find connected tiles (percolation)

I wrote a little program in JavaFX which displays a path of neighbouring open tiles going from top to bottom. It should simulate a percolation. The algorithm iterates through the whole grid (every ...
2
votes
2answers
256 views

Calculate the total sum of points that cost to level up a character

I'm learning JavaFX and how to make good code in general. I created a little aplication that let you calculate how many points cost to level up a character stats. But I noticed that I usually repeteat ...
4
votes
1answer
958 views

Simple Java game of a rocket ship flying in space

This is just some code I wrote for a hobby really, I'm trying to get better so please tell me all the bad/weird stuff I've done. Thanks for helping! I've left a little boring code out but most of it ...
1
vote
0answers
23 views

JavaFX FreeTTS program lags on MacOSX. Load wheel

I am working on a personal project and I am new to app development in general also java and javafx. I have some code that works. Only, I am unsure why I get the mac loader wheel once my button to play ...
3
votes
1answer
4k views

JavaFX: Load and associate an FXML with a controller class using an interface with Java 8 default methods

I created an interface (IFXMLComponent) that can be added to a FXML controller class. The FXML controller class that implements this interface will be associated with an FXML file. The interface ...
1
vote
0answers
28 views

Slider with and without notification

In my project the value slider must be sometimes set. Then no notification may be generated because otherwise the new value will written in database again. I have this solved in the following way. Is ...
2
votes
2answers
740 views

Make a popup window that will stay open for 3 seconds

I am doing an assignment and I have a task where I need to make a simulation where under certain conditions it opens a popup window and then closes it after 3 seconds. This is how I did it: ...
2
votes
1answer
72 views

Setting value of controller controls for domain objects with Reflection

Is my use of Java Reflection an OK design? Each domain object contains an annotation to declare what controller would be initialized to edit/create the object: Each field of the domain object has ...
1
vote
0answers
616 views

Java Reversi Implementation (javafx)

This is a working Reversi game in JavaFX. The user is 'black' and the computer that plays against the user is 'white'. I tried to structure the code to be object oriented, but I am not sure if I am ...
2
votes
1answer
122 views

Google Guice module that loads two kinds of views

The code of my Guice Module looks like this: ...
5
votes
1answer
839 views

Snake Game in JavaFX

I've made a simple snake game on which I want to expand with some properties and settings to allow the user to change the speed increments of the snake and the game field size. Before expanding on it ...
3
votes
1answer
177 views

Patience game (Klondike)

I've been working on a Patience clone in java using javaFX. It's not finished yet, there are some features not working and some bugs still there, but I'm really in need of some structural advice and ...
3
votes
0answers
673 views

Structure of a serial port reading program

I am writing a serial port communication app. And I thought I could get some feedback about the general structure of the program. If I am doing MVC correct, etc. Since this is a "large" program I ...
2
votes
1answer
48 views

Glorified Document Chooser

I'm primarily concerned about the design of this MVC application. But will gladly take any suggestions! Primary objective: Create an interface that allows a user to choose a document from a database. ...
6
votes
2answers
656 views

Math app/library that solves calculus problems (symbolic derivative, etc)

Let me start off by saying that this project is a mess, and I know it. I believe it is a mess because I threw it together in a few days just to get it working. Unfortunately, my undergraduate ...
-1
votes
4answers
2k views

Saving the contents of a TextArea to a file

Can this method be modified to be more efficient? ...
1
vote
2answers
2k views

JavaFX utility functions to load window and send data to a controller

I am working in JavaFX and I created util class which is responsible for creating new window. I called this class WindowUtil. Depending on the button that was ...
2
votes
2answers
38 views

Serializing types with a common superclass

I have written code responsible for saving data to a file using Serialization. I think that a natural way to avoid repetition is to use inheritance but I'm not sure ...
4
votes
1answer
726 views

Create Tic Tac Toe with a full GUI

I had never done a full interactive app before so this is a really big step for me. It's very simple and fits into a single file. One thing that will be odd is the fact that I didn't use arrays. I don'...
2
votes
0answers
355 views

JavaFX Kings Game

I am working with javafx making a simple Kings game. I am currently in a Java course at school and this is just a side project I am looking to get some feedback on. Main.java ...
3
votes
1answer
153 views

Student project that calculates the return on an investment

This is a simple student project that calculates the return on an investment with a given investment amount, number of years invested, and annual interest rate. I know this is pretty basic, but I'm ...
4
votes
1answer
1k views

MySQL client for my local database with login screen

This is my second project. I've wanted to create a little client for my local database, so I can get familiar with databases. I've created a client for one db table using JavaFX. I want to know what I ...
3
votes
2answers
372 views

Find anagrams from a file

The program reads words line by line from a file. It finds anagram groups and prints them in new line. Except for the GUI class, the anagram class takes 2ms. I would like to be criticized in detail ...
4
votes
1answer
615 views

JavaFX Smoke Effect (Particle Generator algorithm)

I wrote a "Smoke" effect that I thought I'd post for code review. It's a decorative effect for a puzzle game I'm working on--there will be four of these, animated independently, probably with a ...
9
votes
2answers
8k views

Snake in JavaFX

I was unable to sleep on the 17th of December (after 12 AM IST) so I decided to make use of my time. I made a simple Snake game in JavaFX in 3 hours (roughly from 1 AM to 4 AM). Here are all the ...
3
votes
1answer
1k views

Simple JavaFX app pops-up reminders on schedule

My employer gave me a sit-stand desk, but I was forgetting to use it: I just sat almost all day. So for fun and learning I wrote a simple JavaFX reminder app to remind me to alternate between sitting ...
3
votes
0answers
169 views

Hex Color Analyzer in javafx

Here is a simple hex color fetcher and analyzer in javafx that i wrote to understand multi-threading in javafx. Questions: Is my regex ok ? or if it can be improve? I am not much familiar with ...
3
votes
0answers
82 views

Simplified Google Maps program

I've been trying to write a simplified Google Maps program. My programming experience is limited. I have come up with a solution but I'm looking to make it more user friendly by splitting it up into ...
5
votes
2answers
839 views

Simple Java password rule enforcing

rule 1: length must be between 8 and 50 chars. rule 2: at least 3 of the 4 following rules: --------2a: at least one upper case --------2b: at least one lower case --------2c: at least one numeral ----...
3
votes
2answers
573 views

Quadratic Equation Calculator with Java FX

I have designed a quadratic Equation Calculator with Java FX. It is divided into four separate classes: GUI.fxml to design the UI Logic class with the all the ...
4
votes
0answers
151 views

Simple Brainf_ck IDE in JavaFX 8

I have this simple IDE for playing with Brainf_ck. It has no file functionality; only the code, input and output fields are present, and the "compiler" is integrated. Here is how it looks like: My ...
1
vote
0answers
428 views

Creating JavaFX bindable property readed from joystick

I'm lately messing up with handling joystick in java. So here is the thing. I wrote a simple class that handle input from joystick, but I'm no certain if I'm doing it well. Here is what I want to ...
1
vote
0answers
307 views

ScrollPane which allows for wrapping around the screen

I have a ScrollPane which allows for wrapping around the screen through some nice code. However, in order to achieve this I have had to use 5 ImageViews with each of them being the size of the screen. ...
5
votes
1answer
3k views

Playing sound in JavaFX when button is pressed, window pops up

So I made a class for playing a sound in JavaFX when a button is pressed, a window pops up... I don't know about the quality of the code though. I don't know if I used the best way to play the sound. ...