This file contains hidden or 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
import java.awt.BorderLayout; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import javax.swing.JFrame; | |
import javax.swing.JScrollPane; | |
import javax.swing.JTable; |
This file contains hidden or 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
Object rowData[][] = {{"Row1-Column1", "Row1-Column2", "Row1-Column3"}}; | |
Object columnNames[] = {"Nombre1", "Nombre2", "Apellido1", "Apellido2", "Fecha Nac.", "Entidad", "Sexo", "Curp"}; | |
DefaultTableModel mTableModel = new DefaultTableModel(rowData, columnNames); //model of table | |
tabla.setModel(mTableModel); // adding model | |
mTableModel.addRow(rows); | |
TableColumn columnSexo=tabla.getColumn("Sexo");//getting columns of table | |
TableColumn columnEntidad=tabla.getColumn("Entidad"); | |
TableColumn columnFecha=tabla.getColumn("Fecha Nac."); | |
TableColumn columnCurp=tabla.getColumn("Curp"); | |
TableColumn columnNombre1=tabla.getColumn("Nombre1"); |
This file contains hidden or 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
this.setIconImage (new ImageIcon(getClass().getResource("/Icon/CD.png")).getImage ()); |
This file contains hidden or 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
the method has an (ActionEvent event) | |
Node node = (Node) event.getSource(); | |
Stage stage = (Stage) node.getScene().getWindow(); | |
Parent root = FXMLLoader.load(getClass().getResource("/Interfaz_Admin/Admin.fxml")); | |
Scene scene = new Scene(root); | |
stage.setScene(scene); | |
stage.centerOnScreen(); |
This file contains hidden or 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
import twitter4j.DirectMessage; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterException; | |
import twitter4j.TwitterFactory; | |
import twitter4j.auth.OAuthAuthorization; | |
import twitter4j.conf.ConfigurationBuilder; | |
public class UpdateStatus { | |
private static final String ACCESS_TOKEN = "write your Access token"; |
This file contains hidden or 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
package test; | |
import java.awt.Toolkit; | |
import java.awt.datatransfer.Clipboard; | |
import java.awt.datatransfer.StringSelection; | |
public class CopyStringToClipboard { | |
public static void main(String[] args) { |
This file contains hidden or 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
<p><a href="MY WEBSITE LINK" target="_blank"><img src="IMAGE LINK" style='width:100%;' border="0" alt="Null"></a></p> |
This file contains hidden or 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
public void transponer(int [][] arreglo) { | |
int[][] b = new int[arreglo.length][arreglo[0].length]; // creo un vector bidimensional con las medidas del otro vector | |
int cols = 2; // el numero de columnas totales son 3 pero se cuentan como 0,1,2 | |
int filasArregloAux = 0; //filas del vector auxiliar en donde se pondrá la matriz transpuesta | |
int filasArregloBase = 0; // con esta variable se recorre las filas del arreglo | |
int aux = -1; // con esta variable se recorre las filas del arreglo auxiliar en la que transpongo la matriz | |
for (int i = 0; i <= cols; cols--) { //basicamente un loop hasta que las columnas se terminen | |
for (int j = 0; j <= 6; j++) { // un loop que recorre todas las filas | |
aux++; // este auxiliar me permite controlar la repartición de las cartas para tres columnas (0,1,2) |
This file contains hidden or 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
import javafx.animation.*; | |
import javafx.application.Application; | |
import javafx.event.*; | |
import javafx.geometry.Insets; | |
import javafx.geometry.Pos; | |
import javafx.scene.Scene; | |
import javafx.scene.control.*; | |
import javafx.scene.layout.VBox; | |
import javafx.stage.Stage; | |
import javafx.util.Duration; |
This file contains hidden or 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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
OlderNewer