Tagged Questions
0
votes
0answers
15 views
How to implement MVC on the application scale?
I'm developing a simple conferencing app with a Swing standalone client which connects to enterprise java beans. Users can create "sessions" (conferences) on the server, and then can join those ...
0
votes
0answers
49 views
Would appreciate feedback on college project
would appreciate some feedback regarding best practices on the following code which is a college project. What should go in the controller and what in the views? How to attach and remove the views to ...
1
vote
1answer
43 views
Java; Generic Observer/Observable - is this as messy as I think?
I have recently had a whole load of help trying to roll my own loosely-coupled Observable/Observer paradigm, here: Loosely coupled observer pattern
To keep things simple and to aid in my ...
1
vote
0answers
65 views
Need some advice how to proceed with my project
I have set up a basic MVC project which should be 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
74 views
Some feedback on first attempt to write Java MVC app
I'm writing my first Java MVC application which should be a desktop student administration application with a swing gui. DAO is already implemented: Need some feedback - student administration ...
0
votes
1answer
61 views
how do I encapsulate this List<Message> properly?
I know that Swing isn't true MVC:
Using this modified MVC helps to more completely decouple the model
from the view.
Leaving aside the veracity of the above claim, the problem I run into is ...
1
vote
1answer
152 views
How to update my Swing JTable dynamically. MVC Pattern
I have created a program using a version of MVC architecture. The purpose of the code is to scrape the h1 titles of a list of webpages and to return the results to a JTable.
So far I have the ...
1
vote
1answer
40 views
Action based controller using reflections
I'm modeling a controller reflection based. I would like to know if you agree my implementation and what could to be enhanced.
I'm starting with reflection and I would like to know if I'm using good ...
1
vote
2answers
279 views
Is there a more efficient way of loading views within my java app?
I'm building a web application in Java. I'm new to Java, so before I get too far into this... I'm hoping to take advantage of all the experience here and learn the problems with this setup.
My ...
4
votes
1answer
154 views
Pubsub implementation using a Singleton
Is using a singleton to represent a Publish-subscribe message system a bad design choice?
Background
Im thinking about writing a pubsub implementation (using the singleton pattern) to allow for ...
1
vote
0answers
71 views
MVC - Is the “current connected user” an information that should be shared with the domain?
I'm working right now in a readers social network. The main points are this:
When an user connects with his account I save his user id in the
session variable.
My MVC is working with DTO's all the ...
0
votes
0answers
99 views
How to Decouple a Custom ListCellFactory From Controller?
I'm writing a UI with JavaFX 2.1. It looks like this:
So far so good. For the right list I have some custom elements- questions I want the user to answer. It's a string with three Comboboxes that ...
1
vote
2answers
302 views
Java: Worries about my implementation of MVC in a GUI Application
This is a question I have in regards to my implementation of the MVC design paradigm that I came up with. The MVC type I am using is where everything must go through the controller. No communication ...
2
votes
1answer
200 views
How can i clean and organize up my View (MVC) better
So i got the grip on the basic MVC patterns in java using Observer / Observable method. Now in interest of keeping it clean and readable i would like some pointers before i move on regarding how to ...
4
votes
2answers
2k views
MVC Controller in Java Swing Apps - Singleton or public static
This article has left me a little confused.
In explaining a method on how to design MVC into Java Swing apps the author defines the controller class as Singleton and relays a series of calls to the ...