Commit 80f4e532 authored by Wellington Idino's avatar Wellington Idino
Browse files

Correção da viwer

parent 7840444f
......@@ -70,7 +70,7 @@
<Group type="102" alignment="1" attributes="0">
<Component id="Jcadastrar" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" pref="105" max="-2" attributes="0"/>
<Component id="JUpdate" min="-2" pref="105" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
......@@ -119,7 +119,7 @@
<EmptySpace pref="18" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="Jcadastrar" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
<Component id="JUpdate" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
<Component id="jScrollPane2" min="-2" pref="173" max="-2" attributes="0"/>
......@@ -182,10 +182,13 @@
<Property name="text" type="java.lang.String" value="Gerenciamento de Unidade"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="jButton1">
<Component class="javax.swing.JButton" name="JUpdate">
<Properties>
<Property name="text" type="java.lang.String" value="Editar"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="JUpdateActionPerformed"/>
</Events>
</Component>
<Container class="javax.swing.JScrollPane" name="jScrollPane2">
......
......@@ -3,8 +3,6 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/Users/wellington/Documents/soft/dce/src/model/bean/Unidade.java</file>
<file>file:/Users/wellington/Documents/soft/dce/src/model/dao/UnidadeDAO.java</file>
<file>file:/Users/wellington/Documents/soft/dce/src/view/TelaUnidade.java</file>
</group>
</open-files>
......
......@@ -70,7 +70,7 @@
<Group type="102" alignment="1" attributes="0">
<Component id="Jcadastrar" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" pref="105" max="-2" attributes="0"/>
<Component id="JUpdate" min="-2" pref="105" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
......@@ -119,7 +119,7 @@
<EmptySpace pref="18" max="32767" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="Jcadastrar" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
<Component id="JUpdate" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
<Component id="jScrollPane2" min="-2" pref="173" max="-2" attributes="0"/>
......@@ -182,10 +182,13 @@
<Property name="text" type="java.lang.String" value="Gerenciamento de Unidade"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="jButton1">
<Component class="javax.swing.JButton" name="JUpdate">
<Properties>
<Property name="text" type="java.lang.String" value="Editar"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="JUpdateActionPerformed"/>
</Events>
</Component>
<Container class="javax.swing.JScrollPane" name="jScrollPane2">
......
......@@ -56,7 +56,7 @@ public class TelaUnidade extends javax.swing.JFrame {
Jcadastrar = new javax.swing.JButton();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
JUpdate = new javax.swing.JButton();
jScrollPane2 = new javax.swing.JScrollPane();
JTunidades = new javax.swing.JTable();
......@@ -90,7 +90,12 @@ public class TelaUnidade extends javax.swing.JFrame {
jLabel5.setText("Gerenciamento de Unidade");
jButton1.setText("Editar");
JUpdate.setText("Editar");
JUpdate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JUpdateActionPerformed(evt);
}
});
JTunidades.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
......@@ -136,7 +141,7 @@ public class TelaUnidade extends javax.swing.JFrame {
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addComponent(Jcadastrar)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addComponent(JUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(60, 60, 60)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
......@@ -172,7 +177,7 @@ public class TelaUnidade extends javax.swing.JFrame {
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Jcadastrar, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jButton1))
.addComponent(JUpdate))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(21, Short.MAX_VALUE))
......@@ -215,6 +220,10 @@ public class TelaUnidade extends javax.swing.JFrame {
readTable();
}//GEN-LAST:event_JcadastrarActionPerformed
private void JUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JUpdateActionPerformed
}//GEN-LAST:event_JUpdateActionPerformed
/**
* @param args the command line arguments
*/
......@@ -252,8 +261,8 @@ public class TelaUnidade extends javax.swing.JFrame {
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JTable JTunidades;
private javax.swing.JButton JUpdate;
private javax.swing.JButton Jcadastrar;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment