OSDN Git Service

2006-08-14 Mark Wielaard <mark@klomp.org>
[pf3gnuchains/gcc-fork.git] / libjava / classpath / examples / gnu / classpath / examples / swing / TabbedPaneDemo.java
index 9d797d2..527fe45 100644 (file)
@@ -66,17 +66,17 @@ public class TabbedPaneDemo
     JPanel p = new JPanel();
     p.setLayout(new GridLayout(2, 2));
     JTabbedPane tabs1 = new JTabbedPane(SwingConstants.TOP);
-    tabs1.add("Top Item 1", new JButton("Button"));
-    tabs1.add("Top Item 2", new JButton("Button"));
+    tabs1.add("Top Item 1", new JButton("Content: Top Item 1"));
+    tabs1.add("Top Item 2", new JButton("Content: Top Item 2"));
     JTabbedPane tabs2 = new JTabbedPane(SwingConstants.LEFT);
-    tabs2.add("Left Item 1", new JButton("Button"));
-    tabs2.add("Left Item 2", new JButton("Button"));
+    tabs2.add("Left Item 1", new JButton("Content: Left Item 1"));
+    tabs2.add("Left Item 2", new JButton("Content: Left Item 2"));
     JTabbedPane tabs3 = new JTabbedPane(SwingConstants.BOTTOM);
-    tabs3.add("Bottom Item 1", new JButton("Button"));
-    tabs3.add("Bottom Item 2", new JButton("Button"));
+    tabs3.add("Bottom Item 1", new JButton("Content: Bottom Item 1"));
+    tabs3.add("Bottom Item 2", new JButton("Content: Bottom Item 2"));
     JTabbedPane tabs4 = new JTabbedPane(SwingConstants.RIGHT);
-    tabs4.add("Right Item 1", new JButton("Button"));
-    tabs4.add("Right Item 2", new JButton("Button"));
+    tabs4.add("Right Item 1", new JButton("Content: Right Item 1"));
+    tabs4.add("Right Item 2", new JButton("Content: Right Item 2"));
     p.add(tabs1);
     p.add(tabs2);
     p.add(tabs3);