Welcome to Dream.In.Code
Become a Java Expert!

Join 149,482 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,400 people online right now. Registration is fast and FREE... Join Now!




JAPPLET HELP

 
Reply to this topicStart new topic

JAPPLET HELP

rockstar4cs
23 Apr, 2007 - 09:11 PM
Post #1

D.I.C Head
**

Joined: 16 Apr, 2007
Posts: 73


My Contributions
CODE
setFont("Courier",Font.BOLD, 12);


I'm using that in my JApplet to fix my Font size style and what not I just wanted to know if its right my teacher told me to use the setFont() method and thats what I came up with I entered it in my code and its coming up with errors is my logic correct?
User is offlineProfile CardPM
+Quote Post

keems21
RE: JAPPLET HELP
23 Apr, 2007 - 10:07 PM
Post #2

D.I.C Head
Group Icon

Joined: 3 Feb, 2007
Posts: 183



Thanked: 2 times
Dream Kudos: 25
My Contributions
What kind of errors are you getting? That would help us help you solve your problem.
User is offlineProfile CardPM
+Quote Post

gius78
RE: JAPPLET HELP
24 Apr, 2007 - 03:39 AM
Post #3

New D.I.C Head
*

Joined: 5 Apr, 2007
Posts: 5


My Contributions
QUOTE(rockstar4cs @ 24 Apr, 2007 - 06:11 AM) *

CODE
setFont("Courier",Font.BOLD, 12);


I'm using that in my JApplet to fix my Font size style and what not I just wanted to know if its right my teacher told me to use the setFont() method and thats what I came up with I entered it in my code and its coming up with errors is my logic correct?


Hey dude try this:

setFont (new Font("Courier",Font.BOLD, 12));

That should work! Good luck

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 04:33PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month