diff options
author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-17 22:31:17 +0000 |
---|---|---|
committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-17 22:31:17 +0000 |
commit | 8ead3c7a017dee16671aa81666be1ac12380081e (patch) | |
tree | 968fccad9fcafdfc4cca45915f73381632ee4332 /libjava/javax | |
parent | 9afafe5804d0e66cf8cd8f01cf761077b7ccbf92 (diff) | |
download | gcc-8ead3c7a017dee16671aa81666be1ac12380081e.tar.gz |
* javax/swing/JToggleButton.java (ToggleButtonModel):
Make public static inner class.
* javax/swing/JTabbedPane.java (setComponentAt):
Call Page.setComponent().
(SCROLL_TAB_LAYOUT): Make public, value is 1.
(WRAP_TAB_LAYOUT): Make public, value is 0.
* javax/swing/plaf/basic/BasicTabbedPaneUI.java (ScrollingButton):
Make private static inner class.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80800 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax')
-rw-r--r-- | libjava/javax/swing/JTabbedPane.java | 6 | ||||
-rw-r--r-- | libjava/javax/swing/JToggleButton.java | 4 | ||||
-rw-r--r-- | libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/libjava/javax/swing/JTabbedPane.java b/libjava/javax/swing/JTabbedPane.java index c8af0729f44..3c75461f010 100644 --- a/libjava/javax/swing/JTabbedPane.java +++ b/libjava/javax/swing/JTabbedPane.java @@ -544,10 +544,10 @@ public class JTabbedPane extends JComponent implements Serializable, protected SingleSelectionModel model; /** Indicates that the TabbedPane is in scrolling mode. */ - static int SCROLL_TAB_LAYOUT = 0; + public static int SCROLL_TAB_LAYOUT = 1; /** Indicates that the TabbedPane is in wrap mode. */ - static int WRAP_TAB_LAYOUT = 1; + public static int WRAP_TAB_LAYOUT = 0; /** The current tabPlacement of the TabbedPane. */ protected int tabPlacement = SwingConstants.TOP; @@ -1338,7 +1338,7 @@ public class JTabbedPane extends JComponent implements Serializable, public void setComponentAt(int index, Component component) { checkIndex(index, 0, tabs.size()); - ((Page) tabs.elementAt(index)).setEnabled(enabled); + ((Page) tabs.elementAt(index)).setComponent(component); } /** diff --git a/libjava/javax/swing/JToggleButton.java b/libjava/javax/swing/JToggleButton.java index 297bbc929fe..0977b00c6fe 100644 --- a/libjava/javax/swing/JToggleButton.java +++ b/libjava/javax/swing/JToggleButton.java @@ -1,5 +1,5 @@ /* JToggleButton.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -45,7 +45,7 @@ import javax.swing.plaf.ButtonUI; public class JToggleButton extends AbstractButton implements Accessible { - public class ToggleButtonModel extends DefaultButtonModel + public static class ToggleButtonModel extends DefaultButtonModel { public void setPressed(boolean b) { diff --git a/libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java b/libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java index 89e0ae8be20..563a8fef6da 100644 --- a/libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java +++ b/libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java @@ -1191,7 +1191,8 @@ public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants * This is a helper class that implements UIResource so it is not added as a * tab when an object of this class is added to the JTabbedPane. */ - private class ScrollingButton extends BasicArrowButton implements UIResource + private static class ScrollingButton extends BasicArrowButton + implements UIResource { /** * Creates a ScrollingButton given the direction. |