public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TabPanel.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TabPanel.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TabPanel.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TabPanel.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        /*java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TabPanel().setVisible(true);
            }
        });*/
        
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                try {
                    makeButtons();
                } catch (IOException ex) {
                    Logger.getLogger(TabPanel.class.getName()).log(Level.SEVERE, null, ex);
                }
                final JEditorPane ep = new JEditorPane();
                ep.setEditable(false);

                some.tabs.addTab(null, new JScrollPane(ep));
               // some.jTabbedPane1.addTab (null, null);
                FlowLayout f = new FlowLayout (FlowLayout.CENTER, 5, 0);

                // Make a small JPanel with the layout and make it non-opaque
                final JPanel pnlTab = new JPanel (f);
                pnlTab.setOpaque (false);
                // Create a JButton for adding the tabs
                JButton addTab = new JButton("+");
                addTab.setOpaque (false); //
                addTab.setBorder (null);
                addTab.setContentAreaFilled (false);
                addTab.setFocusPainted (false);
                addTab.setFocusable (false);
                pnlTab.add (addTab);

                some.tabs.setTabComponentAt(some.tabs.getTabCount () - 1, pnlTab);

                ActionListener listener = new ActionListener () {
                    @Override
                    public void actionPerformed (ActionEvent e) {
                        try {
                            some.tabs.remove(some.tabs.getTabCount () - 1);
                            addTab(some.tabs,null);
                            some.tabs.addTab(null,new JScrollPane(ep));
                            tabCounter++;
                            some.tabs.setTabComponentAt (some.tabs.getTabCount () - 1, pnlTab);
                            
                        } catch (IOException ex) {
                            Logger.getLogger(TabPanel.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                };
                addTab.setFocusable (false);
                addTab.addActionListener (listener);
                some.tabs.setVisible (true);
                some.setTitle("NesC-IDE1.0");
                some.setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH);
                some.setVisible(true);

                UIManager.LookAndFeelInfo piel[] = UIManager.getInstalledLookAndFeels();
                for (UIManager.LookAndFeelInfo piel1 : piel) {
                    System.out.println("Nombre Skin = " + piel1.getClassName());
                    //some.setVisible(true);
                }
            }
        });
    }