tn5250j/src/org/tn5250j SessionPopup.java,1.15,1.16 TN5250jConstants.java,1.59,1.60 GuiGraphicBuffer.java,1.38,1.39

"Kenneth J. Pouncey" <[email protected]> Fri, 08 Jul 2005 06:19:56 +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-serv30778/src/org/tn5250j

Modified Files:
	SessionPopup.java TN5250jConstants.java GuiGraphicBuffer.java 
Log Message:
Fixes for Marc and some general clean up

Index: TN5250jConstants.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/TN5250jConstants.java,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** TN5250jConstants.java	17 Jun 2005 04:35:55 -0000	1.59
--- TN5250jConstants.java	8 Jul 2005 06:19:53 -0000	1.60
***************
*** 27,31 ****
     public static final String tn5250jRelease = "0";
     public static final String tn5250jVersion = ".6";
!    public static final String tn5250jSubVer= ".0";
  
     // STATE
--- 27,31 ----
     public static final String tn5250jRelease = "0";
     public static final String tn5250jVersion = ".6";
!    public static final String tn5250jSubVer= ".1 Beta 1";
  
     // STATE

Index: SessionPopup.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/SessionPopup.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** SessionPopup.java	16 Jun 2005 04:41:17 -0000	1.15
--- SessionPopup.java	8 Jul 2005 06:19:52 -0000	1.16
***************
*** 106,110 ****
           action = new AbstractAction(LangTool.getString("popup.paste")) {
                 public void actionPerformed(ActionEvent e) {
!                   screen.sendKeys(MNEMONIC_PASTE);
                    session.getFocusForMe();
                 }
--- 106,110 ----
           action = new AbstractAction(LangTool.getString("popup.paste")) {
                 public void actionPerformed(ActionEvent e) {
!                   screen.pasteMe(false);
                    session.getFocusForMe();
                 }

Index: GuiGraphicBuffer.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** GuiGraphicBuffer.java	16 Jun 2005 04:41:16 -0000	1.38
--- GuiGraphicBuffer.java	8 Jul 2005 06:19:53 -0000	1.39
***************
*** 38,41 ****
--- 38,43 ----
  import java.awt.*;
  
+ import javax.swing.SwingUtilities;
+ 
  import org.tn5250j.event.ScreenOIAListener;
  import org.tn5250j.event.ScreenListener;
***************
*** 1259,1267 ****
  	protected void updateImage(int x, int y, int width, int height) {
  
  		// check for selected area and erase it before updating screen
  		if (gui.rubberband != null && gui.rubberband.isAreaSelected()) {
  			gui.rubberband.erase();
  		}
! 
  		gg2d.setClip(x, y, width, height);
  //		if (!cursorActive && x + width <= bi.getWidth(null)
--- 1261,1271 ----
  	protected void updateImage(int x, int y, int width, int height) {
  
+ 	   
  		// check for selected area and erase it before updating screen
  		if (gui.rubberband != null && gui.rubberband.isAreaSelected()) {
  			gui.rubberband.erase();
  		}
! 		
! 		
  		gg2d.setClip(x, y, width, height);
  //		if (!cursorActive && x + width <= bi.getWidth(null)
***************
*** 1309,1313 ****
  			y += offTop;
  
! 		gui.repaint(x, y, width, height);
  
  	}
--- 1313,1331 ----
  			y += offTop;
  
! 		final int heightf = height;
! 		final int widthf = width;
! 		final int xf = x;
! 		final int yf = y;
! 		try {
! 			SwingUtilities.invokeLater(new Runnable() {
! 				public void run() {
! 		gui.repaint(xf, yf, widthf, heightf);
! 				}
! 			});
! 
! 		} catch (Exception exc) {
! 			log.warn("setStatus(ON) " + exc.getMessage());
! 
! 		}
  
  	}



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar