This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Everyone! I am wrinting my own java editor using java. which can recognize keywords and basic classes and give them apropriate Color while typing. I am using HashTable for storing keyword,classes and there relevent Color values.more then 150 listing in singel HashTable and speed is too slow. instead of using HashTable now i want to use FileReaders i want to put keywords and class names in different files. will it increase the speed of recognizing the keywords. if not then pls suggest me some proper way of doing all this.
Thanx Steve , I got read your tutorial but unable to download. because proxy is giving error. just tell meone thing will ur editor color word at the time of tying or after saving. i want to use FileReader instead of HashTable suggest me.
Joined: Dec 03, 2001
The tutorial outlines proceedures that need to be followed to color text dynamically (and quickly) as the user types.
Originally posted by vishwas bhatt: I am using HashTable for storing keyword,classes and there relevent Color values.more then 150 listing in singel HashTable and speed is too slow.
Are you really sure it is the *HashTable* that is to slow? Did you profile your program?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus