tn5250j/src/org/tn5250j Connect.java,1.28,1.29
"Kenneth J. Pouncey" <[email protected]> Sat, 18 Jun 2005 09:55:34 +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-serv28485/src/org/tn5250j
Modified Files:
Connect.java
Log Message:
just some more little touchups
Index: Connect.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Connect.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** Connect.java 18 Jun 2005 09:23:14 -0000 1.28
--- Connect.java 18 Jun 2005 09:55:31 -0000 1.29
***************
*** 242,246 ****
selInterval);
}
!
// Oh man what a pain in the ass. Had to add a window listener to request
// focus of the sessions list.
--- 242,248 ----
selInterval);
}
! else {
! connectButton.setEnabled(false);
! }
// Oh man what a pain in the ass. Had to add a window listener to request
// focus of the sessions list.
***************
*** 877,882 ****
sessions.getSelectionModel().setSelectionInterval(
0,
! 0);
}
}
--- 879,885 ----
sessions.getSelectionModel().setSelectionInterval(
0,
! 0);
}
+ sessions.requestFocus();
}
***************
*** 907,912 ****
private void doActionConnect() {
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
!
int selectedRow = rowSM.getMinSelectionIndex();
connectKey = (String) ctm.getValueAt(selectedRow, 0);
--- 910,918 ----
private void doActionConnect() {
+ if (!connectButton.isEnabled())
+ return;
+
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
!
int selectedRow = rowSM.getMinSelectionIndex();
connectKey = (String) ctm.getValueAt(selectedRow, 0);
-------------------------------------------------------
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