FONT - Java Codes

Font Chooser

Description Java: This Font Chooser is to select size & Font Type as well as Effects like BOLD, ITALLIC , UNDERLINED etc. Source Code import java.awt.*; import java.awt.event.ActionEvent; import java.a ...

0 Comments. 1337 views since Aug 23, 2008

Font ComboBox

Description It is a code which demonstrates the Font Chooser ComboBox. Source Code import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event. ...

0 Comments. 1175 views since Sep 9, 2008

Font List

Description This code shows the List of various Fonts present today. Source Code import java.awt.Font; import java.awt.Graphics; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; ...

0 Comments. 1124 views since Aug 30, 2008

Enhanced Font Chooser

Description 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. Source Code < ...

0 Comments. 1041 views since Sep 12, 2008

Enhanced Font List

Description This code displays all the Fonts present in the Library Automatically. Source Code import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.GraphicsEn ...

0 Comments. 891 views since Aug 30, 2008

Font Drawing: Rectangle

Description This code shows how to Draw Font inside a Rectangle.This code automatically calculates the no of characters present in Text and draws a Rectangle accordingly. Source Code import java.awt.Font ...

3 Comments. 866 views since Aug 30, 2008

Setting Font

Description This code shows how to set Font to your Text in Java Graphics. Source Code import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import jav ...

0 Comments. 856 views since Aug 30, 2008

Enhanced Font Setting

Description This code shows some advanced options for Font Setting on Frame like placing the Text in Spatial Domain. Source Code import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics ...

0 Comments. 832 views since Aug 30, 2008