All Questions
Tagged with user-interface java
18 questions
2
votes
1
answer
187
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"...
2
votes
1
answer
658
views
Creating an empty Sudoku grid
I am generating a 9x9 grid on which I will play sudoku later by setting click listeners to each square on the grid.
I first have a .xml file that represents a single square in the grid. This consists ...
4
votes
1
answer
194
views
Simple view for CRUD with miglayout
I have created the following view extending the JPanel class, the objective of this view is to allow the user to perform 3 CRUD operations create,delete and modify on the entity "Attribute", this ...
5
votes
1
answer
175
views
Swing "Number Guesser" program
I have made a UI that guesses the number that the user is thinking of(0 - 100), and I am wondering if it can be improved(I guess this is simple AI). I tried to shorten it as best I could, but it still ...
2
votes
2
answers
187
views
Object to return user specified generic types in backend code
The idea is that a user will dynamically edit simple key/value settings that will customize their instance of the application, e.g. the welcome banner text. I am trying to implement everything in a ...
3
votes
3
answers
1k
views
Swing GUI in Java
I'm learning Java at the moment and I'm currently trying to make a GUI using Swing. I've done some reading and people usually prefer and advice to use composition instead of inheritance of e.g. ...
1
vote
1
answer
923
views
Web Page Inspector
I wrote a small JavaFX Application to inspect Javascript within HTML pages. It loads and browses sites, shows the HTML source, shows an overview of the text of a page, provides a simple Javascript ...
2
votes
1
answer
5k
views
Monoalphabetic Cipher in Java With GUI
An easy, terribly written but working, Caeasar (Monoalphabetic) cipher implementation, with a GUI (Graphical User Interface).
Cipher.java
...
1
vote
1
answer
41
views
Java Loops and UIs
I've always found coding UIs in Java very inefficient, and hopefully this is because of my misunderstanding. Here's a great example.
I have a UI class which is returning the String "Hours", which is ...
7
votes
2
answers
370
views
Heavily nested anonymous classes for Swing UIs
Oftentimes, I write small little dialogs or forms without a UI builder. I usually find myself having a lot of "container" panel variables that just float around. I found this leads to time-...
4
votes
2
answers
296
views
TextField Validation for Teleport Feature in Game
I've implemented a teleport feature for my game and I would like some feedback on the way that I validate the user input. I am using the libGDX library.
When the player clicks the Teleport Menu ...
7
votes
1
answer
636
views
Implementation of Hangman in Java
Here's an implementation of Hangman that I've written that uses a basic GUI. As I am new to Java, please let me know of any improvements I can make to my coding style. Thanks for your help.
...
2
votes
0
answers
854
views
Graphical Flowchart Programming
This is an incomplete implementation of something similar to scratch. It's incomplete because right now, I'm working purely on the user interface.
I used Swing to make the basics of it, but then ...
3
votes
2
answers
16k
views
Making sure user inputs correct type
I have two functions that are used to prompt and recieve input from the user. One is for int and the other is for boolean. They ...
6
votes
2
answers
1k
views
Testing quicksort user input
I am testing a quicksort implementation. Arrays of random size with random data are passed to quicksort and the return time is averaged out. The user is prompted to enter values for
minimum length of ...
5
votes
2
answers
11k
views
Splitting the GUI into smaller classes
I am currently working on a course project and have been assigned to write a GUI. I've written it and it's about 2000 lines of code. It will be bigger when I add the SQL codes and new panels. So, I'...
3
votes
1
answer
10k
views
Account-creation program
I just finished a program that is a simple Swing GUI. It takes in user info, such as password and username, turns them into strings, and puts them in a text file called nuserInfo.txt.
I just want ...
4
votes
1
answer
380
views
Java/Swing GUI code/layout, am I doing this wrong?
I've never done Java GUI's before. After much trouble I've gotten my GUI to look how I want, however it feels as if my code is very inefficient, as if I'm going about this the wrong way?
...