Skip to main content

All Questions

Tagged with
4 votes
2 answers
110 views

Custom RowSorter that sorts a Swing table containing data with unit suffixes

I would like to hear what you say about my custom RowSorter implementation. The following comparators should be used for the table columns: String, Double and Integer. The table data has postfixes and ...
Tobias Grothe's user avatar
4 votes
1 answer
527 views

Single-player obstacle-avoidance space game

I was wondering what I could do to improve the gameplay of this game, as well as the graphics. I would like to use LWJGL, but the rendering library isn't important. I just need to find out ...
Rigidity's user avatar
  • 143
4 votes
1 answer
506 views

Java Mandelbrot Set Viewer

I'm writing my own version of a Mandelbrot set generator, with pan and zoom functionality. (There's not yet a color overlay of sets generated with various beta values; the beta value is changed ...
Pull Nointer's user avatar
4 votes
1 answer
662 views

Updating the icon of every JLabel in a JLabel ArrayList

I want to update every icon of a JLabel ArrayList, to its own individual icon based off of an outside ...
hey's user avatar
  • 41
6 votes
2 answers
686 views

Java algorithm to declutter rectangles

I've been working on an algorithm to declutter rectangles while keeping them as close as possible to their original location (and oriented the same way). It seems to work fine when I have less than 1,...
user avatar
4 votes
2 answers
2k views

Directory JTree Performance

The purpose of this short program is to: Detect all accessible local drives and USB drives List all the accessible directories for each drive which do not require administrator privileges or are ...
Dan's user avatar
  • 385
4 votes
1 answer
122 views

Confidential Sign-In Sheet in Java

I was requested to make a Sign-in program for the LGBTA Center at my university. They wanted something where anyone that came by and visited could leave their name and email, but also so that no one ...
ds777fighter's user avatar
4 votes
1 answer
271 views

A simple MP3 file arranger

I am creating a simple Mp3 Files Arranger the Project is on Github Questions: How can I optimize this app? Am I violating any OOP principle? Is it readable? How can I make it better? GUI.java ...
Mak's user avatar
  • 291
6 votes
2 answers
1k views

Classic two-player memory game

This is a classic memory game with a points counter for the two players. The app works fine, but since this is my first project in Swing, I would appreciate the critical opinion of some expert, as I'...
Alex Reds's user avatar
  • 243
6 votes
3 answers
3k views

Login for desktop application

I am building a login using an API call to a URL that returns JSON data. The login works and is functional but in terms of "correctness" and "professionalism", I am looking to get input from some of ...
basic's user avatar
  • 205
6 votes
2 answers
3k views

"Lights off" puzzle

Lights Off is a puzzle game consisting of an \$n\times n\$ grid of lights. At the beginning of the game, some of the lights are switched on. When a light is activated, it and its four neighbors in the ...
ProgOptimal's user avatar
15 votes
1 answer
255 views

Creation of Queen Ann's Lace fractal

I've created a program which recreates the Queen Ann's Lace fractal. However, when the amount of points that are being plotted increases, the points are plotted way slower. Is there any way to make it ...
Trevor Mayo's user avatar
4 votes
1 answer
4k views

Simple Cellular Automata (think Conway's Game of Life) simulator

Firstly, let me say that this code works, as posted. It fills a 10x10 grid with a random color (black/white) then runs a cellular automata simulation on the grid, starting or pausing when the button ...
ViggyNash's user avatar
  • 151
2 votes
1 answer
873 views

Opening contents of a file using Swing and SwingWorker class

I want to open a file contents using swing. For this I used the SwingWorker class. This application took more time (more than a minute) to load a large file (...
user3912886's user avatar
5 votes
1 answer
408 views

Creating a "Produce and Consume" using Swingworkers

I am experimenting with the produce and consume concept while trying to incorporate it into my own project. I basically have two Workers in a small example I made: ...
Aki K's user avatar
  • 1,329

15 30 50 per page