This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
Right now I'm facing with a "swing freeze" problem. I have two forms, one made using swing and the second using SWT. If I call the SWT one from the swing one, everything in the swing one freeze until the SWT form is closed.
Well, I have a Jmenu which lets me access to the SWT form. If I click the option, the menu freeze still open (and the whole form also freeze) and the SWT form is open. If I close the SWT one, everything comes back again to normal in the swing world.
I have something like this in the swing window
which opens the SWT form. Am I doing something wrong? Thanks!
posted 5 years ago
Hey that was easy!
Only made a thread and make your SWT application to implement Runnable and that's it!
It would be something like
a) In the SWT form:
b) When you call it:
With these two items, you can use both the SWT and swing forms at the same time!