Tags: arial, components, default, designing, dialog, font, gui, jdeveloper, programming, setting, size, sizes, tools

Setting Default font Sizes in JDeveloper

On Programmer » Development Tools

3,378 words with 1 Comments; publish: Mon, 11 Feb 2008 04:32:00 GMT; (20061.52, « »)

Hi,

I am using jdeveloper for designing gui. i would like to use font arial size 12 for my ui components.

but jdeveloper is using font dialog size 11.

So, how could i make my font size as default font size?

All Comments

Leave a comment...

  • 1 Comments
    • You should put this inside your application's main method:

      final String name = "Tahoma";

      // use whatever font you needfinal Font font = new Font(name, Font.PLAIN, 12);

      javax.swing.UIManager.put("Label.font", font);

      javax.swing.UIManager.put("ToolTip.font", font);

      javax.swing.UIManager.put("TextField.font", font);

      javax.swing.UIManager.put("TabbedPane.font", font);

      javax.swing.UIManager.put("Panel.font", font);

      javax.swing.UIManager.put("ToggleButton.font", font);

      javax.swing.UIManager.put("Button.font", font);

      javax.swing.UIManager.put("Menu.font", font);

      javax.swing.UIManager.put("MenuItem.font", font);

      javax.swing.UIManager.put("ProgressBar.font", font);

      javax.swing.UIManager.put("Tree.font", font);

      javax.swing.UIManager.put("RadioButton.font", font);

      javax.swing.UIManager.put("CheckBox.font", font);

      javax.swing.UIManager.put("ColorChooser.font", font);

      javax.swing.UIManager.put("ComboBox.font", font);

      javax.swing.UIManager.put("List.font", font);

      javax.swing.UIManager.put("MenuBar.font", font);

      javax.swing.UIManager.put("RadioButtonMenuItem.font", font);

      javax.swing.UIManager.put("CheckBoxMenuItem.font", font);

      javax.swing.UIManager.put("PopupMenu.font", font);

      javax.swing.UIManager.put("OptionPane.font", font);

      javax.swing.UIManager.put("Panel.font", font);

      javax.swing.UIManager.put("ProgressBar.font", font);

      javax.swing.UIManager.put("ScrollPane.font", font);

      javax.swing.UIManager.put("ViewPort.font", font);

      javax.swing.UIManager.put("Table.font", font);

      javax.swing.UIManager.put("TableHeader.font", font);

      javax.swing.UIManager.put("PasswordField.font", font);

      javax.swing.UIManager.put("TitledBorder.font", font);

      javax.swing.UIManager.put("ToolBar.font", font);

      javax.swing.UIManager.put("InternalFrame.font", font);

      javax.swing.UIManager.put("DesktopIcon.font", font);

      javax.swing.UIManager.put("TextPane.font", font);

      javax.swing.UIManager.put("EditorPane.font", font);

      javax.swing.UIManager.put("TextArea.font", font);

      #1; Fri, 22 Feb 2008 03:23:00 GMT