Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Any one faced a similar problem ?  RSS feed

Posts: 25
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have posted in Swing/ AWT / SWT / JFace, but i got no reply.

My working area consists of two JTextAreas and a JTree.
The user can drag a text file from the JTree to the JtextAreas where the header of the file is displayed in one area and the body in the second.

My problem is that i need to erase a particular file. ie: if i erased the header from one area, the corresponding body will be erased also.

Any help would be mostly appreciated.
author and iconoclast
Posts: 24220
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
One reason you didn't get a reply because of the way you phrased this question; it's not at all clear what you have done already, what you're trying to do, exactly, and what you need help with. What does "erase a file" mean here? Clear a text area? Remove something from a list, or the tree? Really delete a file on the disk? What's the "header" in this context?

Another reason is that you first asked it at midnight in the U.S., and then again at 6AM in the U.S. -- 1.5 hours before now asking it again in the (inappropriate) Advanced Java forum. So you asked it three times while many of the people who might answer your question were asleep. Note, also, that everyone here is a volunteer -- it's not like it's anyone's job to answer your questions. 24 hours is not too long to wait for an answer.

We really frown on cross-posting here -- it wastes people's time. I'm going to close this thread. I already deleted one copy of your question in Swing, and I'll direct interested parties to this other copy. Why not go back to the linked-to thread and try to answer the questions I've asked above, and then maybe someone will be able to help you. Please don't answer the questions by posting hundreds of lines of code. And if you do post a short, relevant bit of code, please do use the UBB "CODE" tags (see here for info about that.)
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!