i am writing a simple word processor using the "using text components" tutorial as a starting point.
some of it was straightforward copy and paste: bold, italic, underline. others i figured out by extrapolation: left center right. i am having problems though with font type, font size, and color.
these i am changing from the tutorial. i use JComboBox for type and size, and JColorChooser for color.
i need help! it is all too confusing.
i think i need to use this method from StyledDocument
but Style is an Interface as are the rest of this motly crew.
i figured it out for the most part. i was misled sort of by the tutorial. i was under the impression that FontFamily could be only "serif" or "sans serif" and the font name was something different. as it turns out the font names(Arial, Times New Roman, etc) are font families. i still have a couple of problems, but i will start a different thread for them. i would do it now, but i don't have my laptop with me.