text stringlengths 3 1.18M |
|---|
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distrib... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
* SimpleMidiPlayer.java
*
* This file is part of jsresources.org
*/
/*
* Copyright (c) 1999 - 2001 by Matthias Pfisterer
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package game;
/*
Copyright (C) 2012 Johan Ceuppens
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed... |
package engine;
public class Nothing {
}
|
package engine;
public class Matrix {
private double[] v ;
private int nbL,nbC ;
public Matrix(int size) {
this(size,size) ;
}
public Matrix(int sizeL, int sizeC) {
this.nbL=sizeL ;
this.nbC=sizeC ;
this.v = new double[nbL*nbC] ;
}
public double get(int i,int j) {
return v[nbC*(i-1)+j-1] ;
}
... |
import Controlador.ControladorHome;
public class Principal {
public static void main(String[] args) {
new ControladorHome();
}
}
|
package Controlador;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
... |
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import bean.Conexion;
import Vista.formRegistrarCompra;
i... |
package Controlador;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;... |
package Controlador;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax... |
package Controlador;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import bean.Conexion;
import Vista.formRegisCliente;
import Modelo.Cliente;
public class ControladorRegistrarCliente implements Ac... |
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import bean.Conexion;
import Vista.formRegistCategoria;
public class ControladorRegistrarCategoria implements ActionListener{
private formRegistCategoria Categoria... |
package Controlador;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import bean.Conexion;
... |
package Controlador;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;... |
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import Vista.frmHome;
public class ControladorHome implements ActionListener {
private frmHome home;
public ControladorHome() {
super();
this.home = new frmHome();
this.home.setLocationRelativeTo(null);
this.hom... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.KeyListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTex... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
/**
* This code was ... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.WindowConst... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
/**
* This code was edited or generated using... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.sw... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.WindowConst... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.WindowC... |
package Modelo;
public class Detalleorden {
private long orden;
private String producto;
private String estatus;
private int cantidad;
public Detalleorden(long orden, String producto, String estatus, int cantidad) {
super();
this.orden = orden;
this.producto = producto;
this.estatus = estatus;
this.cant... |
package Modelo;
public class Orden {
private long numero;
private Cliente cliente;
private String estatus;
public Orden(long numero, Cliente cliente, String estatus) {
super();
this.numero = numero;
this.cliente = cliente;
this.estatus = estatus;
}
public Orden() {
super();
}
public long getNumero() ... |
package Modelo;
public class Datos {
private String codigo;
private String nombre;
private String estatus;
public Datos(String codigo, String nombre, String estatus) {
super();
this.codigo = codigo;
this.nombre = nombre;
this.estatus = estatus;
}
public Datos() {
super();
}
public String getCodigo() ... |
package Modelo;
public class Producto {
private String codigo;
private String nombre;
private float precio;
private String Categoria;
private String estatus;
public Producto(String codigo, String nombre, float precio,
String categoria, String estatus) {
super();
this.codigo = codigo;
this.nombre = nombr... |
package Modelo;
public class Cliente{
private String cedula;
private String nombre;
private String telefono;
private String estatus;
private String direccion;
public Cliente(String cedula, String nombre, String telefono, String estatus, String direccion) {
super();
this.cedula = cedula;
this.nombre = nom... |
package Modelo;
public class Ingrediente {
private String codigo;
private String nombre;
private float stock;
private String estatus;
public Ingrediente() {
super();
}
public Ingrediente(String codigo, String nombre, float stock, String estatus) {
super();
this.codigo = codigo;
this.nombre = nombre;
t... |
package Modelo;
public class Categoria extends Datos{
public Categoria (String codigo, String nombre, String estatus){
super(codigo,nombre,estatus);
}
public Categoria (){
super();
}
}
|
import Controlador.ControladorHome;
public class Principal {
public static void main(String[] args) {
new ControladorHome();
}
}
|
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import Vista.formListadVentas;
import Vista.frmHome;
public class ControladorVentaProductos implements ActionListener{
private formListadVentas ventas;
public ControladorVentaProductos() {
super();
this.ventas = ne... |
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import bean.Conexion;
import Vista.formRegistrarCompra;
i... |
package Controlador;
public class ControladorIngredientesUsados {
}
|
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import bean.Conexion;
import Vista.formRegisOrden;
public class ControladorRegistrarOrden implements ActionListener{
private formRegisOrden orden;
public Control... |
package Controlador;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import bean.Conexion;
import Vista.formRegisCliente;
import Modelo.Cliente;
public class ControladorRegistrarCliente implements Ac... |
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import bean.Conexion;
import Vista.formRegistCategoria;
public class ControladorRegistrarCategoria implements ActionListener{
private formRegistCategoria Categoria... |
package Controlador;
public class ControladorIngredientesDisponibles {
}
|
package Controlador;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;... |
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import Vista.frmHome;
public class ControladorHome implements ActionListener {
private frmHome home;
public ControladorHome() {
super();
this.home = new frmHome();
this.home.setLocationRelativeTo(null);
this.hom... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.KeyListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTex... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;
/**
* This code was ... |
package Vista;
import java.awt.BorderLayout;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabl... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.WindowConstants;
import javax.swing.table.D... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;
... |
package Vista;
import java.awt.BorderLayout;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.ta... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.WindowC... |
package Modelo;
public class Orden {
private int numeroorden;
public Orden() {
super();
}
public Orden(int numeroorden) {
super();
this.numeroorden = numeroorden;
}
public int getNumeroorden() {
return numeroorden;
}
public void setNumeroorden(int numeroorden) {
this.numeroorden = numeroorden;
... |
package Modelo;
import java.util.Vector;
public class Establecimiento extends Persona {
private Vector<Categoria> vectorcategoria;
private Vector<Cliente> vectorcliente;
private Vector<Insumos> vectorinsumos;
private Vector<Orden> vectorordenes;
private String rif;
public Establecimiento() {
super();
}
... |
package Modelo;
public class Datos {
private String nombre;
private String codigo;
public Datos() {
super();
}
public Datos(String nombre, String codigo) {
super();
this.nombre = nombre;
this.codigo = codigo;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre... |
package Modelo;
import java.util.Vector;
public class Producto extends Datos {
private double precio;
private Vector<Ingrediente> vectoringrediente;
public Producto() {
super();
}
public Producto(String nombre, String codigo, double precio) {
super(nombre, codigo);
this.precio=precio;
}
public Produ... |
package Modelo;
public class Cliente extends Persona {
private String cedula;
public Cliente() {
super();
}
public Cliente(String cedula, String nombre, String direccion, String telefono, String tipo) {
super(nombre, direccion, telefono, tipo);
this.cedula=cedula;
}
public Cliente(String cedula) {
s... |
package Modelo;
public class Insumos extends Datos {
private int stock;
public Insumos() {
super();
}
public Insumos(String nombre, String codigo) {
super(nombre, codigo);
}
public Insumos(int stock) {
super();
this.stock = stock;
}
public int getStock() {
return stock;
}
public void setStock... |
package Modelo;
public class Persona {
private String nombre;
private String direccion;
private String telefono;
private String tipo;
public Persona() {
super();
}
public Persona(String nombre, String direccion, String telefono, String tipo) {
super();
this.nombre = nombre;
this.direccion = direcci... |
package Modelo;
public class Ingrediente {
private int cantidad;
private String codigo;
public Ingrediente() {
super();
}
public Ingrediente(int cantidad, String codigo) {
super();
this.cantidad = cantidad;
this.codigo = codigo;
}
public int getCantidad() {
return cantidad;
}
public void setCa... |
package Modelo;
public class DetOrden {
private int numeroorden;
private String codigoorden;
public DetOrden() {
super();
}
public DetOrden(int numeroorden, String codigoorden) {
super();
this.numeroorden = numeroorden;
this.codigoorden = codigoorden;
}
public int getNumeroorden() {
return numero... |
package Modelo;
import java.util.Vector;
public class Categoria extends Datos {
private Vector<Producto> vectorproducto;
public Categoria() {
super();
}
public Categoria(String nombre, String codigo) {
super(nombre, codigo);
}
public Categoria(Vector<Producto> vectorproducto) {
super();
this.vectorp... |
import Controlador.ControladorVistaPrincipal;
public class Principal {
public static void main(String[] args) {
new ControladorVistaPrincipal();
}
}
/*
* INTEGRANTES:
* ANGELICA VIRGUEZ C.I 19424345
* DANIBEL PINEDA C.I 18870064
* KARINA GERDEZ C.I 18102946
* */
|
package bean;
import java.io.Serializable;
import java.sql.*;
import java.util.ResourceBundle;
public class Conexion implements Serializable {
// La descripcion del driver de la BD
private static String driver;
// La direccion URL de la BD
private static String url;
// El nomb... |
package Controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.WindowConstants;
import Vista.VistaPrincipal;
import javax.swing.Win... |
package Controlador;
import Vista.Registrar;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import Modelo.Tiempo;
import code.Jugador;
import Modelo.JugadorDAO;
public class ControladorRegistrarJugador {
private Registrar registrar;
private Tiempo tiempo;
public Controlado... |
package Controlador;
import java.util.List;
import code.Jugador;
import Modelo.JugadorDAO;
import Vista.VistaConsultas;
import Vista.VentanaJugadorModeloTabla;
public class ControladorVistaConsulta {
private VistaConsultas vistaConsultas;
public ControladorVistaConsulta() {
super();
this.vista... |
package Controlador;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import Modelo.CodeBreaker;
import Modelo.CodeMaster;
import Modelo.Sistema;
import Vista.VistaTablero;
import Vista.VistaPrincipal;
import Vista.VistaConsultas... |
package Modelo;
import java.util.Arrays;
public class CodeBreaker {
private int respuesta[][];
int fila,col;
public CodeBreaker(int intentos, int colores) {
respuesta = new int[intentos][colores];
col = 0;
fila = intentos-1;
for(int i = 0; i < intentos; i++)
Arrays.fill(respuesta[i], -1);... |
package Modelo;
import java.awt.Color;
import code.Jugador;
public class Sistema {
private Color colores[] = {new java.awt.Color(55,198,98),new java.awt.Color(0,128,255),
new java.awt.Color(210,194,4),new java.awt.Color(128,0,255),
new java.awt.Color(255,128,0),new java.awt.Color(128,64,0),
new jav... |
package Modelo;
public class Tiempo implements Comparable<Tiempo>{
private int minutos;
private int segundos;
private int horas;
public Tiempo() { // Inicializa todos los valores en 0
this(0,0,0);
}
public Tiempo(String tiempo){ // Constructor que maneja una caden... |
package Modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import code.Jugador;
import bean.Conexion;
/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Ji... |
package Modelo;
import bean.Conexion;
public class ConexionDAO {
public ConexionDAO() {
super ();
Conexion.establecerPropiedadesConexion("bdconfig", "jdbc.driver", "jdbc.url", "jdbc.nombrebd", "jdbc.usuario", "jdbc.password");
}
} |
package Modelo;
import java.util.Arrays;
public class CodeMaster {
private int codigos[];
private static int cantColores;
public CodeMaster(int i) {
cantColores = i;
codigos= new int[cantColores];
generarCodigo();
}
public void generarCodigo(){
Arrays.fill(codigos, -1);
System.out.prin... |
package code;
import Modelo.Tiempo;
public class Jugador implements Comparable<Jugador>, java.io.Serializable {
private String nombre;
private Tiempo tiempo;
private int nroIntentos;
public Jugador(String nombre,Tiempo tiempo,int nroIntentos){
this.nombre = nombre;
}
public Ju... |
package Vista;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import code.Jugador;
public class VentanaJugadorModeloTabla extends AbstractTableModel{
private static String[] titulos = {"Cedula", "Nombre", "Apellido", "Edad"};
private List<Jugador>... |
package Vista;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.WindowConstants;
import javax.swing.table.AbstractTableModel;
/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free... |
package Vista;
import java.awt.BorderLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.WindowC... |
package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javabean.JPanelImagen;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JColorChooser;
import javax.swing.JLabel;
import java... |
package com.tgra;
//Object classes
public class Cell
{
public boolean westwall;
public boolean southwall;
public Cell()
{
westwall = true;
southwall = true;
}
}
|
package com.tgra;
import java.nio.FloatBuffer;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL11;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.utils.BufferUtils;
public class Sphere
{
int stacks;
int slices;
FloatBuffer vertexBuffer;
FloatBuffer normalBuffer;
... |
package com.tgra;
import com.tgra.Point3D;
public class Vector3D
{
public float x;
public float y;
public float z;
public Vector3D(float xx, float yy, float zz)
{
x = xx;
y = yy;
z = zz;
}
public Vector3D(Vector3D v) {
x = v.x;
y = v.y;
z = v.z;
}
public void set(floa... |
package com.tgra.gameserver;
import java.util.ArrayList;
import java.util.List;
import javax.sql.rowset.serial.SerialJavaObject;
import com.tgra.testclient.PlayerNetworkObject;
public class ServerData
{
private static ServerData singleton = new ServerData();
//private static List<Double> randList;... |
/*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* no... |
/*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* no... |
/*
* Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* no... |
package com.tgra;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.GL11;
import com.badlogic.gdx.graphics.Texture;
public class Maze
{
//Player camera
public Camera playerCamer... |
package com.tgra;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.GL11;
import com.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.