tn5250j/src/org/tn5250j Gui5250Frame.java,1.15,1.16

[email protected]
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1:/tmp/cvs-serv27685/src/org/tn5250j

Modified Files:
	Gui5250Frame.java 
Log Message:
Fixes for the hide tab features and the session-name in title

Index: Gui5250Frame.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Gui5250Frame.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** Gui5250Frame.java	24 Nov 2003 12:22:30 -0000	1.15
--- Gui5250Frame.java	24 Nov 2003 14:18:08 -0000	1.16
***************
*** 229,244 ****
        p.setIconAt(selectedIndex,focused);
  
     }
  
     private void setTitle() {
  
        if (sequence - 1 > 0)
!          setTitle("tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
        else
!          setTitle("tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
  
-       if (getSessionAt(selectedIndex) != null &&
-                   getSessionAt(selectedIndex).getAllocDeviceName() != null)
-          setTitle(getTitle() + " - " + getSessionAt(selectedIndex).getAllocDeviceName());
  
     }
--- 229,247 ----
        p.setIconAt(selectedIndex,focused);
  
+       setTitle();
+ 
     }
  
     private void setTitle() {
  
+       if (getSessionAt(selectedIndex) != null &&
+                   getSessionAt(selectedIndex).getAllocDeviceName() != null)
+          setTitle(getSessionAt(selectedIndex).getAllocDeviceName());
+ 
        if (sequence - 1 > 0)
!          setTitle(getTitle() + " - tn5250j <" + sequence + "> - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
        else
!          setTitle(getTitle() + " - tn5250j - " + tn5250jRelease + tn5250jVersion + tn5250jSubVer);
  
  
     }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
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.