java,swing,jbutton,actionlistener,abstract-action
One thing that many people miss when dealing with key bindings, is the fact that you can register for either a "press" or "release" event (press been the default). So in your case, you need to do both. The "press" event should "arm" AND "press" the button, the "release" should...
java,swing,model-view-controller,repaint,abstract-action
So, the basic idea is to wrap the "current" date value in an observable pattern and pass this to each interested party. This allows the navigation to make changes to the date value, but not need to know about any other part of the program, decoupling it and allow for...
java,swing,action,keylistener,abstract-action
Granted that perhaps keybindings may be the more appropriate method it is not the method I've employed in this portion of the application. Thank you for your response however a friend suggested this today... which has fixed the KeyListener. Such a simple two lines. private JToggleButton getToolRotateButton() { if (toolRotateButton...