atom feed2 messages in net.java.dev.freemrp.cvsCVS update: /freemrp/gui/producao/Pro...
FromSent OnAttachments
jean...@dev.java.netDec 12, 2007 5:25 am 
raf_...@dev.java.netDec 17, 2007 7:38 am 
Subject:CVS update: /freemrp/gui/producao/Producao1.java
From:raf_...@dev.java.net (raf_@dev.java.net)
Date:Dec 17, 2007 7:38:57 am
List:net.java.dev.freemrp.cvs

User: raf_bueno Date: 2007-12-17 15:38:57+0000 Modified: freemrp/gui/producao/Producao1.java

Log:

File Changes:

Directory: /freemrp/gui/producao/ =================================

File [changed]: Producao1.java Url:
https://freemrp.dev.java.net/source/browse/freemrp/gui/producao/Producao1.java?r1=1.33&r2=1.34 Delta lines: +21 -11

--------------------- --- Producao1.java 2007-12-17 15:35:16+0000 1.33 +++ Producao1.java 2007-12-17 15:38:55+0000 1.34 @@ -10,16 +10,19 @@ import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; +import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Vector;

+import javax.swing.AbstractAction; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.DefaultCellEditor; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComboBox; +import javax.swing.JComponent; import javax.swing.JInternalFrame; import javax.swing.JLabel; import javax.swing.JMenuItem; @@ -57,7 +60,7 @@ private JPanel jPanel4 = null; //JButton private JButton jButton = null; - private JButton jButton1 = null; + private JButton bCancelar = null; //JLabel private JLabel jLabel = null; private JLabel jLabel1 = null; @@ -116,7 +119,7 @@ private int quantidade = 0; private int cadastraNaoConforme = 1; public static String titulo; - public static Mensagens mensagem; + public static Mensagens mensagem; // @jve:decl-index=0:

/** * Metodo Construtor @@ -486,7 +489,7 @@ jPanel4 = new JPanel(); jPanel4.setLayout(new GridBagLayout()); jPanel4.add(getJButton(), gridBagConstraints19); - jPanel4.add(getJButton1(), gridBagConstraints18); + jPanel4.add(getBCancelar(), gridBagConstraints18); } return jPanel4; } @@ -757,22 +760,29 @@

/** - * Este metodo inicializa o jButton1 + * Este metodo inicializa o bCancelar * * @return javax.swing.JButton */ - private JButton getJButton1() { - if (jButton1 == null) { - jButton1 = new JButton(); - jButton1.setText("Cancelar"); - jButton1.setIcon(new
ImageIcon(getClass().getResource("/imagens/arrow_undo.png"))); - jButton1.addActionListener(new java.awt.event.ActionListener() { + private JButton getBCancelar() { + if (bCancelar == null) { + bCancelar = new JButton(); + bCancelar.setText("Cancelar"); + bCancelar.setIcon(new
ImageIcon(getClass().getResource("/imagens/arrow_undo.png"))); +
bCancelar.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("ESCAPE"),
"actionName"); + bCancelar.getActionMap().put("actionName", new AbstractAction("actionName")
{ + private static final long serialVersionUID = 1L; + public void actionPerformed(ActionEvent evt) { + fechar(); + } + }); + bCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { fechar(); } }); } - return jButton1; + return bCancelar; }

/**