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.

Filter by
Sorted by
Tagged with
6
votes
3answers
1k views

Tabs in JavaScript and CSS without additional framework/library

Below's my attempt at creating a simple tab control in JavaScript and CSS, without making use of any libraries or frameworks. Does this look OK to you guys? Can you see any obvious pitfalls? I ...
-2
votes
3answers
531 views

Setting up tab bar, navigation, and view controllers in iOS

I am new to iOS development. I wrote this code, but the company said that this is bad architecture and is not acceptable. I want to improve this code. ...
5
votes
2answers
206 views

Game framework using C++

I'm writing my own game framework and would like to get feedback on the API while I'm writing it. At the moment it's very simple, but I would like some guidance about where to take it. This is a ...
5
votes
2answers
187 views

Scoring matches of a game - reducing duplicated code

I'm writing a small application to score matches of a game. (There are two "teams" on each "alliance", and two alliances play each other in a match.) I have a "logic" class that handles the values of ...
4
votes
1answer
2k views

Implementing widgets within a main window

I am learning PySide and am trying to implement widgets within a main window. My goal right now is very simple: I want to place a QLabel, with independently defined ...
7
votes
1answer
3k views

Refactoring Tkinter GUI that reads from and updates csv files, and opens E-Run files

Background My lab administers four computer programs in three separate appointments. At each appointment, the subject does the programs in a pseudo-randomized order. Also, three of the programs have ...
4
votes
1answer
32k views

Android layout with equal spacing between elements [closed]

I am trying to make a nice set of items, which are equally spaced from each other. On example below, I set buttons between empty textview. Every button and text view has ...
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
14k 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 ...
5
votes
3answers
4k views

Small notepad editor

I decided on making a small notepad editor in Java using Swing and I think it functions pretty well. Unfortunately, my skills in making my project tidy and organized has abandoned me; it looks like ...
0
votes
2answers
1k views

Simple GUI using tabs to separate application windows

I'm designing a simple GUI using tabs to separate each 'window' of the application. There are 3 main tabs, each with 2 sub-tabs. In one class I create the entire hierarchy of panes and panels: ...
4
votes
2answers
98 views

Spun article reader

This is a simple GTK+ program that takes a spun article as input and shows a random output every time the user clicks the "Spin" button. It supports many levels of nested spinning like: ...
11
votes
1answer
474 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 ...
6
votes
3answers
125 views

Reducing repetition and utlizing EDT

I am working on the largest Java program I have undertaken to date and feel uncertain in my current code practices. I think that I state and repeat things that don't need to be which can become a ...
5
votes
1answer
3k views

UIView subclass

Generally, UI code is painful and full of kludges (at least, mine was like that). Recently I have decided to put an end to it and try to learn how to write good and reusable UI code. So here is the ...
3
votes
1answer
1k views

Dynamically generated controls based on data from dictionary

I have attempted the GUI controls creation in a prompt based on data from dictionary. Is this the best way of implementing this? ...
6
votes
2answers
236 views

Visualization of the Traveling Salesmen Problem

I am working on a little project to visualize the algorithm for the Traveling Salesman Problem. I have cities, which are movable objects painted with AWT and Swing. Also I can make a connection ...
5
votes
2answers
9k 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'...
5
votes
1answer
4k views

GUI design in Java Swing

I am developing a GUI using Swing, but before my project gets too complex. I would like to have a good design structure. I have a few ideas and will use a simple example to illustrate. Some feedback ...
2
votes
1answer
623 views

Pausing and Manipulating Data in a Process with a GUI [closed]

I think I have fixed the issues which caused this program to not be functional. Now I believe the design of my code is somewhat bad and may be causing problems with the number of processes that are ...
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 ...
3
votes
2answers
5k views

Java Bouncing Ball Review

Just looking for some help reviewing/refactoring. For example, could the classes random/vertical be refactored into 1 class instead of 2? BouncingBalls.java ...
4
votes
1answer
538 views

GUI layout for a security camera app

I'm designing a security camera program. Right now, I am just trying to set up the GUI before receiving. I am using Kivy since, in the future, I plan on designing some programs for Android. I really ...
3
votes
1answer
450 views

Simple GTK GUI for the command line program auCDtect

I'm trying to write a simple GTK GUI for the command line program auCDtect. It is supposed to take .flac files, convert them to .wav temporarily, pass the to the auCDtect command line program to check ...
1
vote
4answers
3k views

Eliminating global variables in GUI program

I'm just getting started on GUI programming using swing in Java, and I would love some critiques on my code. I understand there is a danger in using global variables. If someone can hint me on how to ...
3
votes
1answer
2k views

Graphical Tic-Tac-Toe game using SFML

First of all, I'm really new to SFML and making GUIs. This is my first real program using this. Right now, when I click outside the window when the program is first run, the first piece is placed in ...
1
vote
2answers
5k views

Nested layouts - BoxLayout inside BorderLayout

I have this code: ...
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 ...
1
vote
1answer
35k views

Simple chat room Swing GUI

I need somebody to review and polish my GUI code for my very very simple chat client. I haven't built any of the server sockets, so I'll do that later, but for now I just want people to tell me how ...
3
votes
1answer
9k 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
1answer
2k views

GUI system in PyGame

I'm making a GUI system in Python for game development with PyGame. Right now I have a button that changes colors when you hover and click on it. My question is, is this code well designed or can it ...
3
votes
5answers
511 views

Prompting a user to save and regenerate some entries in a file

I want to remove my goto's in this code but I'm not sure how. There must be a cleaner way to write my code. Perhaps move the "if" statement to the end of each loop then use break? Sorry if this is a ...
11
votes
2answers
14k 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 ...
5
votes
3answers
466 views

Readable code with many components (Swing)

Please help me to make more readable and simple code like this. What if I had 20 components? Is it right to organize code like this? ...
5
votes
1answer
351 views

Ideas for reducing repetition in control binding

I have seven checkboxes on a data maintenance WinForm, which indicate the days of the week that are "valid" for a particular operation to be performed. These "map" to a list of DayOfWeek enum values ...
24
votes
2answers
6k 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 ...
3
votes
1answer
3k views

Custom dropdown menu using jQuery

I have written a custom drop down menu handler using jQuery because I felt that the native drop down didn't fit my UI. I have taking into consideration the native way of going through a drop down box ...
5
votes
1answer
6k views

Python Sudoku GUI

This code implements a data structure for representing a Sudoku board, a very simple algorithm for setting up the board, and a GUI written in tkinter(requires tkinter and tkinter.tix). ...
7
votes
5answers
2k views

Anonymous Classes for Listeners

While working with Android GUI my approach to adding Listeners for GUI elements is usually: ...
2
votes
2answers
575 views

Sudoku boxes count JavaScript

I'm creating Sudoku in JS but can't find the way to extract the numbers from the squares. The numbers from the rows and columns are easy to extract but I can't find the way around the squares. ...
4
votes
1answer
9k views

Putting items next to each other

I want to put some text next to its label (both of which are text blocks - which are faster than labels as I understand it). The best way I've found for doing this is a stack panel. I have (repeated ...