I'm doing this as a small project but I hope my vision would be successfully moulded to be true.

I saw a tool - Amaya which is a WYWIWYG HTML editor all made with C.

After seeing it I was impressed and thought of making it with java.
But being novice to Java I could not find out a way for it. All I have is bits of knowledge on struts framework and very basic knowledge in java.

You have a decision point here that I cannot provide clear, detailed and deep advice except that Java to C / C++ translation and back is made convienent by an intentional similarity. Use Java as a wrapper for the C / C++ code, but do not get stuck. You will not achieve enough in the short term to be effective at cross-translation, make c and cpp ( C / C++ ) a secondary study. Make Java your priortiy.