tn5250j/src/org/tn5250j Configure.java,1.13,1.14 Connect.java,1.29,1.30
"Kenneth J. Pouncey" <[email protected]> Sat, 18 Jun 2005 10:20:21 +0000
| Newsgroups | gmane.comp.java.tn5250j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8019/src/org/tn5250j
Modified Files:
Configure.java Connect.java
Log Message:
Make the connection screen work a little more smoothly together
Index: Configure.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Configure.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Configure.java 10 Jun 2005 08:04:07 -0000 1.13
--- Configure.java 18 Jun 2005 10:20:19 -0000 1.14
***************
*** 66,70 ****
static Object[] options;
! public static void doEntry(Frame parent, String propKey, Properties props2) {
props = props2;
--- 66,70 ----
static Object[] options;
! public static String doEntry(Frame parent, String propKey, Properties props2) {
props = props2;
***************
*** 457,460 ****
--- 457,461 ----
dialog.setVisible(true);
+ return systemName.getText();
}
Index: Connect.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Connect.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** Connect.java 18 Jun 2005 09:55:31 -0000 1.29
--- Connect.java 18 Jun 2005 10:20:19 -0000 1.30
***************
*** 872,876 ****
if (e.getActionCommand().equals("ADD")) {
! Configure.doEntry((JFrame) getParent(), null, props);
ctm.addSession();
// I we have only one row then select the first one so that
--- 872,876 ----
if (e.getActionCommand().equals("ADD")) {
! String systemName = Configure.doEntry((JFrame) getParent(), null, props);
ctm.addSession();
// I we have only one row then select the first one so that
***************
*** 881,884 ****
--- 881,896 ----
0);
}
+ else {
+ // Here we will select the entry that we just added.
+ int selInterval = 0;
+ for (int x = 0; x < sessions.getRowCount(); x++) {
+ if (((String) ctm.getValueAt(x, 0)).equals(systemName))
+ selInterval = x;
+ }
+ sessions.getSelectionModel().setSelectionInterval(
+ selInterval,
+ selInterval);
+ }
+
sessions.requestFocus();
***************
*** 897,900 ****
--- 909,913 ----
props);
ctm.chgSession(selectedRow);
+ sessions.requestFocus();
}
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click