I'm building an application that has several different frames. Each
has a button that when pressed should bring up a new frame and close
the calling frame. How can I display the new frame and close
the calling frame?

I have two threads in an application. Thread A displays a form and
allows the user to interact with it, thread B executes a loop which
continually retrieves data and updates the form object by executing a
synchronized method in the form object.
I first tried to code thread A to use the showDialog() method on the form
object, then started thread a and then thread b. However, thread a
starts and the form then waits to be closed before the statement
starting thread b is executed. I then tried just using the show()
method in thread a - this allows the start of thread b to execute but
I lose my interaction with the form.

It has become customary for Microsoft Windows users to close an active window by pressing the escape key. It is not that easy to intercept key events in Java. This is because key events go directly ...

Is there a way that I can dynamically determine the value of a
Scrollbar when I am scrolling? The adjustmentValueChanged method
gets called only when you stop scrolling. But I want to catch
the value of the scrollbar when I press on the scrollbar and I
am dragging it. Is there a way to do this?

I am trying to put all the checkboxes in a CheckboxGroup into an
unselected state, but Checkbox.setState(false) does not
automatically unselect the checkbox once a checkbox has been selected
within a CheckboxGroup. How can this be done?