File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Baseline and Leading" Watch "Baseline and Leading" New topic
Author

Baseline and Leading

Suhaas Mohandos
Greenhorn

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
Bartender

Joined: Aug 07, 2007
Posts: 2158
    
  47
The API docs explain what they do.
See http://docs.oracle.com/javase/6/docs/api/javax/swing/GroupLayout.Alignment.html#LEADING
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Baseline and Leading
 
Similar Threads
Problem with GroupLayout
What is/the point of, a secure thread?
how to populate a JTable from database
Syntax for GroupLayout
GroupLayout not working in a JPanel