Article View: borland.public.jbuilder.java.api
Article #2658drawString is not working with Jbuilder3 Please help...
From: Richard Bakker
Date: Wed, 26 Jul 2000 00:00
Date: Wed, 26 Jul 2000 00:00
25 lines
1292 bytes
1292 bytes
Please give me help with the following problem.
With java (Jbuilder2) 1.1.x I used drawLine and drawString form the
getToolkit // getGraphics.
With version (JBuilder3) 1.2.2 of java only the drawLine wil work.
Example code:
private PrintJob pjob;
private Graphics pag;
Toolkit t=Toolkit.getDefaultToolkit();
Frame printframe=new Frame();
pjob=t.getPrintJob(printframe, "printjob", null);
fontlist[]=t.getFontList();
// some fonts code..... (delete)
fonts[0]=new Font(ft, Font.PLAIN, 12);
pag=pjob.getGraphics();
pag.setFont(fonts[0]);
pag.setFont(fonts[0]);
pag.drawString(textLine, xpos, ypos);
The drawLine will be shown, drawString not.
Please help me to solve this.
Technical Details
Message-ID:
<uuX5u2y9$GA.211@net025s>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,745065da87ec7945,start X-Google-Attributes: gid1089d0,public From: "Richard Bakker" <rb@bakerware.nl> Subject: drawString is not working with Jbuilder3 Please help... Date: 2000/07/26 Message-ID: <uuX5u2y9$GA.211@net025s> X-Deja-AN: 651075694 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Newsgroups: borland.public.jbuilder.java.api