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.

Filter by
Sorted by
Tagged with
33
votes
1answer
4k views

Full-color clone of Conway's Game of Life, with a decent GUI

I wrote this to learn JavaFX, and as an excuse to re-make the Game of Life. This is the most complex GUI I've ever written, so I'd like feedback mainly on it, but I'll welcome any criticism! My ...
25
votes
3answers
4k views

Network chat app

Applying a lot of unprecedented concepts here, it's a simple chat server capable of handling multiple clients, which are run through JavaFX, and have their individual threads instantiated and handled ...
15
votes
2answers
4k views

Trading Card Game Prototype GUI with JavaFX

Most of my programming experience is with Objective-C, but I have recently started learning Java and JavaFX to build the user interface for a Trading Card Game. This is the most Java I have ever ...
15
votes
1answer
1k views

CircularListCursor - an efficient circular cursor on any list

I have decided to create my own CircularListCursor, because I wanted some abstraction and a ListIterator<E> couldn't give ...
14
votes
2answers
3k views

Detecting two intersecting circles with editable x, y, and radius in JavaFX

I was actually pretty proud of this programming project that I came across in this book I'm working through. I only really had problems figuring out the formula for detecting whether or not the two ...
12
votes
2answers
2k views

Ultimate Tic Tac Toe A.K.A. Tic Tactics

My attempt at this challenge., incorporating lessons from this question, which turned out into a much bigger project than I anticipated, but it works. I'll definitely be refactoring most of this in ...
12
votes
1answer
863 views

Numbers are high, numbers are low. Will you guess the right answer, though?

This question is a follow-up to: High-Low Guessing Game Now with shiny new graphics in JavaFX. You now have the awesome ability to choose which numbers to guess between. Now with Git Repository! ...
11
votes
2answers
538 views

What makes a hero?

This is a simple program meant to show how dynamic JavaFX is. It moves one list item to another and back without having to update the screen directly, thanks to the Observable Collection classes. It ...
11
votes
2answers
15k views

Console component in JavaFX

I would like a review on my Console class I made in JavaFX 8. It features the following: A text field where you can enter input, the input gets copied into the ...
11
votes
2answers
14k 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 ...
11
votes
2answers
223 views

Options, options, options. None for JavaFX?

