Questions tagged [gui]
Graphical User Interface development for applications or web sites. This tag should usually be combined with other tags specifying the programming language, platform or framework, if applicable.
274
questions
25
votes
3answers
3k views
2048 with GUI in C
0x2048
This is my implementation of the classic game "2048" in C.
The instruction to build/run the project (GitHub repo) can be found here.
I started with the core game and then built a GUI ...
25
votes
2answers
7k views
QJsonView: A QWidget-based json explorer for Qt
I'm developing applications using Qt which highly make usage of the JSON language to communicate, store and load data of different types. I often need a simple viewer similar to the Firebug JSON ...
23
votes
1answer
6k views
Ultimate Tic-Tac-Toe with AI and GUI
During my hiatus, I decided to revisit some of the Tic-Tac-Toe questions here. I created a simple Tic-Tac-Toe GUI game, and then thought, might as well do the Ultimate Tic-Tac-Toe challenge.
I am ...
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
2answers
3k views
Day planner / logger
This is a simple program I've made using Qt Creator and Pyside:
I made a list of activities that I would like to enforce
Then I made a program that randomly pick them based on chance
It has some ...
13
votes
2answers
822 views
Setting up radio button click ActionListeners
Instead of writing four almost identical setOnClickListener method calls, I opted to iterate over an array, but I'm wondering if this was the best way to do it. Do ...
12
votes
1answer
720 views
Fractal rendering fun time
I wrote up a script a while back to let me play around with fractals. The idea was to have direct access to the script that creates the fractal. None of that close, edit, then run hassle; just edit ...
12
votes
1answer
4k views
Multi-layer PyQt4 image viewer
I have written a functional GUI program using PyQt4, and I'm looking for some feedback because it's not as fast as I would like. It takes in some number of large, same-sized 2D arrays and displays a ...
11
votes
3answers
5k views
WinForms dice roller
I am writing a dice roller winforms application using C# 2012 VS. Dice roller is set up for playing Shadowrun tabletop. I feel that there might be too much code going into the GUI, but I am unsure ...
11
votes
2answers
3k views
Cross-platform message box library
I recently started work on a game project, and decided to use GLFW for windowing / OpenGL context handling. GLFW doesn't have support for creating message boxes / dialogs, and I was unable to find ...
11
votes
2answers
539 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
16k 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
3k views
A general purpose GUI data input, with validation, but unclear about best object design
When I'm throwing together prototype code, I don't want to spend extra time setting up parameters, or chasing down problems from entering parameters wrongly. So this is a general purpose, fairly easy ...
11
votes
2answers
15k views
Tic Tac Toe game GUI
I'm a code banger from way back trying to learn good Python style. Here is my attempt at the classic game. I'm trying to learn Tk, because I have a couple codes that need GUIs. Any suggestions or ...
11
votes
2answers
235 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 ...
11
votes
1answer
500 views
wxPython Item Information Scraper
What is the best method/practice to keep, let's say, over 3,000 lines of code organized for readability?
What kind of NO-NOs in regards to coding habits should I get rid of before they become bad ...
11
votes
1answer
357 views
Pillow-based basic GUI library for an LCD
I am working with an LCD screen and an RPi. The library I use sends 1-bit images to the screen, so I wrote this library based on Pillow to help developing the on-screen GUI. I am playing with the ...
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
1answer
12k views
Tkinter GUI for making very simple edits to pandas DataFrames
It is part of a separate application that allows users to interact very loosely with different databases and check for possible errors and make corrections.
...
10
votes
1answer
5k views
Inspector interface serializer
I've written some code that allows Unity3D's inspector to display fields that conform to an interface. Unity has some quirks about their inspector, so as a preface they are listed here:
If you add a <...
9
votes
3answers
4k views
Workout tracker
Around June of last year, I made my very first GUI 'app.' Wish I knew of this amazing site then, I thought for posterity's sake it would be great to get it reviewed.
It's a simple I/O window just to ...
9
votes
2answers
3k views
GUI 'simple notepad'
Please give feedback on all aspects of the code, whether it be the commenting, usage of methods, semantics or anything that can be improved.
This code looks flawless to me, so any suggestions for ...
9
votes
2answers
8k 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
1k views
Simple FizzBuzz
I wanted to try FizzBuzz, but to do it in the most efficient way. I think this method employs most of the concepts I learned here. Is there anything unaccounted for? A sprinkle of Swing since that's ...
8
votes
3answers
5k 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
2answers
2k views
iOS Utility methods for UIView
Lately, I've been part of a team working on a utility library for iOS called Thundercats (on Github). We're about to start working on some changes and upgrades in preparation for a 2.0 release, so we ...
8
votes
2answers
87 views
Take These Buttons Back
I created a side bar of buttons for my game, the idea being that if you click on the "main" button of the group, the rest of the buttons in the group would pop out from the side of the screen.
Later, ...
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
1k views
C++ Snake game using Qt-framework
I made a QT version of "Snake console game in C++" using Qt Creator 4.9.0 on Windows 7:
I would like to know what can be improved, focused on the QT stuff since im new to it.
I seperated the program ...
8
votes
2answers
722 views
2 player TicTacToe
Can I optimize this Tic-tac-toe game or make it smaller?
Known optimizations: string turn = "X"; can be changed to ...
8
votes
1answer
238 views
Simulating a GUI windowing system
I was eager to learn the implementation details behind windowing GUI systems. Because I am mostly a high level programmer having not much experience in low-level stuff, I had to simulate it instead of ...
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
173 views
Pairing Labels with Images when building a UI
In a prototype 4X space game that I am working on recently, I have two different scroll panes to show the ships and the stars of the player. The ships are displayed in a vertical scroll pane on the ...
7
votes
2answers
2k views
Simple calculator implemented with lambdas
I was searching for a way to exercise the Java 8 concepts I've been learning, especially pertaining to Lambdas. Incidentally, I hadn't used any swing in a while and wanted a refresher. This is the ...
7
votes
3answers
12k views
Displaying a wait cursor while we're waiting
I come from VB6 where everything is single threaded, so I've never written a lick of multi-threaded code before. I just added a wait cursor to one of our GUI's by stumbling through the docs, but I'm ...
7
votes
3answers
578 views
Swing UI for database-to-Excel tool
I'm just wondering what is the cleanest way you can write your GUI/Swing code? Right below is the code I have for my main frame. Could you guys let me know if it looks clean/understandable, and if ...
7
votes
2answers
1k views
Beginning calculator program
I am a beginner in Java and programming at all. I decide to try to write a calculator, as a my first "complete" program. It works for me, however I am curious is it worth anything in reality. I would ...
7
votes
1answer
10k views
Single-player Agario game
I made an Agario single player version (soon to become a multi player one using socket). What can be some improvements?
Controller:
...
7
votes
3answers
201 views
Notifying the UI that Issues Were Found
Our Rubberduck VBA IDE Add In does some static code analysis, and then reports all of the found issues back in a gridview. This analysis can take a long time for larger projects and the UI appeared to ...
7
votes
2answers
2k views
Caesar cipher with GUI
I have created a functional Caesar cipher in Python 3 and I have implemented a GUI using Tkinter.
...
7
votes
2answers
9k views
Extremely Simple Paint Program in Java
I have written a very basic paint program in java using AWT and Swing. I have separated the program into two different class files; one of them holds the JFrame and ...
7
votes
3answers
14k views
Creating a chess board
One of my assignments was to create a chessboard. In this assignment I could not use an array, or a form of list or what not. Below is my code for the creation of the chessboard:
...
7
votes
1answer
2k views
7
votes
2answers
241 views
Animal Storage TreeView - Tkinter
Bit of a pointless program (at the moment). It's intended more as practice for myself rather than anything else.
General idea is that you add details of a particular cat or dog, and it'll update a ...
7
votes
2answers
133 views
Measuring the speed of a river
I already improved my program with the suggestions of @Mast. As requested by him I re-upload the code in English so we can check it out together.
But before I'll explain a little bit what this ...
7
votes
2answers
84 views
Cancellable UI loader
I'm playing with async/await, but I have yet to discover a standard method to safely cancel an intensive task. I have tested the following, and it works exactly as intended, though I remain unsure if ...
7
votes
1answer
5k views
Student administration application
I have set up a basic MVC project which is a student administration application based upon a CSV file as datastore. Each user has a specific role (student, lecturer, professor, leader of degree ...
7
votes
1answer
10k views
Hangman program in Java
Here's an implementation of Hangman using Java 6. I've split the code into 2 classes - a logic class & a gui class. Is it ok to have so many static member variables? Please let me know if there ...
7
votes
1answer
1k views
Determine maximum window bounds
Preamble: the default frame positioning with Swing JFrames has always bothered me. Eventually I wrote some code to calculate my available desktop space, not ...
7
votes
1answer
8k views
Simple Tic-Tac-Toe using tkinter
I've been learning programming using a book about Python for a few months. To explore object-oriented programming, I built a few things in tkinter.
When I started this code, I wanted to be able to ...