tn5250j/src/org/tn5250j/tools XTFRFile.java,1.19,1.20
Patrick Bielen <[email protected]> Fri, 20 Aug 2004 13:29:06 +0000
| Newsgroups | gmane.comp.java.tn5250j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2052/src/org/tn5250j/tools
Modified Files:
XTFRFile.java
Log Message:
Update for the file-transfer feature, when you now press enter on the password-field, a transfer-file-button-click is triggered, so you do not have to click the button manually anymore.
Index: XTFRFile.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools/XTFRFile.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** XTFRFile.java 26 Jul 2004 19:27:08 -0000 1.19
--- XTFRFile.java 20 Aug 2004 13:29:03 -0000 1.20
***************
*** 73,76 ****
--- 73,77 ----
JTextArea queryStatement;
JButton customize;
+ JButton xtfrButton;
JRadioButton intDesc;
***************
*** 614,617 ****
--- 615,623 ----
password = new JPasswordField();
password.setColumns(15);
+ password.addKeyListener(new java.awt.event.KeyAdapter() {
+ public void keyPressed(java.awt.event.KeyEvent evt) {
+ txtONKeyPressed(evt);
+ }
+ });
gbc = new GridBagConstraints();
gbc.gridx = 1; gbc.gridy = 3;
***************
*** 796,800 ****
// options panel
JPanel op = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));
! JButton xtfrButton = new JButton(LangTool.getString("xtfr.labelXTFR"));
xtfrButton.addActionListener(this);
xtfrButton.setActionCommand("XTFR");
--- 802,806 ----
// options panel
JPanel op = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));
! xtfrButton = new JButton(LangTool.getString("xtfr.labelXTFR"));
xtfrButton.addActionListener(this);
xtfrButton.setActionCommand("XTFR");
***************
*** 857,862 ****
}
!
! private void initXTFRFields(Properties props) {
if (props == null) {
--- 863,874 ----
}
!
! private void txtONKeyPressed(java.awt.event.KeyEvent evt) {
! if (evt.getKeyCode() == evt.VK_ENTER) {
! xtfrButton.doClick();
! }
! }
!
! private void initXTFRFields(Properties props) {
if (props == null) {
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285