I was looking through the JavaFX library, and I spotted that JavaFX DOES NOT HAVE A JOptionPane EQUIVALENT. (Or at least not in my version - as @Legato has said in ...
10
votes
4answers
412 views

Student Showdown - Q and A battle game, part 1: The Champions

Just a self challenge/fun thing. I have a scene where the player picks a character, of course it works but I'm repeating myself an awful lot. I would appreciate any formatting suggestions and making ...
10
votes
3answers
7k views

Bridge Card Game

So I'm in the process of creating a simple Contract Bridge in Java. I will be using JavaFX to create the GUI component of the program. For right now I am trying to tackle writing each of the classes ...
10
votes
2answers
1k views

Tic Tac Towards FX

I'm planning on taking on this community challenge. However, before my tics get tactical, I'd appreciate some feedback on the simpler implementation. Screenshots: Factoring in all the logic/edge ...
10
votes
3answers
965 views

Media player at your service

I have a very basic version of a media player built using JavaFX. The project is well segregated and has a different packages for controllers, utils and supporter classes. My project follows the MVC ...
10
votes
1answer
4k views

Circular Wrapping Text, minor adjustments

This basically it sets a shapes default size and radius based on how many characters are in a string that is passed to it, the user gets the option to manually set the Font, otherwise it is ...
10
votes
1answer
378 views

Follow the Rubberduck - Part 3: JavaFX MVC and MVP Matrjoshka

After the last post had some minor improvements for me and the beta release was actually used for some things, I decided that the GUI was too ugly to continue like this and rewrote the whole GUI in ...
10
votes
1answer
3k views

Dashboard for running programs in JavaFX 8

I have decided to create a dashboard view of a number of running processes/programs/applications, because it became tedious to monitor a bunch of applications, which I had to boot up manually. Please ...
10
votes
1answer
4k views

JavaFX custom control - editable label

I have a few custom components, some bigger ones and some smaller ones. I'd like to know if the structure is correct. As in: Is the code to do x in the right places. For starters, I'd just like to ...
9
votes
2answers
7k views

JavaFX eMail client

I've just finished up a functional emailing client in the Java language. It applies the JavaFX libraries and the ...
8
votes
3answers
4k views

An alarm application in Java

I have programmed this alarm application in Java using JavaFX for the GUI. I'd like these questions covered in the review: Is my code efficient? Can it be shortened? Are there any flaws in my code? ...
8
votes
1answer
243 views

Whose line is it anyway?

I've just started delving into JavaFX, and the following is essentially my "Hello World". Although it's simple, I question the code formatting and wonder if I'm breaking any conventions, especially if ...
8
votes
2answers
488 views

Taking flight with JavaFX

Just another step in my educational Trek. I didn't know when/why I would use the transparent feature and in experimenting with it, I made this. This one was fun to behold once done. It's an animated ...
8
votes
1answer
1k views

Generic GUI background task runner (Java 8+)

Here is the culprit; headers omitted for brevity, and also, see notes afterwards: ...
7
votes
2answers
1k views

Hello parallel world

I'm introducing someone to JavaFX. It still feels relatively new and I don't take being someone's first exposure to something lightly. I want to know if there's anything I'm doing unconventionally, ...
7
votes
2answers
160 views

Ticker Tackor Soldier Spy

This is a Tic Tac Toe game with a "new game" button. I'm after a general review of the code with some tips on how to make it simpler and tidier. GitHub HoboChess.java ...
7
votes
1answer
1k views

Detecting keyboard input

I want to use JavaFX as a solution to Java's issues with buffered input making things like 'press any key to continue' not easy. I plan to use an event listener to detect keyboard input. But before I ...
7
votes
1answer
4k views

Rotating Text in Circular Pattern Using JavaFX

Just wanted to see what you all thought about my program, I basically have two different classes that I designed to allow for automated wrapping of text in a circular pattern. This is my first bit of ...
7
votes
1answer
1k views

Lambdas will guide you home, CSS will ignite your code, Java I'll try to FX you

I've been learning JavaFX and wanted to recreate Simple calculator implemented with lambdas. It's also my first time using CSS, whose capability has convinced me of the wonders and appeal of JavaFX ...
7
votes
1answer
3k views

Calculations with FX

There have been a lot of calculators lately. It seems like this community challenge all over again, I didn't make a proper one then, so I'm joining the calculatrain now. Building from the lessons ...
7
votes
1answer
126 views

Gem Puzzle game

I started learning JavaFX a few days ago and I have just created as an exercise a simple Gem Puzzle game. The puzzle pieces can be moved if we click on them. The visual aspect of the game is very ...
7
votes
1answer
177 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
842 views

Moving Cell objects around a game field

I have a 20x20 field that contains Square objects. Each Square contains a Rectangle that is ...
6
votes
4answers
14k views

Playing Card & Deck Class in Java

I am currently learning how to write code in Java. To improve my understanding of OOP concepts, I am creating a playing card and deck class. The deck has the functionality of drawing and shuffling. I ...
6
votes
1answer
468 views

Live Graphical Demonstation of a Breadth-First Search Algorithm

As a first step to making a PacMan clone, I wrote a Breadth-First Search demonstration that updates itself live as you draw walls and drag around the start and end points. It was inspired by the site ...
6
votes
1answer
441 views

Snake Game in Java feedback

I started coding in August 2018, and I was wondering on how I can improve as a programmer. I'm more concerned about coding conventions. Particularly, how can I improve the structure of my code, ...
6
votes
1answer
2k 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 ...
6
votes
2answers
2k 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 ...
6
votes
2answers
1k views

Sudoku Puzzle Part 1: Sudoku Class

I was recently given a Sudoku Puzzle to solve, and since I began solving many Sudoku puzzles after, I decided to attempt to create a Sudoku Puzzle viewer with JavaFX. I am not done yet, but have ...
6
votes
1answer
112 views

This LoginPane is a Pain

Well, it really isn't a big pain: but I fear of security risks (if that is even possible). Background: I decided to (sort of) abandon my Sudoku project (because I accidentally deleted it from disk), ...
6
votes
1answer
715 views

Sorting colors by the name of the color

I was in need to sort Colors, so the first thing that I tried was this: ...
5
votes
3answers
3k views

Stock control system

I have programmed this simple Stock Control System using JavaFX for GUI and PostgreSQL for a database. Please go through my code and point out flaws, inefficiencies, and better ways of doing things. ...
5
votes
2answers
128 views

Tracking Containers in a Train Station

This is a time line for control over the events of some containers in a train station. It gets all the data to build the time line by getting a JSON from a database via REST service. The app resets ...
5
votes
2answers
2k 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 ----...
5
votes
1answer
2k views

Bouncing square in a box

I wrote my first animation in Java FX and would like a code review. I created StackPane with Rectangle. ...
5
votes
1answer
804 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
328 views

A “pointless” animation program

The assignment description for this code is this: Each time the user clicks the Circles button, randomly colored circles flow into the display and continuously change their shapes. Here is a ...
5
votes
1answer
3k views

Embarking on a Tic Tac Toe journey with JavaFX

On my educational trek through the capabilities of JavaFX, I thought it would be a valuable challenge to create Tic Tac Toe. It took me far longer than expected to get this far, but despite likely ...
5
votes
1answer
2k 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 ...
5
votes
1answer
13k views

Simple JavaFX Calculator

I made a simple JavaFX calculator. It does basic calculations, and works to the best of my knowledge. However, I'm a novice at both Java and JavaFX, so I seriously doubt this is as efficient and clean ...