aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/javax/swing/JTabbedPane.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@gcc.gnu.org>2006-01-17 18:09:40 +0000
committerMark Wielaard <mark@gcc.gnu.org>2006-01-17 18:09:40 +0000
commit2127637945ea6b763966398130e0770fa993c860 (patch)
treec976ca91e3ef0bda3b34b37c0195145638d8d08e /libjava/classpath/javax/swing/JTabbedPane.java
parentbcb36c3e02e3bd2843aad1b9888513dfb5d6e337 (diff)
downloadgcc-2127637945ea6b763966398130e0770fa993c860.zip
gcc-2127637945ea6b763966398130e0770fa993c860.tar.gz
gcc-2127637945ea6b763966398130e0770fa993c860.tar.bz2
Imported GNU Classpath 0.20
Imported GNU Classpath 0.20 * Makefile.am (AM_CPPFLAGS): Add classpath/include. * java/nio/charset/spi/CharsetProvider.java: New override file. * java/security/Security.java: Likewise. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r109831
Diffstat (limited to 'libjava/classpath/javax/swing/JTabbedPane.java')
-rw-r--r--libjava/classpath/javax/swing/JTabbedPane.java21
1 files changed, 13 insertions, 8 deletions
diff --git a/libjava/classpath/javax/swing/JTabbedPane.java b/libjava/classpath/javax/swing/JTabbedPane.java
index 27ba7bb..8a7d4c0 100644
--- a/libjava/classpath/javax/swing/JTabbedPane.java
+++ b/libjava/classpath/javax/swing/JTabbedPane.java
@@ -497,7 +497,7 @@ public class JTabbedPane extends JComponent implements Serializable,
*/
public int getMnemonic()
{
- return (int) mnemonicKey;
+ return mnemonicKey;
}
/**
@@ -592,9 +592,11 @@ public class JTabbedPane extends JComponent implements Serializable,
/**
* Creates a new JTabbedPane object using wrap tab layout and the given
- * tabPlacement.
+ * <code>tabPlacement</code>, where <code>tabPlacement</code> can be one
+ * of the following values: {@link #TOP}, {@link #BOTTOM}, {@link #LEFT} or
+ * {@link #RIGHT}.
*
- * @param tabPlacement Where the tabs will be placed.
+ * @param tabPlacement where the tabs will be placed
*/
public JTabbedPane(int tabPlacement)
{
@@ -602,11 +604,14 @@ public class JTabbedPane extends JComponent implements Serializable,
}
/**
- * Creates a new JTabbedPane object with the given tabPlacement and
- * tabLayoutPolicy.
+ * Creates a new JTabbedPane object with the given <code>tabPlacement</code>
+ * and <code>tabLayoutPolicy</code>. The <code>tabPlacement</code> can be one
+ * of the following values: {@link #TOP}, {@link #BOTTOM}, {@link #LEFT} or
+ * {@link #RIGHT}. The <code>tabLayoutPolicy</code> can be either
+ * {@link #SCROLL_TAB_LAYOUT} or {@link #WRAP_TAB_LAYOUT}.
*
- * @param tabPlacement Where the tabs will be placed.
- * @param tabLayoutPolicy The way tabs will be placed.
+ * @param tabPlacement where the tabs will be placed
+ * @param tabLayoutPolicy the way tabs will be placed
*
* @throws IllegalArgumentException If tabLayoutPolicy or tabPlacement are
* not valid.
@@ -913,7 +918,7 @@ public class JTabbedPane extends JComponent implements Serializable,
if (getSelectedIndex() == -1)
setSelectedIndex(0);
- layout();
+ revalidate();
repaint();
}