Posto de gasolina
import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.ListIterator;
/** * * @author m */ public class posto extends javax.swing.JFrame { private likedlist Lista_Combustivel;
/** * Creates new form posto */ public posto() { initComponents(); }
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // private void initComponents() { bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
LstCombustivel = new likedlist(); buttonVoltar = new javax.swing.JButton(); TxtTítulo = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); Quantidade = new javax.swing.JTextField(); TxtLaberQuantidade = new javax.swing.JLabel(); TxtLabelValorTotal = new javax.swing.JLabel(); Valor = new javax.swing.JTextField(); ButtonCalcular = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
buttonVoltar.setText("Voltar"); buttonVoltar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { buttonVoltarActionPerformed(evt); } });
TxtTítulo.setText("Venda de Combustíveis: ");
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Gasolina = R$ 3.00 (Litro)", "Alcool = R$ 2.50 (Litro)", "Diesel