Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv22342/src/org/tn5250j/tools
Modified Files:
XTFRFile.java
Log Message:
Fix and update for FileTransferDialog.
Index: XTFRFile.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/tools/XTFRFile.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** XTFRFile.java 18 Dec 2003 13:10:19 -0000 1.13
--- XTFRFile.java 22 Dec 2003 14:19:55 -0000 1.14
***************
*** 97,100 ****
--- 97,102 ----
JProgressBar progressBar;
JTextArea taskOutput;
+ JLabel fieldsLabel;
+ JLabel textDescLabel;
JLabel label;
JLabel note;
***************
*** 596,600 ****
as400p.add(queryWizard, gbc);
// Field Selection panel
! JLabel fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields"));
gbc = new GridBagConstraints();
gbc.gridx = 0; gbc.gridy = 5;
--- 598,602 ----
as400p.add(queryWizard, gbc);
// Field Selection panel
! fieldsLabel = new JLabel(LangTool.getString("xtfr.labelFields"));
gbc = new GridBagConstraints();
gbc.gridx = 0; gbc.gridy = 5;
***************
*** 620,624 ****
fieldGroup.add(selectedFields);
// Field Text Description panel
! JLabel textDescLabel =
new JLabel(LangTool.getString("xtfr.labelTxtDesc"));
gbc = new GridBagConstraints();
--- 622,626 ----
fieldGroup.add(selectedFields);
// Field Text Description panel
! textDescLabel =
new JLabel(LangTool.getString("xtfr.labelTxtDesc"));
gbc = new GridBagConstraints();
***************
*** 787,801 ****
as400QueryP.setLayout(new BorderLayout());
! queryStatement = new JTextArea(5, 40);
JScrollPane scrollPane = new JScrollPane(queryStatement);
queryStatement.setLineWrap(true);
as400QueryP.add(scrollPane, BorderLayout.CENTER);
- as400FieldP = new JPanel();
-
- AlignLayout as400fLayout = new AlignLayout();
- as400FieldP.setLayout(as400fLayout);
-
-
// now show the world what we can do
show();
--- 789,797 ----
as400QueryP.setLayout(new BorderLayout());
! queryStatement = new JTextArea(2, 40);
JScrollPane scrollPane = new JScrollPane(queryStatement);
queryStatement.setLineWrap(true);
as400QueryP.add(scrollPane, BorderLayout.CENTER);
// now show the world what we can do
show();
***************
*** 911,920 ****
if (useQuery.isSelected()) {
queryWizard.setEnabled(true);
! as400p.remove(as400FieldP);
! as400p.add(as400QueryP, BorderLayout.SOUTH);
} else {
queryWizard.setEnabled(false);
as400p.remove(as400QueryP);
! as400p.add(as400FieldP, BorderLayout.SOUTH);
}
this.validate();
--- 907,960 ----
if (useQuery.isSelected()) {
queryWizard.setEnabled(true);
! as400p.remove(fieldsLabel);
! as400p.remove(allFields);
! as400p.remove(selectedFields);
! as400p.remove(textDescLabel);
! as400p.remove(txtDesc);
! as400p.remove(intDesc);
! gbc = new GridBagConstraints();
! gbc.gridx = 0; gbc.gridy = 5;
! gbc.gridheight = 2;
! gbc.gridwidth = 3;
! gbc.fill = GridBagConstraints.BOTH;
! gbc.anchor = GridBagConstraints.WEST;
! gbc.insets = new Insets(5, 10, 10, 10);
! as400p.add(as400QueryP, gbc);
} else {
queryWizard.setEnabled(false);
as400p.remove(as400QueryP);
! gbc = new GridBagConstraints();
! gbc.gridx = 0; gbc.gridy = 5;
! gbc.anchor = GridBagConstraints.WEST;
! gbc.insets = new Insets(5, 10, 5, 5);
! as400p.add(fieldsLabel, gbc);
! allFields.setSelected(true);
! gbc = new GridBagConstraints();
! gbc.gridx = 1; gbc.gridy = 5;
! gbc.anchor = GridBagConstraints.CENTER;
! gbc.insets = new Insets(0, 5, 0, 5);
! as400p.add(allFields, gbc);
! gbc = new GridBagConstraints();
! gbc.gridx = 2; gbc.gridy = 5;
! gbc.anchor = GridBagConstraints.CENTER;
! gbc.insets = new Insets(0, 5, 0, 10);
! as400p.add(selectedFields, gbc);
! // Field Text Description panel
! gbc = new GridBagConstraints();
! gbc.gridx = 0; gbc.gridy = 6;
! gbc.anchor = GridBagConstraints.WEST;
! gbc.insets = new Insets(5, 10, 5, 5);
! as400p.add(textDescLabel, gbc);
! txtDesc.setSelected(true);
! gbc = new GridBagConstraints();
! gbc.gridx = 1; gbc.gridy = 6;
! gbc.anchor = GridBagConstraints.CENTER;
! gbc.insets = new Insets(0, 5, 5, 5);
! as400p.add(txtDesc, gbc);
! gbc = new GridBagConstraints();
! gbc.gridx = 2; gbc.gridy = 6;
! gbc.anchor = GridBagConstraints.CENTER;
! gbc.insets = new Insets(0, 5, 5, 10);
! as400p.add(intDesc, gbc);
}
this.validate();
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.