Questions tagged [swing]
The swing tag has no summary.
57 questions
1
vote
2
answers
260
views
Testing GUI panel involving modal dialogs
Suppose you have a panel with a table, which I will call a pane.
The table has a toolbar above it, including an edit button.
Editing involves showing an editing dialog. It allows the user to edit the ...
0
votes
3
answers
221
views
Tracking data change in GUI form
Problem: our application allows users to close a form window after certain changes without any confirmation, instead of pressing the Save button. This makes them complain they have to start afresh.
We ...
0
votes
2
answers
616
views
How does the MVC pattern actually work?
I’m still a Computer Science student, and recently I’ve had to develop a project using the MVC pattern, but without having learned in depth about how it actually works. And it’s not the first time I’...
0
votes
1
answer
235
views
Exception handling with failure atomicity in desktop applications
When it comes to exception handling, there are many guidelines and best practices on the web. On of them is to throw early, catch late, or even Don't Catch. So when facing an exception, the current ...
2
votes
2
answers
417
views
MVC: Should my domain model look like this?
Consider the following GUI screen (Java Swing) with a list of persons where the user can select a person and delete it.
According to MVC, the view observes (observer pattern) the model and updates ...
2
votes
1
answer
135
views
How to properly model an MVC model in this case?
I aim to understand pull model MVC. I'm stuck at defining a model for a simple color-guessing game in Java Swing I chose to practice it.
I borrowed the model's initial version from an example which ...
1
vote
1
answer
286
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 ...
-2
votes
1
answer
134
views
How can I transfer a users information in a dashboard page after he/she logs in?
I am developing a Bank Management Project. Now I am stuck in a point. I want to create a login page where a user will submit his/her username and password then after clicks on the login button, a new ...
-3
votes
1
answer
295
views
Java swing debugging [closed]
I have programmed a Java Swing application. I have some bugs in my program and I want to discover where in the code these errors occurs.
With normal code (Non-GUI related code) I apply debugging for ...
-3
votes
2
answers
128
views
Determine image value by image name
I'm making a blackjack game, and I want to take my cards images and give each a value for the game.
I'm not sure how to determine their value. Should I just do a big switch statement with all the ...
1
vote
1
answer
573
views
How to quickly present 1000s of pictures in a jlist
I need people opinions on how to improve a code I've written. Let's assume we have an application cataloging movies (~3500 of them) and actors (~1000, but I need to double-check this).
Both actors ...
-1
votes
1
answer
801
views
MVC with several MVC-patterns and gameloop
I made a small program using several MVC-patterns. So far I havnt got to much stuff to put in the model so I havnt got any model yet.
My idea is to make one MVC pattern for each panel. And looping ...
10
votes
3
answers
36k
views
How to reduce size of jar file?
I dont know how to reduce the size of jar file.
When we normally code in Java Swing the jar file is created, is there any way to reduce the size of jar file? I can't remove the images and other stuff ...
10
votes
5
answers
9k
views
How many classes are too many?
I'm making a Book Manager App using Java Swing that allows me to do a variety of things such as opening a txt list of books, searching for books, adding/removing books.
There are different classes ...
0
votes
1
answer
996
views
Architecture for my Java application [closed]
I try to create small Java tools to help me at my work every now and then. Usually these do not have to be pretty and I find myself coding a single, sometimes massive, Java class. However, now my plan ...