medical.Medical.java Source code

Java tutorial

Introduction

Here is the source code for medical.Medical.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package medical;

import Citas.FrameCita;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.apache.http.client.ClientProtocolException;
import org.json.JSONException;
import javax.swing.JOptionPane;

/**
 *
 * @author Yanir
 */
public class Medical {

    /**
     * @param args the command line arguments
     */

    public static void main(String[] args) throws IOException, ClientProtocolException, JSONException {
        // TODO code application logic here

        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Medical.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Medical.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(Medical.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Medical.class.getName()).log(Level.SEVERE, null, ex);
        }
        FrameCita cita = new FrameCita();
        cita.setVisible(true);
    }

}