Skip to content

Instantly share code, notes, and snippets.

import java.awt.FlowLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JOptionPane;
public class TextFieldFrame extends JFrame
{
/**
*
* @author tuxcuiabano
*/
import java.awt.FlowLayout; // specifies how components are arranged
import javax.swing.JFrame; // provides basic window features
import javax.swing.JLabel; // displays text and images
import javax.swing.SwingConstants; // common constants used with Swing
import javax.swing.Icon; // interface used to manipulate images
import javax.swing.ImageIcon; // loads images
DROP TABLE Addresses;
CREATE TABLE Addresses
(
AddressID INT NOT NULL GENERATED ALWAYS AS IDENTITY,
FirstName VARCHAR (15) NOT NULL,
LastName VARCHAR (30) NOT NULL,
Email VARCHAR (30) NOT NULL,
PhoneNumber VARCHAR (15) NOT NULL
);
@tuxcuiabano
tuxcuiabano / ContaBancariaPos.java
Created March 16, 2020 23:24
Classe Olá mundo
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package contabancariapos;
/**
*
* @author pedroneto
@tuxcuiabano
tuxcuiabano / DisplayAuthorsPrepared .java
Created September 24, 2019 12:07
Exemplo do DisplayAuthors com PreparedStatement
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package deitel28;
/**
*
* @author tuxcuiabano
@tuxcuiabano
tuxcuiabano / DisplayAuthorsPrepared .java
Created September 24, 2019 12:07
Exemplo do DisplayAuthors com PreparedStatement
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package deitel28;
/**
*
* @author tuxcuiabano
CREATE TABLE Addresses
(
AddressID INT NOT NULL GENERATED ALWAYS AS IDENTITY,
FirstName VARCHAR (15) NOT NULL,
LastName VARCHAR (30) NOT NULL,
Email VARCHAR (30) NOT NULL,
PhoneNumber VARCHAR (15) NOT NULL
);
INSERT INTO Addresses (FirstName,LastName,Email,PhoneNumber)
VALUES ('Joao','Lima','joao@tuxcuiabano.com','555-5555'),
@tuxcuiabano
tuxcuiabano / LabelFrame.java
Created February 26, 2019 12:00
Programa que lê duas variáveis .....
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package deitel14;
import java.awt.FlowLayout;
import javax.swing.Icon;
import javax.swing.ImageIcon;
@tuxcuiabano
tuxcuiabano / JOptionPane.java
Created February 20, 2019 18:32
Programa JOptionPane feito em sala de aula
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package deitel14;
import javax.swing.JOptionPane;
/**
@tuxcuiabano
tuxcuiabano / JOptionPane.java
Created February 20, 2019 18:02
Esse código faz.........
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package deitel14;
import javax.swing.JOptionPane;
/**