All Questions
412 questions
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 ...
3
votes
1
answer
83
views
Depth-first ListIterator over JTree
I wrote a depth-first ListIterator for JTrees.
Considerations:
It must be a ListIterator, ...
3
votes
1
answer
157
views
Mail Client - Displaying email details for selected JTable Row
I'm trying to write a very simple IMAP email client in Java.
There is one table per account with multiple multiline rows.
The last selected row of one of the tables should be displayed in an extra ...
3
votes
1
answer
46
views
HsbColor: a class representing a HSB/HSV color
I was looking for a way to adjust saturation and lightness of java.awt.Colors that don't expose that kind of API
I wrote my own ...
2
votes
0
answers
58
views
Shrinkable Swing toolbar
I was tasked with implementing a toolbar that can be shrinked beyond what's necessary to display its buttons' texts. As a last resort, the buttons should hide their texts and only display their icons
...
2
votes
1
answer
52
views
Swing calculator with GUI Designer
I made this calculator during the weekends as a way to practice using IntelliJ's GUI Designer. It's used extensively in my new employer's Swing projects, but I hadn't heard of it before. As a ...
6
votes
1
answer
113
views
Beat Box: an app for making, playing, saving, and loading beat patterns
I was reading Head First Java. The book featured a project called BeatBox that allowed you to make, play, save, and load beat patterns using Java's Sequencer API ...
4
votes
0
answers
62
views
FlashCard app using javax.swing
I made a simple flash card app. The general idea is from Head First Java, but it's one app instead of two (for both making cards and playing them) and the implementation is different. What do you ...
1
vote
1
answer
113
views
Framework for building Swing UI in a more modular fashion
Swing code may be hard to read. As is, it's not inherently visually modular, and component composition is not immediately clear. To address that, I created a simple framework called ...
0
votes
0
answers
735
views
Space invaders in java swing
I am not really proud of the final project design. Whenever I try following MVC I get lost and in the end a lot of code doesnt end up where it should be. I am also wondering if am I overusing private ...
4
votes
2
answers
1k
views
Traffic simulation GUI: an exercise in concurrent programming using threads
To avoid a code dump I have removed most of the code and left the first few lines of constructors and methods and anything relevant. Full code at the bottom.
The purpose of this code is to use threads ...
2
votes
1
answer
356
views
Sorting visualizer using Java Swing
I programmed a little sorting visualizer a while back and I have been meaning to get some feedback on the overall implementation and on what I could do better to have cleaner code or a "best ...
4
votes
2
answers
243
views
Java Sound GUI using MVC model
I have made a Java Swing application that detects and displays audio pitch and level from an input (e.g microphone). I would like feedback on the current structure of my project, I'm attempting to ...
3
votes
2
answers
806
views
Simple Java Tetris game
I have no IT background and taught myself Java and made a simple Tetris game. I compared my code on the internet with other tutorials. My first impression of those implementations is that they are ...
4
votes
1
answer
186
views
Langton's Ant cellular automaton in Java
I made a couple of little games and cellular automata in Java. For every new 'game', I used the same code as a base, except for the game logic of course. With every iteration of me customizing my ...