• Post Reply Bookmark Topic Watch Topic
  • New Topic

Font is appearing in bolder manner when we complile application with jdk 1.5  RSS feed

umesh kacha
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I am going to compile my application using jdk 1.4 and 1.5 both,in 1.5 fonts in my application component like frame,dialog fonts are appearing in different manner means in 1.5 it is appearing in bolder manner.

We are developing framework application and we have to give release for jdk 1.5 version but it is giving font difference.

Please resolve this issue because it is very urgent and critical.

this is not our framework problem i have developed one below simple application and compiled it in jdk 1.4 and 1.5 it is showing font difference.

Fonts like times new roman and arial etc are coming in bolder manner means more width but height and style is same.

i have snapshot also but i am not able to paste becasue editor is not accepting images.

I am giving you small program that will reproduce defect apart from my application.

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Frame;
import java.awt.Graphics;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
public class WizardDemo14
public static void main(String[] args)
JFrame dlg = new JFrame("COMPILED IN 1.5");
JLabel jLabel1 = new JLabel();
jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 50));
dlg.getContentPane().setLayout(new BorderLayout());
dlg.setSize(400 ,400);



Please help me
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!