-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialogos de metodos cuadrados medios, Congruencial lineal y confruenc…
…ia Multiplicativa. no se muestran aun los dialogos al precionar el boton respectivo
- Loading branch information
1 parent
0dee1e1
commit fe6b283
Showing
7 changed files
with
260 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ public enum ActionsE { | |
CONGRUENCIA_MULTIPLICATIVA, | ||
DISTRO_UNIFORME, | ||
DISTRO_NORMAL_EST, | ||
ABOUT | ||
ABOUT, | ||
EXIT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package controller; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.ActionListener; | ||
|
||
import views.PseudoRandomMainWindow; | ||
|
||
public class Control implements ActionListener{ | ||
|
||
private PseudoRandomMainWindow mainWindows; | ||
|
||
public Control() { | ||
|
||
mainWindows = new PseudoRandomMainWindow(this); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent e) { | ||
|
||
switch (ActionsE.valueOf(e.getActionCommand())) { | ||
case EXIT: | ||
System.exit(0); | ||
break; | ||
case CUADRADOS_MEDIOS: | ||
mainWindows.showDialogCuadradosMedios(); | ||
System.out.println("Cuadrados medios"); | ||
break; | ||
case ABOUT: | ||
break; | ||
case CONGRUENCIA_LINEAL: | ||
mainWindows.showDialogCongruenciaLineal(); | ||
break; | ||
case CONGRUENCIA_MULTIPLICATIVA: | ||
mainWindows.showDialogCongruenciaMiltiplicativa(); | ||
break; | ||
case DISTRO_NORMAL_EST: | ||
break; | ||
case DISTRO_UNIFORME: | ||
break; | ||
default: | ||
break; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
package views; | ||
|
||
import java.awt.Color; | ||
import java.awt.Component; | ||
|
||
import javax.swing.BorderFactory; | ||
import javax.swing.BoxLayout; | ||
import javax.swing.JButton; | ||
import javax.swing.JDialog; | ||
import javax.swing.JSpinner; | ||
|
||
public class JDCongruenciaLineal extends JDialog{ | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private JSpinner spSeed; | ||
private JSpinner spMin; | ||
private JSpinner spMax; | ||
private JSpinner spNumToGenerate; | ||
private JSpinner spC; | ||
private JSpinner spA; | ||
private JSpinner spG; | ||
private JButton button; | ||
|
||
public JDCongruenciaLineal(PseudoRandomMainWindow pseudoRandomMainWindow) { | ||
|
||
setModal(true); | ||
setSize(500, 500); | ||
setTitle("datos para cuadrados medios"); | ||
setLocationRelativeTo(pseudoRandomMainWindow); | ||
getContentPane().setBackground(Color.WHITE); | ||
setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS)); | ||
|
||
spSeed = new JSpinner(); | ||
spSeed.setBorder(BorderFactory.createTitledBorder("ingrese el valor de la semilla")); | ||
add(spSeed); | ||
|
||
spMin = new JSpinner(); | ||
spMin.setBorder(BorderFactory.createTitledBorder("ingrese el valor minimo")); | ||
add(spMin); | ||
|
||
spMax = new JSpinner(); | ||
spMax.setBorder(BorderFactory.createTitledBorder("ingrese el valor maximo")); | ||
add(spMax); | ||
|
||
spNumToGenerate = new JSpinner(); | ||
spNumToGenerate.setBorder(BorderFactory.createTitledBorder("ingrese el numero de numeros a generar")); | ||
add(spNumToGenerate ); | ||
|
||
spC = new JSpinner(); | ||
spC.setBorder(BorderFactory.createTitledBorder("ingrese el valor de C")); | ||
add(spC ); | ||
|
||
spA = new JSpinner(); | ||
spA.setBorder(BorderFactory.createTitledBorder("ingrese el valor de A")); | ||
add(spA ); | ||
|
||
spG = new JSpinner(); | ||
spG.setBorder(BorderFactory.createTitledBorder("ingrese el valor de G")); | ||
add(spG ); | ||
|
||
|
||
button = new JButton("Calcular"); | ||
button.setAlignmentX(Component.CENTER_ALIGNMENT); | ||
button.setBackground(Color.GREEN); | ||
add(button); | ||
|
||
setVisible(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package views; | ||
|
||
import java.awt.Color; | ||
import java.awt.Component; | ||
|
||
import javax.swing.BorderFactory; | ||
import javax.swing.BoxLayout; | ||
import javax.swing.JButton; | ||
import javax.swing.JDialog; | ||
import javax.swing.JSpinner; | ||
|
||
public class JDCongruenciaMultiplicativa extends JDialog{ | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private JSpinner spSeed; | ||
private JSpinner spMin; | ||
private JSpinner spMax; | ||
private JSpinner spNumToGenerate; | ||
private JSpinner spT; | ||
private JSpinner spG; | ||
private JButton button; | ||
|
||
public JDCongruenciaMultiplicativa(PseudoRandomMainWindow pseudoRandomMainWindow) { | ||
|
||
setModal(true); | ||
setSize(500, 500); | ||
setTitle("datos para cuadrados medios"); | ||
setLocationRelativeTo(pseudoRandomMainWindow); | ||
getContentPane().setBackground(Color.WHITE); | ||
setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS)); | ||
|
||
spSeed = new JSpinner(); | ||
spSeed.setBorder(BorderFactory.createTitledBorder("ingrese el valor de la semilla")); | ||
add(spSeed); | ||
|
||
spMin = new JSpinner(); | ||
spMin.setBorder(BorderFactory.createTitledBorder("ingrese el valor minimo")); | ||
add(spMin); | ||
|
||
spMax = new JSpinner(); | ||
spMax.setBorder(BorderFactory.createTitledBorder("ingrese el valor maximo")); | ||
add(spMax); | ||
|
||
spNumToGenerate = new JSpinner(); | ||
spNumToGenerate.setBorder(BorderFactory.createTitledBorder("ingrese el numero de numeros a generar")); | ||
add(spNumToGenerate ); | ||
|
||
spT = new JSpinner(); | ||
spT.setBorder(BorderFactory.createTitledBorder("ingrese el valor de T")); | ||
add(spT ); | ||
|
||
|
||
spG = new JSpinner(); | ||
spG.setBorder(BorderFactory.createTitledBorder("ingrese el valor de G")); | ||
add(spG ); | ||
|
||
|
||
button = new JButton("Calcular"); | ||
button.setAlignmentX(Component.CENTER_ALIGNMENT); | ||
button.setBackground(Color.GREEN); | ||
add(button); | ||
|
||
setVisible(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package views; | ||
|
||
import java.awt.Color; | ||
import java.awt.Component; | ||
|
||
|
||
import javax.swing.BorderFactory; | ||
import javax.swing.BoxLayout; | ||
import javax.swing.JButton; | ||
import javax.swing.JDialog; | ||
import javax.swing.JSpinner; | ||
|
||
|
||
public class JDCuadradosMedios extends JDialog{ | ||
|
||
private static final long serialVersionUID = 1L; | ||
private JSpinner spSeed; | ||
private JSpinner spMin; | ||
private JSpinner spMax; | ||
private JSpinner spNumToGenerate; | ||
private JButton button; | ||
|
||
|
||
public JDCuadradosMedios(PseudoRandomMainWindow pseudoRandomMainWindow) { | ||
|
||
setModal(true); | ||
setSize(500, 500); | ||
setTitle("datos para cuadrados medios"); | ||
setLocationRelativeTo(pseudoRandomMainWindow); | ||
getContentPane().setBackground(Color.WHITE); | ||
setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS)); | ||
|
||
spSeed = new JSpinner(); | ||
spSeed.setBorder(BorderFactory.createTitledBorder("ingrese el valor de la semilla")); | ||
add(spSeed); | ||
|
||
spMin = new JSpinner(); | ||
spMin.setBorder(BorderFactory.createTitledBorder("ingrese el valor minimo")); | ||
add(spMin); | ||
|
||
spMax = new JSpinner(); | ||
spMax.setBorder(BorderFactory.createTitledBorder("ingrese el valor maximo")); | ||
add(spMax); | ||
|
||
spNumToGenerate = new JSpinner(); | ||
spNumToGenerate.setBorder(BorderFactory.createTitledBorder("ingrese el numero de numeros a generar")); | ||
add(spNumToGenerate ); | ||
|
||
button = new JButton("Calcular"); | ||
button.setAlignmentX(Component.CENTER_ALIGNMENT); | ||
button.setBackground(Color.GREEN); | ||
add(button); | ||
|
||
setVisible(true); | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package views; | ||
|
||
public class JDNormalEstandar { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters