-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMenu.java
More file actions
28 lines (25 loc) · 685 Bytes
/
Menu.java
File metadata and controls
28 lines (25 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* 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.
*/
/**
*
* @author DANIEL
*/
import javax.swing.JOptionPane;
public class Menu {
public Menu() {
}
public int capturarOpcion() {
String tMensaje;
int rOpcion;
tMensaje = "1. Registrar Empresa\n";
tMensaje = tMensaje + "2. Consultar Empresa\n";
tMensaje = tMensaje + "3. Consultar archivo\n";
tMensaje = tMensaje + "4. Consultar Indicadores\n";
tMensaje = tMensaje + "5. Salir";
rOpcion=Integer.parseInt(JOptionPane.showInputDialog(tMensaje));
return rOpcion;
}
}