aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes my windowclosing doesn't work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "my windowclosing doesn Watch "my windowclosing doesn New topic
Author

my windowclosing doesn't work

Endang Suryawati
Greenhorn

Joined: Sep 19, 2007
Posts: 2
Dear All,
I am running a java blackbox application from commapi package. It can run well receive data via serial RS232. But when i close the window, it can not close as soon as i hit the close button. Java BlackBox use awt component and i run it on linux platform. Is there any delay if i run the program on linux?

I'll wait for your respon to give me the solution as soon. Thanks.

Regards,
endang
Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 426
It may be some heavy work runs in the Event-Dispatch-Thread before you close the window. It will block there until it finished its work.

Why don't you use Swing instead of AWT?


To be or not to be. It's a question.
Endang Suryawati
Greenhorn

Joined: Sep 19, 2007
Posts: 2
I just run a sample program that build using AWT, not Swing. The Fact, it does not synchron with the other process. So , I'll try to edit the program, to use Swing component.

regards,
endang
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Louis Wang:
Why don't you use Swing instead of AWT?


didn't get, what is the reason behind suggesting Swing? is this really matters with the above problem or Swing is better than Awt.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 426
Originally posted by Saif uddin:


didn't get, what is the reason behind suggesting Swing? is this really matters with the above problem or Swing is better than Awt.

I'm just curious about AWT is still used to create GUI. Of course, Swing is better than AWT.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Louis Wang:
Of course, Swing is better than AWT.


Thanks for your reply,

can you please explain why Swing is better than AWT. both using for the same purpose.. I my self didn't find any difference in both toolkit.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: my windowclosing doesn't work
 
Similar Threads
Low level Programing
web based gaming code
Blackdown JRE on iPaq
How to synchronize Serial communication?
When tomcat starts...