< prev index next >
src/java.desktop/share/classes/javax/swing/JPanel.java
Print this page
*** 34,44 ****
import java.io.ObjectInputStream;
import java.io.IOException;
/**
! * <code>JPanel</code> is a generic lightweight container.
* For examples and task-oriented documentation for JPanel, see
* <a
href="http://docs.oracle.com/javase/tutorial/uiswing/components/panel.html">How to Use Panels</a>,
* a section in <em>The Java Tutorial</em>.
* <p>
--- 34,44 ----
import java.io.ObjectInputStream;
import java.io.IOException;
/**
! * {@code JPanel} is a generic lightweight container.
* For examples and task-oriented documentation for JPanel, see
* <a
href="http://docs.oracle.com/javase/tutorial/uiswing/components/panel.html">How to Use Panels</a>,
* a section in <em>The Java Tutorial</em>.
* <p>
*** 51,61 ****
* 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}.
*
* @beaninfo
* description: A generic lightweight container.
*
--- 51,61 ----
* 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}.
*
* @beaninfo
* description: A generic lightweight container.
*
*** 96,108 ****
public JPanel(LayoutManager layout) {
this(layout, true);
}
/**
! * Creates a new <code>JPanel</code> with <code>FlowLayout</code>
* and the specified buffering strategy.
! * If <code>isDoubleBuffered</code> is true, the <code>JPanel</code>
* will use a double buffer.
*
* @param isDoubleBuffered a boolean, true for double-buffering, which
* uses additional memory space to achieve fast, flicker-free
* updates
--- 96,108 ----
public JPanel(LayoutManager layout) {
this(layout, true);
}
/**
! * Creates a new {@code JPanel} with {@code FlowLayout}
* and the specified buffering strategy.
! * If {@code isDoubleBuffered} is true, the {@code JPanel}
* will use a double buffer.
*
* @param isDoubleBuffered a boolean, true for double-buffering, which
* uses additional memory space to achieve fast, flicker-free
* updates
*** 110,120 ****
public JPanel(boolean isDoubleBuffered) {
this(new FlowLayout(), isDoubleBuffered);
}
/**
! * Creates a new <code>JPanel</code> with a double buffer
* and a flow layout.
*/
public JPanel() {
this(true);
}
--- 110,120 ----
public JPanel(boolean isDoubleBuffered) {
this(new FlowLayout(), isDoubleBuffered);
}
/**
! * Creates a new {@code JPanel} with a double buffer
* and a flow layout.
*/
public JPanel() {
this(true);
}
*** 190,200 ****
/**
* Returns a string representation of this JPanel. This method
* is intended to be used only for debugging purposes, and the
* content and format of the returned string may vary between
* implementations. The returned string may be empty but may not
! * be <code>null</code>.
*
* @return a string representation of this JPanel.
*/
protected String paramString() {
return super.paramString();
--- 190,200 ----
/**
* Returns a string representation of this JPanel. This method
* is intended to be used only for debugging purposes, and the
* content and format of the returned string may vary between
* implementations. The returned string may be empty but may not
! * be {@code null}.
*
* @return a string representation of this JPanel.
*/
protected String paramString() {
return super.paramString();
*** 220,240 ****
return accessibleContext;
}
/**
* This class implements accessibility support for the
! * <code>JPanel</code> class. It provides an implementation of the
* Java Accessibility API appropriate to panel user-interface
* elements.
* <p>
* <strong>Warning:</strong>
* 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
protected class AccessibleJPanel extends AccessibleJComponent {
--- 220,240 ----
return accessibleContext;
}
/**
* This class implements accessibility support for the
! * {@code JPanel} class. It provides an implementation of the
* Java Accessibility API appropriate to panel user-interface
* elements.
* <p>
* <strong>Warning:</strong>
* 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
protected class AccessibleJPanel extends AccessibleJComponent {
< prev index next >