A font chooser that allows users to pick a font by name, size, style, and color. The color selection is provided by a JColorChooser pane. This dialog builds an AttributeSet suitable for use with JTextPane.
import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.Dimension; import java.awt.Font; import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.Act... (login or register to view full code)
To view full code, you must Login or Register, its FREE.
Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.
Related Online Codes:
No comment yet. Be the first to post a comment.