i had used String builder for appending the data and i am converting to string in textpane . so i need different words in different color so how should i do this using This String Builder.
Please help me... Thanks in advance.
my program is to append the nos converted to string each time from the for loop so for appending i am using string builder and then converting to string and setting to JTextPane.
my problem is when i am searching one no in the entered JTextPane. that no should appear in color..i am getting that no.. but i am not knowing how to color it ... please help me sir...i need to submit this assignment as soon as possible
here in my GUI by clicking on the search button flag becomes true and it checks the if condition in that "currentValueLat" will come from for loop and "getLatSearch()" will be from the user (search value)
and here i need to color that value and sb is the string builder object . appendcolor is a function and i will the code for that
so how to do this i am a beginner for Java... so please help me ... thank you all in advance