Questions tagged [swing]

Swing is a GUI toolkit packaged with the standard Java SDK since version 1.2.

Filter by
Sorted by
Tagged with
4 votes
1 answer
67 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 ...
Sergey's user avatar
  • 371
3 votes
0 answers
24 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 ...
Sergey's user avatar
  • 371
1 vote
1 answer
95 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 ...
Sergey's user avatar
  • 371
0 votes
0 answers
35 views

Fee Challan as a practice in Java Swing,

I have made three classes and I have put all the UI code in a different class and used method for labels, text fields etc so it does not mix up. Please look into this code and tell me is it good ...
touqeer's user avatar
  • 101
2 votes
0 answers
258 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 ...
Ivica's user avatar
  • 75
1 vote
0 answers
108 views

Tic tac toe java swing

I am new to swing and GUIS in general. I am not sure how to structure projects with gui so help me fix mistakes I have done in this project Main: ...
Ivica's user avatar
  • 75
4 votes
2 answers
684 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 ...
Corey Hodges's user avatar
2 votes
1 answer
154 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 ...
morloq's user avatar
  • 119
4 votes
2 answers
153 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 ...
Sean2148's user avatar
  • 143
3 votes
2 answers
420 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 ...
Si Vafo's user avatar
  • 53
4 votes
1 answer
156 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 ...
plankins's user avatar
0 votes
2 answers
129 views

Searchable database with Java and SQL

What does the code do? Albeit unfinished (it does work, it's just not complete yet), the code creates a database (members.db) where telephone numbers, IDs, and ...
telometto's user avatar
  • 119
1 vote
0 answers
65 views

Examples of many Java swing components in one program

This is in continuation of my previous post for code review of Java Swing Library: Java Swing Library Since the limit on total number of characters is 65K, I split my program in two parts. The first ...
user avatar
0 votes
1 answer
71 views

Java Swing Library

I have implemented a library which makes Java Swing programming easier. I am just posting the library. There is a program that uses this library to implement examples of many Swing components but I ...
user avatar
1 vote
1 answer
252 views

Generate and Control JMenu Radio Buttons Using An Enum

Put together a RadioMenu class that can use a Enum to generate a Single-Selection Radio Button Menu. My main question is about whether there's a way to remove the ...
Tim Hunter's user avatar
1 vote
3 answers
356 views

Bank Account GUI

I've decided it would be best to break this project down into several parts. Consider this Part 1(GUI Design). I'm looking for help making 2 main improvements: Whenever I make a GUI, its always very ...
Grewal_Creator's user avatar
0 votes
1 answer
65 views

Evaluate my program with Java Mail + Sql + Swing

I'm 16 years old and no one to help me, no one to give any advice or constructive criticism, I'm aimless. I'll leave the link to my last code (github), a program that sends an email to everyone ...
Davi Ribeiro's user avatar
2 votes
2 answers
133 views

reddit-like GUI

I am not very familiar with Swing but am attempting to make a Reddit GUI. I've finally got everything to work as expected but I must admit, it's quite mundane and not very nice to look at. I want to ...
William Golovlev's user avatar
0 votes
1 answer
143 views

Correct use of Serializable with lambda functions

I'm practicing saving and reading serializable objects when a friend told me serializable objects have no use in real life, that I'd better focus on JSON or XML to serialize my objects when I came ...
Miguel Murcia's user avatar
3 votes
1 answer
397 views

Pokemon Soul Link tracker

I've just finished writing a program to help track Pokemon across Soul Links. The goal of the program is to take in the names of the two Pokemon alongside the route that they were caught on. The ...
Temps's user avatar
  • 39
2 votes
1 answer
207 views

BMI Calculator Java Swing Practice

This is my first question here and I'd like to get some feedback. The program works but I'm not sure the classes I've used are right. First, a class to calculate the Body Mass Index from a double (kgs)...
Miguel Murcia's user avatar
1 vote
0 answers
228 views

Performance in find and replace String program java [closed]

I have a Java program that does find and replace (like when you do it in a text editor for example notepad++) in files of a folder and all sub-folders. I created 4 functions: the first function has ...
Abdessamad Ben's user avatar
4 votes
0 answers
141 views

Just a digital clock in Swing

I've written a little clock implementation in Java Swing. It now seems to work flawlessly after having terrible Swing specific timing problems. Please indicate if this is the way to draw the clock and ...
Maarten Bodewes's user avatar
3 votes
3 answers
2k views

Color matching swing GUI game

I've made this program here (~240 lines) in which the user has to match their RGB Panel(right) with a randomized color on the left. It's a pretty fun program, and I suggest you try it out! It's fully ...
CodingNinja's user avatar
7 votes
2 answers
979 views

Basic MDAS Java Swing Calculator

I have recently started learning Java and decided to make a basic MDAS calculator in Swing. I am not completely new to programming but I may be making some common mistakes, or not writing the most ...
RazerMoon's user avatar
9 votes
2 answers
333 views

Optimize a tile rendering algorithm for Swing Canvas

I have an algorithm that I use to render a text GUI using Swing's Canvas, it looks like this in practice: My goal is to reach 60 frames per second for a full HD ...
Adam Arold's user avatar
3 votes
0 answers
77 views

MIDI editor application

Source I made a project for a class, a MIDI editor written with Java 8 and Swing, and continued working on it on my own. However, I ran into a problem I couldn't solve and gave up. I'd like feedback ...
ShokoN's user avatar
  • 465
3 votes
1 answer
827 views

Game of life GUI simulation using java.swing

I am fairly new to GUI programming and I am interested in improving my code from every aspect. Performance, security, readability, conciseness, and the look-and-feel aspects are all important to me. ...
BovineScatologist's user avatar
7 votes
1 answer
1k views

Chess application with GUI and AI in Java

I've included the files that I felt were relevant (i.e I haven't included the individual pieces in the inheritance hierarchy). I'm particularly curious as to whether the system as a whole is ...
L292092's user avatar
  • 419
1 vote
2 answers
145 views

College Billing System - Java

I developed a college fee report generator application using Java with internet as referance,but now I need you guys help in making it more obvious and a sturdy application as I am a rookie to Java ...
ashwin2125's user avatar
3 votes
1 answer
2k views

JTextPane with line-numbers

What I wanted to do As part of a larger project, I needed a simple text editor with line numbers. The editor should also be able to highlight the current line (line number in bold) and define the tab ...
user avatar
1 vote
1 answer
464 views

Sudoku-Solver with GUI - follow-up

Background A few months ago, I asked this and this question on my implementation of a Sudoku-Solver. I now tried to further improve this little project. Changes Minor GUI-changes Input validation "...
user avatar
2 votes
0 answers
57 views

Is it bad practice to update Graphics in Swing outside of paintComponent like this?

I'm currently implementing a Minesweeper clone in Java using Swing. Rather than updating the tiles like so ...
Frosthorne's user avatar
6 votes
1 answer
1k views

Minesweeper with GUI

I created the famous Minesweeper-game in Java, for which I used java-swing to create the GUI. Here's the code: Control.java: This class contains the main-method, ...
user avatar
2 votes
1 answer
1k views

Timer in Java with GUI

I have created a timer with GUI in Java. Here's the code: ...
user avatar
7 votes
1 answer
1k views

This is a sorting algorithm visualization program

Configs.java ...
Trippix's user avatar
  • 73
2 votes
2 answers
251 views

Langton's Ant in Java

I've wrote a simulation of Langton's Ant in Java, and hope you have some suggestions to improve the code. The class Control.java contains just the main: ...
user avatar
1 vote
2 answers
3k views

Java Calculator with GUI

I've wrote a calculator in Java with a GUI using swing. Here are the classes: Control.java: ...
user avatar
3 votes
1 answer
236 views

Sudoku-Solver - follow-up

I've now tried to use the suggestions you can find here to improve my Sudoku-Solver. Here's the updated code: ...
user avatar
6 votes
2 answers
150 views

Pong-Like Game. First game I ever made. advice needed

This is my first time ever making a game. It is a pong-like game, where the user has a paddle and has to prevent the ball from passing them. Since this is my first game, I want any recommendations/...
Daniel Khrapko's user avatar
4 votes
1 answer
2k views

Sudoku-Solver with GUI in Java

I've wrote a Sudoku-Solver in Java, which also contains a GUI, so you can just enter the Sudoku, press "OK" and it will solve the Sudoku using backtracking. Here's the code: ...
user avatar
6 votes
2 answers
1k views

Java implementation of Conway's Game of Life with GUI

I've implemented the Conway's Game of Life in Java, including a GUI. Here's the code of the two classes I wrote: GameOfLife.java ...
user avatar
3 votes
1 answer
942 views

java swing super simple calculator mvc

i am trying to learn mvc (model view controller). there are many texts out there explaining what mvc is. but not many explaining how to actually code mvc. i found a bunch of questions here asking ...
Lesmana's user avatar
  • 131
3 votes
0 answers
64 views

Controller class for an input dialog

I am learning OOP, concretely Java, by developing a real life business application for aimed for repair shops. I have followed MVC pattern design for GUI elements of my application. I was wondering do ...
Zoran Jankov's user avatar
1 vote
2 answers
261 views

Fruit machine game

I'm a beginner in Java, and this is the first time I have written a program from scratch without a guide explaining how and where to create classes etc. Please review my code to see whether the ...
sepalous's user avatar
2 votes
1 answer
141 views

How to properly write code for Java Swing

basically I'm learning Java Swing by myself and I'm wondering what is the correct way to wrote code for it? I don't want to have a big class with everything in it and I want to do in the most "correct"...
TheBleccbird's user avatar
2 votes
1 answer
192 views

GUI for counting the number of times a word is said (with added features)

Some background: The counter was first made as a joke because we have a lecturer who repeats the 9 phrases found in the program over and over during lectures and I thought it would be funny to create ...
Bernard Borg's user avatar
2 votes
1 answer
116 views

MVC pattern in my Repair Shop application

I am currently learning Java programing by building real life business application for repair shops. I am posting this code so I can get critical review, and change my application architecture if ...
Zoran Jankov's user avatar
4 votes
1 answer
425 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
1 vote
1 answer
3k views

Simple Connect Four Game With GUI added

I am trying to improve my coding skills in Java by taking existing code, studying it, and adding on to it. In this code example, I took code from Connect Four game in Java and edited it. The most ...
HelpMePlease's user avatar

1
2 3 4 5
9