Linked Questions

21 votes
2 answers
11k views

I play with multitreading for SwingWorker by using Executor, and I'm there by mistake identified wrong elements from the Vector, looks like as this code pretty ignores that element in Vector doesn't ...
mKorbel's user avatar
  • 110k
3 votes
3 answers
5k views

In my application there are many views(sub components) and only one controller. Selecting some options in one view can change the layout and number of components in another view. The controller ...
user1213428's user avatar
4 votes
1 answer
4k views

Can you explain me how a Controller can call another Controller method in a simple but still correct way? Please provide some code! background: I Have 2 different Controllers-View-Model and 2 ...
dcr's user avatar
  • 311
4 votes
1 answer
3k views

I am a Java student and just ended the basic functionality of a little command line card game. The game is a simplified version of Magic-type trading card game. There is no AI, you play against ...
TMichel's user avatar
  • 4,492
1 vote
3 answers
2k views

this is a homework btw, I am asked to make a jframe containing multiple jpanels which have buttons and action listeners attached to them. I have to use the MVC model to do it but, since my buttons/...
Mobidoy's user avatar
  • 353
1 vote
1 answer
4k views

So far, I have implemented a GUI based on Swing, and according to the MVC pattern like (here), where events are fired from both view (by using JComponents capabilities) and model (by using ...
capovawi's user avatar
  • 385
4 votes
3 answers
217 views

For routing action requests, I'd like to use a single ActionListener instance for all Components. Calls on actionPerformed could be differentiated using setActionCommand. Is this advised ? Are there ...
James P.'s user avatar
  • 19.7k
2 votes
1 answer
2k views

ok, I'm here again to ask one dummy question. I have a custom dialog frame and have progress bar on it. So also I have a genetic algorithm (which works pretty big amount of time). As I understand all ...
mr.nothing's user avatar
  • 5,419
1 vote
2 answers
2k views

I am trying to fire events from inner class, but it is not working. This is my code: ABSTRACT MODEL: public abstract class AbstractModel { public PropertyChangeSupport propertyChangeSupport; ...
capovawi's user avatar
  • 385
0 votes
1 answer
3k views

My problem is that when I change the value from a property of my model the PropertyChangeSupport fires but the PropertyChangeListener in the view is never reached. So I guess I am making something ...
user3104185's user avatar
1 vote
3 answers
421 views

I have 3 "JProgressBars" in a Java GUI application, which I need to keep updating the values at constant time intervals. This is my application and highlighted are the progress meters which I want to ...
Sanjan's user avatar
  • 81
0 votes
3 answers
696 views

Inside a createAndShowGUI() method called by javax.swing.SwingUtilities.invokeLater like this...: public static void main(String[] args) { javax.swing.SwingUtilities.invokeLater(new Runnable() {...
red-o-alf's user avatar
  • 3,316
0 votes
4 answers
239 views

There is actually more than 1 question. Given Model View and Controller. (Mine are coupled a lot - View knows its Controller, and Controller knows View.) Does new threads in Controller can be fired ...
dantuch's user avatar
  • 9,303
2 votes
1 answer
436 views

I am trying to learn the intricacies of Swing, and have read a great deal about the Event Dispatch Thread. I understand what is for, however am struggling with the following concept: I have a JFrame ...
swshaun's user avatar
  • 384
-3 votes
2 answers
186 views

So, I figured out the SwingWorker thing. However, another problem emerged (go figure)... Swing worker acctually manages error reporting and email sending, and emailing being a lenghty (more than .5 ...
Karlovsky120's user avatar
  • 6,402

15 30 50 per page