File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Baseline and Leading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Baseline and Leading" Watch "Baseline and Leading" New topic

Baseline and Leading

Suhaas Mohandos

Joined: Oct 16, 2012
Posts: 2
If something is not baseline then does that mean it is leading? I am not clear about the difference between baseline and leading. I don't see any difference in the output between Baseline(Code 1) and Leading(Code 2) except for difference between the textbox sizes. So what is the difference between Baseline and Leading?

Baseline(Code 1):

Leading(Code 2):

Tony Docherty

Joined: Aug 07, 2007
Posts: 2839
The API docs explain what they do.
It is sorta covered in the JavaRanch Style Guide.
subject: Baseline and Leading
It's not a secret anymore!