Implement mulithreading in JFrame

Hi,

I would like to implemnt threads in JFrame. I am calling a JFrame "Collect" from a main Window(JFrame) by clicking the Menuitem "Collect".

When I click on the button "Parse" in JFrame Collect, it will collect the values from the selected Text file from a specified location.

I have to perform the same task for different file at the same time by opening a new Collect JFrame.

I am trying to implement RunnaBLE. How it is possible?

Could you please help me to perform same task(mite be its for different file or same file) at a time by using Runnable.

I am using NetBeans for GUI design and implementation.

Thanks and regards,

Fins.

[692 byte] By [fins4ua] at [2007-11-27 4:15:21]
# 1

I do not think the necessity of using threads here. You should consider threading when you write/modify the common data.

In your case , thread is not required for reading the file.

Just create a new object for your collect JFrame in actionPerformed of Parse Button.

Collect collectionObject = new Collect();

AnanSmritia at 2007-7-12 9:21:43 > top of Java-index,Desktop,Core GUI APIs...
# 2

I do not think the necessity of using threads here. You should consider threading when you write/modify the common data.

In your case , thread is not required for reading the file.

Just create a new object for your collect JFrame in actionPerformed of Parse Button.

Collect collectionObject = new Collect();

AnanSmritia at 2007-7-12 9:21:43 > top of Java-index,Desktop,Core GUI APIs...