Use a tabbed pane.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1022 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AdjustTestApp.java,v 1.1 2003/01/15 00:47:06 mdb Exp $
|
||||
// $Id: AdjustTestApp.java,v 1.2 2003/01/15 03:24:53 mdb Exp $
|
||||
|
||||
package com.samskivert.util;
|
||||
|
||||
@@ -7,7 +7,6 @@ import java.awt.BorderLayout;
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
/**
|
||||
* Does something extraordinary.
|
||||
@@ -38,11 +37,11 @@ public class AdjustTestApp
|
||||
"otherpackage.test.enum_adjust1", config,
|
||||
new String[] { "debug", "info", "warning" }, "info");
|
||||
|
||||
JPanel editor = RuntimeAdjust.createAdjustEditor();
|
||||
JFrame frame = new JFrame();
|
||||
((JComponent)frame.getContentPane()).setBorder(
|
||||
BorderFactory.createEmptyBorder(5, 5, 5, 5));
|
||||
frame.getContentPane().add(editor, BorderLayout.CENTER);
|
||||
frame.getContentPane().add(RuntimeAdjust.createAdjustEditor(),
|
||||
BorderLayout.CENTER);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
frame.pack();
|
||||
frame.show();
|
||||
|
||||
Reference in New Issue
Block a user