i just want the dialog to die....it disappears but stays in the taskbar [ July 22, 2006: Message edited by: Hasnain SS ]
Hasnain S
Greenhorn
Joined: Jul 18, 2006
Posts: 17
posted
0
well i still havent solved the problem so if anyone can help...please do so...
bump
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
what shows in the taskbar is the dialog's parent, not the dialog.
can you post a simple demo program, so we can see exactly how you are doing this
Hasnain S
Greenhorn
Joined: Jul 18, 2006
Posts: 17
posted
0
i could send it coz the program code is too big to post here
i am pretty sure that the ghost is of the Jdialog
pm me if possible
Hasnain S
Greenhorn
Joined: Jul 18, 2006
Posts: 17
posted
0
i have sent at ur email
plz chek it
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
the part creating the extra taskbar item is caused by the code in addCust going around in circles i.e. you seem to be creating a separate dialog/frame within the dialog itself, instead of using the class as a dialog (extends JDialog)
a couple of changes in mainFrame 1) starting at line 587
2) added a 'main' to mainFrame
and this is the modified addCust code
Hasnain S
Greenhorn
Joined: Jul 18, 2006
Posts: 17
posted
0
ok it didnt work
plz bear with me...im going to list the changes...
addCust ac = new addCust(mainFrame.this);//<----------added
//selectedNames = addCust.showDialog(mainFrame.this); //<---this wasnt there when i put it it give me error selectedNames = ac.showDialog();//<-----i added this
No.2==================================
why did u add a main to the mainFrame? I already had one in dFreeze.java
thats how i learnt it......to keep main away from the code....
anyway i added it in the end just before the last }...and surprisngly it compiled and ran normally
i believe thats it....if i missed out something please correct me....or if the code you edited works fine on ur comp then just send the edited files back.....thx for helping me out [ July 24, 2006: Message edited by: Hasnain SS ]
Hasnain S
Greenhorn
Joined: Jul 18, 2006
Posts: 17
posted
0
can u also tell me why is it that when i load a csv file i get 3 new ghost windows opened?