package temporizadorDeEventos;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridLayout;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
@SuppressWarnings("serial")
public class Informacoes extends JFrame {
JLabel qualDia;
public Integer[] dias = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,29,21,22,23,24,25,26,27,28,29,30,31};
JComboBox<Integer> opDias;
public Dimension tamanhoJB = new Dimension(2, 3);
public Informacoes(){
super("Novo Temporizador");
Container c1 = getContentPane();
c1.setLayout(new GridLayout(15,3));
qualDia = new JLabel("Select a number");
opDias = new JComboBox<Integer>(dias);
opDias.setPrototypeDisplayValue(22);
opDias.setMaximumSize(tamanhoJB);
opDias.setSize(tamanhoJB);
c1.add(qualDia);
c1.add(opDias);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(300, 300);
setVisible(true);
}
public static void main(String[] args){
new Informacoes();
}
}