?
Solved

label Again

Posted on 2004-03-30
9
Medium Priority
?
183 Views
Last Modified: 2010-03-31

I asked for help, but i am still experiencing some problems from the help i got. I asked how you can bold and change the size of a label that is on a panel?
The following is the answer or help I got:

yourLabel.setFont(new Font("sanserif", Font.BOLD, 12));

when I use it, i get the following error:

Z:\playCode\Simulator.java:112: <identifier> expected
          sysName.setFont(new Font("sanserif", Font.BOLD, 12));
                                               ^


0
Comment
Question by:deweber1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
9 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 10716775
Please post the context of what you're doing, i.e. the whole method
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 10716782
Of course you must

import java.awt.Font;

too
0
 
LVL 37

Expert Comment

by:zzynx
ID: 10716903
1) Hey, you're not supposed to have two accounts (krizmotlhala & deweber1)
cf. http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20937635.html

2) You're supposed to add extre comments on an existing question. And not opening again and again new questions.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 86

Expert Comment

by:CEHJ
ID: 10716936
That's certainly true if that's the case.
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 500 total points
ID: 10721267
>> <identifier> expected

Is sysName an object? I doubt it. Or else, Font is not imported.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10878616
Sounds ok to me.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question