import java.awt.*; import javax.swing.*; import java.util.*; //import java.awt.event.*; //import javax.swing.JPanel; import javax.swing.JFrame; public class Administrador { private static void createAndShowGUI() { //Make sure we have nice window decorations. JFrame.setDefaultLookAndFeelDecorated(true); //Create and set up the window. JFrame frame = new JFrame("ADMINISTRADOR"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Create and set up the content pane. frame.setJMenuBar(new MenuBar()); //frame.setContentPane(demo.createContentPane()); frame.setContentPane(new SplitPane()); //Display the window. frame.setSize(800, 500); frame.setLocation(50,150); frame.setVisible(true); } public static void main(String[] args) { //Schedule a job for the event-dispatching thread: //creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); } }