< prev index next >
src/java.desktop/share/classes/javax/swing/text/TabStop.java
Print this page
*** 36,46 ****
* Serialized objects of this class will not be compatible with
* future Swing releases. The current serialization support is
* appropriate for short term storage or RMI between applications running
* the same version of Swing. As of 1.4, support for long term storage
* of all JavaBeans™
! * has been added to the <code>java.beans</code> package.
* Please see {@link java.beans.XMLEncoder}.
*
*/
@SuppressWarnings("serial") // Same-version serialization only
public class TabStop implements Serializable {
--- 36,46 ----
* Serialized objects of this class will not be compatible with
* future Swing releases. The current serialization support is
* appropriate for short term storage or RMI between applications running
* the same version of Swing. As of 1.4, support for long term storage
* of all JavaBeans™
! * has been added to the {@code java.beans} package.
* Please see {@link java.beans.XMLEncoder}.
*
*/
@SuppressWarnings("serial") // Same-version serialization only
public class TabStop implements Serializable {
*** 85,105 ****
/** Location, from the left margin, that tab is at. */
private float position;
private int leader;
/**
! * Creates a tab at position <code>pos</code> with a default alignment
* and default leader.
* @param pos position of the tab
*/
public TabStop(float pos) {
this(pos, ALIGN_LEFT, LEAD_NONE);
}
/**
! * Creates a tab with the specified position <code>pos</code>,
! * alignment <code>align</code> and leader <code>leader</code>.
* @param pos position of the tab
* @param align alignment of the tab
* @param leader leader of the tab
*/
public TabStop(float pos, int align, int leader) {
--- 85,105 ----
/** Location, from the left margin, that tab is at. */
private float position;
private int leader;
/**
! * Creates a tab at position {@code pos} with a default alignment
* and default leader.
* @param pos position of the tab
*/
public TabStop(float pos) {
this(pos, ALIGN_LEFT, LEAD_NONE);
}
/**
! * Creates a tab with the specified position {@code pos},
! * alignment {@code align} and leader {@code leader}.
* @param pos position of the tab
* @param align alignment of the tab
* @param leader leader of the tab
*/
public TabStop(float pos, int align, int leader) {
< prev index next >