El Buscador De PWG

Título de la nueva página

import java.applet.Applet; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Calendar; import java.util.GregorianCalendar; public class DiaNac extends Applet implements ActionListener { public DiaNac() { cumple = new Label("Para Su Cumpleaños Faltan ?"); zodiaco = new Label("Su Signo Zodiacal"); labelReturnedDay = new Label("Fecha de Nacimiento"); textDay = new TextField("", 10); textMonth = new TextField("", 10); textYear = new TextField("", 10); buttonCompute = new Button("Calcular Día"); } public void init() { setLayout(new BorderLayout()); add(createSwings(), "North"); textDay.requestFocus(); } private Panel createSwings() { labelReturnedDay.setAlignment(1); zodiaco.setAlignment(1); cumple.setAlignment(1); Label labelDay = new Label("Día"); labelDay.setAlignment(1); Label labelMonth = new Label("Mes"); labelMonth.setAlignment(1); Label labelYear = new Label("Año Ej. 1999"); labelYear.setAlignment(1); Panel pane = new Panel(); GridBagLayout g1 = new GridBagLayout(); GridBagConstraints gb = new GridBagConstraints(); pane.setLayout(g1); gb.fill = 2; gb.insets = new Insets(10, 10, 10, 10); gb.weightx = 1.0D; gb.weighty = 0.25D; gb.gridx = 1; gb.gridy = 1; gb.gridwidth = 1; g1.setConstraints(labelDay, gb); pane.add(labelDay); gb.gridx = 2; gb.gridy = 1; gb.gridwidth = 1; g1.setConstraints(labelMonth, gb); pane.add(labelMonth); gb.gridx = 3; gb.gridy = 1; gb.gridwidth = 1; g1.setConstraints(labelYear, gb); pane.add(labelYear); gb.ipady = 5; gb.gridx = 1; gb.gridy = 2; gb.gridwidth = 1; g1.setConstraints(textDay, gb); pane.add(textDay); gb.gridx = 2; gb.gridy = 2; gb.gridwidth = 1; g1.setConstraints(textMonth, gb); pane.add(textMonth); gb.gridx = 3; gb.gridy = 2; gb.gridwidth = 1; g1.setConstraints(textYear, gb); pane.add(textYear); gb.ipady = 0; gb.weighty = 0.5D; gb.gridx = 2; gb.gridy = 3; gb.gridwidth = 1; gb.anchor = 10; g1.setConstraints(labelReturnedDay, gb); pane.add(labelReturnedDay); gb.ipady = 0; gb.weighty = 0.5D; gb.gridx = 2; gb.gridy = 10; gb.gridwidth = 1; gb.anchor = 10; g1.setConstraints(zodiaco, gb); pane.add(zodiaco); gb.ipady = 0; gb.weighty = 0.5D; gb.gridx = 2; gb.gridy = 14; gb.gridwidth = 1; gb.anchor = 10; g1.setConstraints(cumple, gb); pane.add(cumple); buttonCompute.addActionListener(this); gb.weighty = 0.12D; gb.ipady = 10; gb.gridx = 2; gb.gridy = 4; gb.gridwidth = 1; g1.setConstraints(buttonCompute, gb); pane.add(buttonCompute); return pane; } private String dayAsString(int j) { switch(j) { case 2: // '
»Buscador
=> ¿Desea una página web gratis? Pues, haz clic aquí! <=