bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash));//System.out.println("class = " + myself.getClass() + ", meth = " + meth); if (meth == null) { throw new NoSuchMethodException(); } ObjectInputStream in = conn.getObjectInputStream(); int nrargs = meth.getParameterTypes().length; Object[] args = new Object[nrargs]; for (int i = 0; i < nrargs; i++) { /** * For debugging purposes - we don't handle CodeBases * quite right so we don't always find the stubs. This * lets us know that. */ try { // need to handle primitive types args[i] = ((RMIObjectInputStream)in).readValue(meth.getParameterTypes()[i]); } catch (Exception t) { t.printStackTrace(); throw t; } } //We must reinterpret the exception thrown by meth.invoke() //return (meth.invoke(myself, args)); Object ret = null; try{ ret = meth.invoke(myself, args); }catch(InvocationTargetException e){ Throwable cause = e.getTargetException(); if (cause instanceof Exception) { throw (Exception)cause; } else if (cause instanceof Error) { throw (Error)cause; } else { throw new Error("The remote method threw a java.lang.Throwable that is neither java.lang.Exception nor java.lang.Error.", e); } } return ret; } // Otherwise this is JDK 1.1 style RMI - we find the skeleton // and invoke it using the method number. We wrap up our // connection system in a UnicastRemoteCall so it appears in a // way the Skeleton can handle. else { if (skel == null) { throw new NoSuchMethodException(); } UnicastRemoteCall call = new UnicastRemoteCall(conn); skel.dispatch(myself, call, method, hash); if (!call.isReturnValue()) return RMIVoidValue.INSTANCE; else return (call.returnValue()); }}
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash));//System.out.println("class = " + myself.getClass() + ", meth = " + meth); if (meth == null) { throw new NoSuchMethodException(); } ObjectInputStream in = conn.getObjectInputStream(); int nrargs = meth.getParameterTypes().length; Object[] args = new Object[nrargs]; for (int i = 0; i < nrargs; i++) { /** * For debugging purposes - we don't handle CodeBases * quite right so we don't always find the stubs. This * lets us know that. */ try { // need to handle primitive types args[i] = ((RMIObjectInputStream)in).readValue(meth.getParameterTypes()[i]); } catch (Exception t) { t.printStackTrace(); throw t; } } //We must reinterpret the exception thrown by meth.invoke() //return (meth.invoke(myself, args)); Object ret = null; try{ ret = meth.invoke(myself, args); }catch(InvocationTargetException e){ Throwable cause = e.getTargetException(); if (cause instanceof Exception) { throw (Exception)cause; } else if (cause instanceof Error) { throw (Error)cause; } else { throw new Error("The remote method threw a java.lang.Throwable that is neither java.lang.Exception nor java.lang.Error.", e); } } return ret; } // Otherwise this is JDK 1.1 style RMI - we find the skeleton // and invoke it using the method number. We wrap up our // connection system in a UnicastRemoteCall so it appears in a // way the Skeleton can handle. else { if (skel == null) { throw new NoSuchMethodException(); } UnicastRemoteCall call = new UnicastRemoteCall(conn); skel.dispatch(myself, call, method, hash); if (!call.isReturnValue()) return RMIVoidValue.INSTANCE; else return (call.returnValue()); }}
12,591
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash));//System.out.println("class = " + myself.getClass() + ", meth = " + meth); if (meth == null) { throw new NoSuchMethodException(); } ObjectInputStream in = conn.getObjectInputStream(); int nrargs = meth.getParameterTypes().length; Object[] args = new Object[nrargs]; for (int i = 0; i < nrargs; i++) { /** * For debugging purposes - we don't handle CodeBases * quite right so we don't always find the stubs. This * lets us know that. */ try { // need to handle primitive types args[i] = ((RMIObjectInputStream)in).readValue(meth.getParameterTypes()[i]); } catch (Exception t) { t.printStackTrace(); throw t; } } //We must reinterpret the exception thrown by meth.invoke() //return (meth.invoke(myself, args)); Object ret = null; try{ ret = meth.invoke(myself, args); }catch(InvocationTargetException e){ Throwable cause = e.getTargetException(); if (cause instanceof Exception) { throw (Exception)cause; } else if (cause instanceof Error) { throw (Error)cause; } else { throw new Error("The remote method threw a java.lang.Throwable that is neither java.lang.Exception nor java.lang.Error.", e); } } return ret; } // Otherwise this is JDK 1.1 style RMI - we find the skeleton // and invoke it using the method number. We wrap up our // connection system in a UnicastRemoteCall so it appears in a // way the Skeleton can handle. else { if (skel == null) { throw new NoSuchMethodException(); } UnicastRemoteCall call = new UnicastRemoteCall(conn); skel.dispatch(myself, call, method, hash); if (!call.isReturnValue()) return RMIVoidValue.INSTANCE; else return (call.returnValue()); }}
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash));//System.out.println("class = " + myself.getClass() + ", meth = " + meth); if (meth == null) { throw new NoSuchMethodException(); } ObjectInputStream in = conn.getObjectInputStream(); int nrargs = meth.getParameterTypes().length; Object[] args = new Object[nrargs]; for (int i = 0; i < nrargs; i++) { /** * For debugging purposes - we don't handle CodeBases * quite right so we don't always find the stubs. This * lets us know that. */ try { // need to handle primitive types args[i] = ((RMIObjectInputStream)in).readValue(meth.getParameterTypes()[i]); } catch (Exception t) { t.printStackTrace(); throw t; } } //We must reinterpret the exception thrown by meth.invoke() //return (meth.invoke(myself, args)); Object ret = null; try{ ret = meth.invoke(myself, args); }catch(InvocationTargetException e){ Throwable cause = e.getTargetException(); if (cause instanceof Exception) { throw (Exception)cause; } else if (cause instanceof Error) { throw (Error)cause; } else { throw new Error("The remote method threw a java.lang.Throwable that is neither java.lang.Exception nor java.lang.Error.", e); } } return ret; } // Otherwise this is JDK 1.1 style RMI - we find the skeleton // and invoke it using the method number. We wrap up our // connection system in a UnicastRemoteCall so it appears in a // way the Skeleton can handle. else { if (skel == null) { throw new NoSuchMethodException(); } UnicastRemoteCall call = new UnicastRemoteCall(conn); skel.dispatch(myself, call, method, hash); if (!call.isReturnValue()) return RMIVoidValue.INSTANCE; else return (call.returnValue()); }}
12,592
public boolean unexportObject(Remote obj, boolean force) { // Remove all hashes of methods which may be called. buildMethodHash(obj.getClass(), false); return UnicastServer.unexportObject(this, force);}
public boolean unexportObject(Remote obj, boolean force) { // Remove all hashes of methods which may be called. buildMethodHash(obj.getClass(), false); return UnicastServer.unexportObject(this, force);}
12,593
public boolean unexportObject(Remote obj, boolean force) { // Remove all hashes of methods which may be called. buildMethodHash(obj.getClass(), false); return UnicastServer.unexportObject(this, force);}
public boolean unexportObject(Remote obj, boolean force) { // Remove all hashes of methods which may be called. buildMethodHash(obj.getClass(), false); return UnicastServer.unexportObject(this, force);}
12,594
private void jbInit() throws Exception { try { setIconImage(GUIGraphicsUtils.getApplicationIcon().getImage()); // set title setTitle(LangTool.getString("xtfr.wizardTitle")); // Load the JDBC driver. Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance(); DriverManager.registerDriver(driver2); // Get a connection to the database. Since we do not // provide a user id or password, a prompt will appear. connection = new SQLConnection("jdbc:as400://" + host, name, password); // Create an SQLQueryBuilderPane // object. Assume that "connection" // is an SQLConnection object that is // created and initialized elsewhere. queryBuilder = new SQLQueryBuilderPane(connection); queryBuilder.setTableSchemas(new String[] {"*USRLIBL"}); // Load the data needed for the query // builder. queryBuilder.load(); JButton done = new JButton(LangTool.getString("xtfr.tableDone")); done.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { fillQueryTextArea(); } }); JPanel panel = new JPanel(); panel.add(done); getContentPane().add(queryBuilder, BorderLayout.CENTER); getContentPane().add(panel, BorderLayout.SOUTH); Dimension max = new Dimension(OperatingSystem.getScreenBounds().width, OperatingSystem.getScreenBounds().height); pack(); if (getSize().width > max.width) setSize(max.width,getSize().height); if (getSize().height > max.height) setSize(getSize().width,max.height); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); setVisible(true); } catch (ClassNotFoundException cnfe) { JOptionPane.showMessageDialog(null,"Error loading AS400 JDBC Driver", "Error", JOptionPane.ERROR_MESSAGE); } }
private void jbInit() throws Exception { try { setIconImage(GUIGraphicsUtils.getApplicationIcon().getImage()); // set title setTitle(LangTool.getString("xtfr.wizardTitle")); // Load the JDBC driver. Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance(); DriverManager.registerDriver(driver2); // Get a connection to the database. Since we do not // provide a user id or password, a prompt will appear. connection = new SQLConnection("jdbc:as400://" + host, name, password); // Create an SQLQueryBuilderPane // object. Assume that "connection" // is an SQLConnection object that is // created and initialized elsewhere. queryBuilder = new SQLQueryBuilderPane(connection); queryBuilder.setTableSchemas(new String[] {"*USRLIBL"}); // Load the data needed for the query // builder. queryBuilder.load(); JButton done = new JButton(LangTool.getString("xtfr.tableDone")); done.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { fillQueryTextArea(); } }); JPanel panel = new JPanel(); panel.add(done); getContentPane().add(queryBuilder, BorderLayout.CENTER); getContentPane().add(panel, BorderLayout.SOUTH); Dimension max = new Dimension(OperatingSystem.getScreenBounds().width, OperatingSystem.getScreenBounds().height); pack(); if (getSize().width > max.width) setSize(max.width,getSize().height); if (getSize().height > max.height) setSize(getSize().width,max.height); //Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 3); setVisible(true); } catch (ClassNotFoundException cnfe) { JOptionPane.showMessageDialog(null,"Error loading AS400 JDBC Driver", "Error", JOptionPane.ERROR_MESSAGE); } }
12,595
public boolean equals (Object obj) { if (! (obj instanceof CollationKey)) return false; CollationKey ck = (CollationKey) obj; if (ck.collator != collator) return false; if (!ck.getSourceString ().equals (getSourceString ())) return false; if (!ck.toByteArray ().equals (toByteArray ())) return false; return true; }
public boolean equals (Object obj) { if (! (obj instanceof CollationKey)) return false; CollationKey ck = (CollationKey) obj; if (ck.collator != collator) return false; if (!ck.getSourceString ().equals (getSourceString ())) return false; if (! Arrays.equals (ck.toByteArray (), toByteArray ())) return false; return true; }
12,596
public List getIOAxesOrder() { synchronized (axesIOList) { return axesIOList; } }
public List getIOAxesOrder() { if (axesIOList == null) return parentArray.getAxes(); else return axesIOList; } }
12,597
public List getIOAxesOrder() { synchronized (axesIOList) { return axesIOList; } }
public List getIOAxesOrder() { synchronized (axesIOList) { return axesIOList; }
12,598
private void privateSetIOAxesOrder (List axisOrderList) { synchronized (axesIOList) { axesIOList = Collections.synchronizedList(new ArrayList()); for (int i = 0, size = axesIOList.size(); i < size; i++) { axesIOList.add(axisOrderList.get(i)); } } }
private void privateSetIOAxesOrder (List axisOrderList) { synchronized (axesIOList) { axesIOList = Collections.synchronizedList(new ArrayList()); for (int i = 0, size = axisOrderList.size(); i < size; i++) { axesIOList.add(axisOrderList.get(i)); } } }
12,599
public Locator(Array array) { Log.debug("in Locator(Array)"); parentArray = array; List axisList = parentArray.getAxisList(); /**now, since we KNOW _parentArray is defined * (has to be instanciated via Array ONLY) * we can proceed to initialize the axis, index positions * to the origin (ie index 0 for each axis). * We choose the parent Array axisList ordering for our * default location ordering. */ locations = new Hashtable(axisList.size()); int stop = axisList.size(); for (int i = 0; i < stop; i++) { Object axisObj = axisList.get(i); axisOrderList.add(axisObj); locations.put(axisObj, new Integer(0)); } }
public Locator(Array array) { parentArray = array; List axisList = parentArray.getAxisList(); /**now, since we KNOW _parentArray is defined * (has to be instanciated via Array ONLY) * we can proceed to initialize the axis, index positions * to the origin (ie index 0 for each axis). * We choose the parent Array axisList ordering for our * default location ordering. */ locations = new Hashtable(axisList.size()); int stop = axisList.size(); for (int i = 0; i < stop; i++) { Object axisObj = axisList.get(i); axisOrderList.add(axisObj); locations.put(axisObj, new Integer(0)); } }
12,600
public AccessibleContext getAccessibleContext() { return null; }
public AccessibleContext getAccessibleContext() { return null; }
12,601
public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); toDefault = toDefaultPrinter; int len = sc.length; // we need to fix this to use the access methods to planes// for (int x = 0; x < len; x++) {// screen[x] = new ScreenChar(sc[x].s);// screen[x].setCharAndAttr(sc[x].getChar(),sc[x].getCharAttr(),sc[x].isAttributePlace());// } numCols = cols; numRows = rows; this.colorBg = colorBg; this.font = font; }
public PrinterThread (Screen5250 scr, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); toDefault = toDefaultPrinter; int len = sc.length; // we need to fix this to use the access methods to planes// for (int x = 0; x < len; x++) {// screen[x] = new ScreenChar(sc[x].s);// screen[x].setCharAndAttr(sc[x].getChar(),sc[x].getCharAttr(),sc[x].isAttributePlace());// } numCols = cols; numRows = rows; this.colorBg = colorBg; this.font = font; }
12,602
public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); toDefault = toDefaultPrinter; int len = sc.length; // we need to fix this to use the access methods to planes// for (int x = 0; x < len; x++) {// screen[x] = new ScreenChar(sc[x].s);// screen[x].setCharAndAttr(sc[x].getChar(),sc[x].getCharAttr(),sc[x].isAttributePlace());// } numCols = cols; numRows = rows; this.colorBg = colorBg; this.font = font; }
public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); toDefault = toDefaultPrinter; int len = sc.length; // we need to fix this to use the access methods to planes// for (int x = 0; x < len; x++) {// screen[x] = new ScreenChar(sc[x].s);// screen[x].setCharAndAttr(sc[x].getChar(),sc[x].getCharAttr(),sc[x].isAttributePlace());// } numCols = cols; numRows = rows; this.colorBg = colorBg; this.font = font; }
12,603
public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); toDefault = toDefaultPrinter; int len = sc.length; // we need to fix this to use the access methods to planes// for (int x = 0; x < len; x++) {// screen[x] = new ScreenChar(sc[x].s);// screen[x].setCharAndAttr(sc[x].getChar(),sc[x].getCharAttr(),sc[x].isAttributePlace());// } numCols = cols; numRows = rows; this.colorBg = colorBg; this.font = font; }
public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); toDefault = toDefaultPrinter; int len = sc.length; // we need to fix this to use the access methods to planes// for (int x = 0; x < len; x++) {// screen[x] = new ScreenChar(sc[x].s);// screen[x].setCharAndAttr(sc[x].getChar(),sc[x].getCharAttr(),sc[x].isAttributePlace());// } numCols = cols; numRows = rows; this.colorBg = colorBg; this.font = font; }
12,604
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); //--- Translate the origin to be (0,0) g2.translate (pageFormat.getImageableX (), pageFormat.getImageableY ()); int w = (int)pageFormat.getImageableWidth() / numCols; // proposed width int h = (int)pageFormat.getImageableHeight() / numRows; // proposed height Font k = font; LineMetrics l; FontRenderContext f = null; float j = 1; for (; j < 50; j++) { // derive the font and obtain the relevent information to compute // the width and height k = font.deriveFont(j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); if ( (w < (int)k.getStringBounds("W",f).getWidth()) || h < (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()) ) break; } // since we were looking for an overrun of the width or height we need // to adjust the font one down to get the last one that fit. k = font.deriveFont(--j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); // set the font of the print job g2.setFont(k); // get the width and height of the character bounds int w1 = (int)k.getStringBounds("W",f).getWidth(); int h1 = (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()); int x; int y; // loop through all the screen characters and print them out. for (int m = 0;m < numRows; m++) for (int i = 0; i < numCols; i++) { x = w1 * i; y = h1 * (m + 1); // only draw printable characters (in this case >= ' ')// if (screen[getPos(m,i)].getChar() >= ' ' && !screen[getPos(m,i)].nonDisplay) { // TODO: Fix me for detecting non display if (screen[getPos(m,i)] >= ' ') { // && !screen[getPos(m,i)].nonDisplay) {// g2.drawChars(screen[getPos(m,i)], 0, 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); g2.drawChars(screen, getPos(m,i), 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); } // TODO: Fix me for detecting non display // if it is underlined then underline the character// if (screen[getPos(m,i)].underLine && !screen[getPos(m,i)].attributePlace)// g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); } return (PAGE_EXISTS); } else return (NO_SUCH_PAGE); }
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); //--- Translate the origin to be (0,0) g2.translate (pageFormat.getImageableX (), pageFormat.getImageableY ()); int w = (int)pageFormat.getImageableWidth() / numCols; // proposed width int h = (int)pageFormat.getImageableHeight() / numRows; // proposed height Font k = font; LineMetrics l; FontRenderContext f = null; float j = 1; for (; j < 50; j++) { // derive the font and obtain the relevent information to compute // the width and height k = font.deriveFont(j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); if ( (w < (int)k.getStringBounds("W",f).getWidth()) || h < (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()) ) break; } // since we were looking for an overrun of the width or height we need // to adjust the font one down to get the last one that fit. k = font.deriveFont(--j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); // set the font of the print job g2.setFont(k); // get the width and height of the character bounds int w1 = (int)k.getStringBounds("W",f).getWidth(); int h1 = (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()); int x; int y; // loop through all the screen characters and print them out. for (int m = 0;m < numRows; m++) for (int i = 0; i < numCols; i++) { x = w1 * i; y = h1 * (m + 1); // only draw printable characters (in this case >= ' ')// if (screen[getPos(m,i)].getChar() >= ' ' && !screen[getPos(m,i)].nonDisplay) { // TODO: Fix me for detecting non display if (screen[getPos(m,i)] >= ' ' && ((screen[getPos(m,i)] & EXTENDED_5250_NON_DSP) == 0)) { // && !screen[getPos(m,i)].nonDisplay) {// g2.drawChars(screen[getPos(m,i)], 0, 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); g2.drawChars(screen, getPos(m,i), 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); } // TODO: Fix me for detecting non display // if it is underlined then underline the character// if (screen[getPos(m,i)].underLine && !screen[getPos(m,i)].attributePlace)// g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); } return (PAGE_EXISTS); } else return (NO_SUCH_PAGE); }
12,605
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); //--- Translate the origin to be (0,0) g2.translate (pageFormat.getImageableX (), pageFormat.getImageableY ()); int w = (int)pageFormat.getImageableWidth() / numCols; // proposed width int h = (int)pageFormat.getImageableHeight() / numRows; // proposed height Font k = font; LineMetrics l; FontRenderContext f = null; float j = 1; for (; j < 50; j++) { // derive the font and obtain the relevent information to compute // the width and height k = font.deriveFont(j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); if ( (w < (int)k.getStringBounds("W",f).getWidth()) || h < (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()) ) break; } // since we were looking for an overrun of the width or height we need // to adjust the font one down to get the last one that fit. k = font.deriveFont(--j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); // set the font of the print job g2.setFont(k); // get the width and height of the character bounds int w1 = (int)k.getStringBounds("W",f).getWidth(); int h1 = (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()); int x; int y; // loop through all the screen characters and print them out. for (int m = 0;m < numRows; m++) for (int i = 0; i < numCols; i++) { x = w1 * i; y = h1 * (m + 1); // only draw printable characters (in this case >= ' ')// if (screen[getPos(m,i)].getChar() >= ' ' && !screen[getPos(m,i)].nonDisplay) { // TODO: Fix me for detecting non display if (screen[getPos(m,i)] >= ' ') { // && !screen[getPos(m,i)].nonDisplay) {// g2.drawChars(screen[getPos(m,i)], 0, 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); g2.drawChars(screen, getPos(m,i), 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); } // TODO: Fix me for detecting non display // if it is underlined then underline the character// if (screen[getPos(m,i)].underLine && !screen[getPos(m,i)].attributePlace)// g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); } return (PAGE_EXISTS); } else return (NO_SUCH_PAGE); }
publicintprint(Graphicsg,PageFormatpageFormat,intpage){Graphics2Dg2;//---Validatethepagenumber,weonlyprintthefirstpageif(page==0){//---Createagraphic2Dobjectandsetthedefaultparametersg2=(Graphics2D)g;g2.setColor(Color.black);//---Translatetheorigintobe(0,0)g2.translate(pageFormat.getImageableX(),pageFormat.getImageableY());intw=(int)pageFormat.getImageableWidth()/numCols;//proposedwidthinth=(int)pageFormat.getImageableHeight()/numRows;//proposedheightFontk=font;LineMetricsl;FontRenderContextf=null;floatj=1;for(;j<50;j++){//derivethefontandobtainthereleventinformationtocompute//thewidthandheightk=font.deriveFont(j);f=newFontRenderContext(k.getTransform(),true,true);l=k.getLineMetrics("Wy",f);if((w<(int)k.getStringBounds("W",f).getWidth())||h<(int)(k.getStringBounds("y",f).getHeight()+l.getDescent()+l.getLeading()))break;}//sincewewerelookingforanoverrunofthewidthorheightweneed//toadjustthefontonedowntogetthelastonethatfit.k=font.deriveFont(--j);f=newFontRenderContext(k.getTransform(),true,true);l=k.getLineMetrics("Wy",f);//setthefontoftheprintjobg2.setFont(k);//getthewidthandheightofthecharacterboundsintw1=(int)k.getStringBounds("W",f).getWidth();inth1=(int)(k.getStringBounds("y",f).getHeight()+l.getDescent()+l.getLeading());intx;inty;//loopthroughallthescreencharactersandprintthemout.for(intm=0;m<numRows;m++)for(inti=0;i<numCols;i++){x=w1*i;y=h1*(m+1);//onlydrawprintablecharacters(inthiscase>='')//if(screen[getPos(m,i)].getChar()>=''&&!screen[getPos(m,i)].nonDisplay){//TODO:Fixmefordetectingnondisplayif(screen[getPos(m,i)]>=''){//&&!screen[getPos(m,i)].nonDisplay){//g2.drawChars(screen[getPos(m,i)],0,1,x,(int)(y+h1-(l.getDescent()+l.getLeading())-2));g2.drawChars(screen,getPos(m,i),1,x,(int)(y+h1-(l.getDescent()+l.getLeading())-2));}//TODO:Fixmefordetectingnondisplay//ifitisunderlinedthenunderlinethecharacter//if(screen[getPos(m,i)].underLine&&!screen[getPos(m,i)].attributePlace)//g.drawLine(x,(int)(y+(h1-l.getLeading()-3)),(int)(x+w1),(int)(y+(h1-l.getLeading())-3));}return(PAGE_EXISTS);}elsereturn(NO_SUCH_PAGE);}
12,606
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); //--- Translate the origin to be (0,0) g2.translate (pageFormat.getImageableX (), pageFormat.getImageableY ()); int w = (int)pageFormat.getImageableWidth() / numCols; // proposed width int h = (int)pageFormat.getImageableHeight() / numRows; // proposed height Font k = font; LineMetrics l; FontRenderContext f = null; float j = 1; for (; j < 50; j++) { // derive the font and obtain the relevent information to compute // the width and height k = font.deriveFont(j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); if ( (w < (int)k.getStringBounds("W",f).getWidth()) || h < (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()) ) break; } // since we were looking for an overrun of the width or height we need // to adjust the font one down to get the last one that fit. k = font.deriveFont(--j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); // set the font of the print job g2.setFont(k); // get the width and height of the character bounds int w1 = (int)k.getStringBounds("W",f).getWidth(); int h1 = (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()); int x; int y; // loop through all the screen characters and print them out. for (int m = 0;m < numRows; m++) for (int i = 0; i < numCols; i++) { x = w1 * i; y = h1 * (m + 1); // only draw printable characters (in this case >= ' ')// if (screen[getPos(m,i)].getChar() >= ' ' && !screen[getPos(m,i)].nonDisplay) { // TODO: Fix me for detecting non display if (screen[getPos(m,i)] >= ' ') { // && !screen[getPos(m,i)].nonDisplay) {// g2.drawChars(screen[getPos(m,i)], 0, 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); g2.drawChars(screen, getPos(m,i), 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); } // TODO: Fix me for detecting non display // if it is underlined then underline the character// if (screen[getPos(m,i)].underLine && !screen[getPos(m,i)].attributePlace)// g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); } return (PAGE_EXISTS); } else return (NO_SUCH_PAGE); }
publicintprint(Graphicsg,PageFormatpageFormat,intpage){Graphics2Dg2;//---Validatethepagenumber,weonlyprintthefirstpageif(page==0){//---Createagraphic2Dobjectandsetthedefaultparametersg2=(Graphics2D)g;g2.setColor(Color.black);//---Translatetheorigintobe(0,0)g2.translate(pageFormat.getImageableX(),pageFormat.getImageableY());intw=(int)pageFormat.getImageableWidth()/numCols;//proposedwidthinth=(int)pageFormat.getImageableHeight()/numRows;//proposedheightFontk=font;LineMetricsl;FontRenderContextf=null;floatj=1;for(;j<50;j++){//derivethefontandobtainthereleventinformationtocompute//thewidthandheightk=font.deriveFont(j);f=newFontRenderContext(k.getTransform(),true,true);l=k.getLineMetrics("Wy",f);if((w<(int)k.getStringBounds("W",f).getWidth())||h<(int)(k.getStringBounds("y",f).getHeight()+l.getDescent()+l.getLeading()))break;}//sincewewerelookingforanoverrunofthewidthorheightweneed//toadjustthefontonedowntogetthelastonethatfit.k=font.deriveFont(--j);f=newFontRenderContext(k.getTransform(),true,true);l=k.getLineMetrics("Wy",f);//setthefontoftheprintjobg2.setFont(k);//getthewidthandheightofthecharacterboundsintw1=(int)k.getStringBounds("W",f).getWidth();inth1=(int)(k.getStringBounds("y",f).getHeight()+l.getDescent()+l.getLeading());intx;inty;//loopthroughallthescreencharactersandprintthemout.for(intm=0;m<numRows;m++)for(inti=0;i<numCols;i++){x=w1*i;y=h1*(m+1);//onlydrawprintablecharacters(inthiscase>='')//if(screen[getPos(m,i)].getChar()>=''&&!screen[getPos(m,i)].nonDisplay){//TODO:Fixmefordetectingnondisplayif(screen[getPos(m,i)]>=''){//&&!screen[getPos(m,i)].nonDisplay){//g2.drawChars(screen[getPos(m,i)],0,1,x,(int)(y+h1-(l.getDescent()+l.getLeading())-2));g2.drawChars(screen,getPos(m,i),1,x,(int)(y+h1-(l.getDescent()+l.getLeading())-2));}//TODO:Fixmefordetectingnondisplay//ifitisunderlinedthenunderlinethecharacter//if(screen[getPos(m,i)].underLine&&!screen[getPos(m,i)].attributePlace)//g.drawLine(x,(int)(y+(h1-l.getLeading()-3)),(int)(x+w1),(int)(y+(h1-l.getLeading())-3));}return(PAGE_EXISTS);}elsereturn(NO_SUCH_PAGE);}
12,607
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); //--- Translate the origin to be (0,0) g2.translate (pageFormat.getImageableX (), pageFormat.getImageableY ()); int w = (int)pageFormat.getImageableWidth() / numCols; // proposed width int h = (int)pageFormat.getImageableHeight() / numRows; // proposed height Font k = font; LineMetrics l; FontRenderContext f = null; float j = 1; for (; j < 50; j++) { // derive the font and obtain the relevent information to compute // the width and height k = font.deriveFont(j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); if ( (w < (int)k.getStringBounds("W",f).getWidth()) || h < (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()) ) break; } // since we were looking for an overrun of the width or height we need // to adjust the font one down to get the last one that fit. k = font.deriveFont(--j); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f); // set the font of the print job g2.setFont(k); // get the width and height of the character bounds int w1 = (int)k.getStringBounds("W",f).getWidth(); int h1 = (int)(k.getStringBounds("y",f).getHeight() + l.getDescent() + l.getLeading()); int x; int y; // loop through all the screen characters and print them out. for (int m = 0;m < numRows; m++) for (int i = 0; i < numCols; i++) { x = w1 * i; y = h1 * (m + 1); // only draw printable characters (in this case >= ' ')// if (screen[getPos(m,i)].getChar() >= ' ' && !screen[getPos(m,i)].nonDisplay) { // TODO: Fix me for detecting non display if (screen[getPos(m,i)] >= ' ') { // && !screen[getPos(m,i)].nonDisplay) {// g2.drawChars(screen[getPos(m,i)], 0, 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); g2.drawChars(screen, getPos(m,i), 1,x , (int)(y + h1 - (l.getDescent() + l.getLeading())-2)); } // TODO: Fix me for detecting non display // if it is underlined then underline the character// if (screen[getPos(m,i)].underLine && !screen[getPos(m,i)].attributePlace)// g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); } return (PAGE_EXISTS); } else return (NO_SUCH_PAGE); }
if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); publicif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); printif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (Graphicsif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); PageFormatif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); pageFormat,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); page)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); {if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); Graphics2Dif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g2;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //---if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); Validateif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); pageif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); number,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); weif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); onlyif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); printif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); firstif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); pageif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ifif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (pageif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ==if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 0)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); {if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //---if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); Createif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); aif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); graphic2Dif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); objectif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); andif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); setif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); defaultif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); parametersif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g2if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (Graphics2D)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g2.setColorif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (Color.black);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //---if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); Translateif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); originif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); toif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); beif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (0,0)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g2.translateif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (pageFormat.getImageableXif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (),if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); pageFormat.getImageableYif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ());if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); wif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)pageFormat.getImageableWidth()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); /if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); numCols;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); proposedif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); widthif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); hif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)pageFormat.getImageableHeight()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); /if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); numRows;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); proposedif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); heightif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); Fontif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); kif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); font;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); LineMetricsif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); FontRenderContextif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); fif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); null;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); floatif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); jif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 1;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); forif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); jif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); <if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 50;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); j++)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); {if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); deriveif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); fontif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); andif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); obtainif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); releventif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); informationif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); toif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); computeif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); widthif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); andif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); heightif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); kif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); font.deriveFont(j);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); fif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); newif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); FontRenderContext(k.getTransform(),true,true);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); lif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); k.getLineMetrics("Wy",f);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ifif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (wif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); <if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)k.getStringBounds("W",f).getWidth())if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ||if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); hif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); <if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)(k.getStringBounds("y",f).getHeight()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getDescent()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getLeading())if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); )if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); break;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); }if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); sinceif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); weif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); wereif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); lookingif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); forif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); anif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); overrunif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ofif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); widthif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); orif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); heightif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); weif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); needif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); toif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); adjustif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); fontif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); oneif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); downif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); toif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); getif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); lastif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); oneif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); thatif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); fit.if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); kif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); font.deriveFont(--j);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); fif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); newif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); FontRenderContext(k.getTransform(),true,true);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); lif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); k.getLineMetrics("Wy",f);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); setif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); fontif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ofif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); printif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); jobif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g2.setFont(k);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); getif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); widthif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); andif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); heightif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ofif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); characterif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); boundsif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); w1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)k.getStringBounds("W",f).getWidth();if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); h1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)(k.getStringBounds("y",f).getHeight()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getDescent()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getLeading());if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); x;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); y;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); loopif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); throughif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); allif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); screenif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); charactersif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); andif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); printif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); themif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); out.if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); forif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); mif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 0;mif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); <if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); numRows;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); m++)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); forif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (intif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); iif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 0;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); iif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); <if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); numCols;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); i++)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); {if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); xif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); w1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); *if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); i;if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); yif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); =if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); h1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); *if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (mif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 1);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); onlyif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); drawif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); printableif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); charactersif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (inif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); thisif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); caseif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); >=if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 'if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ')//if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ifif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (screen[getPos(m,i)].getChar()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); >=if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 'if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 'if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); &&if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); !screen[getPos(m,i)].nonDisplay)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); {if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); TODO:if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); Fixif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); meif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); forif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); detectingif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); nonif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); displayif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ifif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (screen[getPos(m,i)]if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); >=if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 'if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ')if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); {if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); &&if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); !screen[getPos(m,i)].nonDisplay)if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); {//if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g2.drawChars(screen[getPos(m,i)],if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 0,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 1,xif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)(yif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); h1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); -if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (l.getDescent()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getLeading())-2));if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g2.drawChars(screen,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); getPos(m,i),if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); 1,xif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)(yif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); h1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); -if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (l.getDescent()if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getLeading())-2));if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); }if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); TODO:if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); Fixif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); meif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); forif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); detectingif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); nonif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); displayif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); //if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ifif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); itif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); isif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); underlinedif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); thenif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); underlineif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); theif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); character//if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); ifif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (screen[getPos(m,i)].underLineif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); &&if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); !screen[getPos(m,i)].attributePlace)//if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); g.drawLine(x,if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)(yif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (h1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); -if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getLeading()-3)),if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)(xif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); w1),if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (int)(yif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); +if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (h1if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); -if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); l.getLeading())-3));if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); }if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); returnif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (PAGE_EXISTS);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); }if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); elseif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); returnif ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); (NO_SUCH_PAGE);if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); }
12,608
public void run () {// Toolkit tk = Toolkit.getDefaultToolkit();//int [][] range = new int[][] {//new int[] { 1, 1 }//};// JobAttributes jobAttributes = new JobAttributes(1, JobAttributes.DefaultSelectionType.ALL, JobAttributes.DestinationType.PRINTER, JobAttributes.DialogType.NONE, "file", 1, 1, JobAttributes.MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_COLLATED_COPIES, range, "HP LaserJet", JobAttributes.SidesType.ONE_SIDED);//PrintJob job = tk.getPrintJob(null, "Print", jobAttributes, null);//if (job != null) { //--- Create a printerJob object PrinterJob printJob = PrinterJob.getPrinterJob (); printJob.setJobName("tn5250j"); // will have to remember this for the next time. // Always set a page format before call setPrintable to // set the orientation. PageFormat pf = printJob.defaultPage(); if (numCols == 132) pf.setOrientation(PageFormat.LANDSCAPE); else pf.setOrientation(PageFormat.PORTRAIT); if (numCols != 132) { if (config.getStringProperty("print.portWidth").length() != 0 && config.getStringProperty("print.portHeight").length() != 0 && config.getStringProperty("print.portImageWidth").length() != 0 && config.getStringProperty("print.portImageHeight").length() != 0 && config.getStringProperty("print.portImage.X").length() != 0 && config.getStringProperty("print.portImage.Y").length() != 0) { Paper paper = pf.getPaper(); paper.setSize( Double.parseDouble(config.getStringProperty("print.portWidth")), Double.parseDouble(config.getStringProperty("print.portHeight"))); paper.setImageableArea( Double.parseDouble(config.getStringProperty("print.portImage.X")), Double.parseDouble(config.getStringProperty("print.portImage.Y")), Double.parseDouble(config.getStringProperty("print.portImageWidth")), Double.parseDouble(config.getStringProperty("print.portImageHeight"))); pf.setPaper(paper); } } else { if (config.getStringProperty("print.landWidth").length() != 0 && config.getStringProperty("print.landHeight").length() != 0 && config.getStringProperty("print.landImageWidth").length() != 0 && config.getStringProperty("print.landImageHeight").length() != 0 && config.getStringProperty("print.landImage.X").length() != 0 && config.getStringProperty("print.landImage.Y").length() != 0) { Paper paper = pf.getPaper(); paper.setSize( Double.parseDouble(config.getStringProperty("print.landWidth")), Double.parseDouble(config.getStringProperty("print.landHeight"))); paper.setImageableArea( Double.parseDouble(config.getStringProperty("print.landImage.X")), Double.parseDouble(config.getStringProperty("print.landImage.Y")), Double.parseDouble(config.getStringProperty("print.landImageWidth")), Double.parseDouble(config.getStringProperty("print.landImageHeight"))); } } if (config.getStringProperty("print.font").length() > 0) { font = new Font(config.getStringProperty("print.font"), Font.PLAIN, 8); } //--- Set the printable class to this one since we //--- are implementing the Printable interface printJob.setPrintable (this,pf); // set the cursor back session.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); //--- Show a print dialog to the user. If the user //--- clicks the print button, then print, otherwise //--- cancel the print job if (printJob.printDialog()) { try { // we do this because of loosing focus with jdk 1.4.0 session.requestFocus(); printJob.print(); } catch (Exception PrintException) { PrintException.printStackTrace(); } } else { // we do this because of loosing focus with jdk 1.4.0 session.requestFocus(); } session = null;// int len = screen.length;//// for (int x = 0; x < len; x++) {// screen[x] = null;// }//// screen = null; }
public void run () {// Toolkit tk = Toolkit.getDefaultToolkit();//int [][] range = new int[][] {//new int[] { 1, 1 }//};// JobAttributes jobAttributes = new JobAttributes(1, JobAttributes.DefaultSelectionType.ALL, JobAttributes.DestinationType.PRINTER, JobAttributes.DialogType.NONE, "file", 1, 1, JobAttributes.MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_COLLATED_COPIES, range, "HP LaserJet", JobAttributes.SidesType.ONE_SIDED);//PrintJob job = tk.getPrintJob(null, "Print", jobAttributes, null);//if (job != null) { //--- Create a printerJob object PrinterJob printJob = PrinterJob.getPrinterJob (); printJob.setJobName("tn5250j"); // will have to remember this for the next time. // Always set a page format before call setPrintable to // set the orientation. PageFormat pf = printJob.defaultPage(); if (numCols == 132)screen = null; screenAttr = null; pf.setOrientation(PageFormat.LANDSCAPE); elsescreen = null; screenAttr = null; pf.setOrientation(PageFormat.PORTRAIT); if (numCols != 132) {screen = null; screenAttr = null; if (config.getStringProperty("print.portWidth").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.portHeight").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.portImageWidth").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.portImageHeight").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.portImage.X").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.portImage.Y").length() != 0) {screen = null; screenAttr = null; Paper paper = pf.getPaper();screen = null; screenAttr = null; paper.setSize(screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.portWidth")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.portHeight")));screen = null; screenAttr = null; paper.setImageableArea(screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.portImage.X")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.portImage.Y")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.portImageWidth")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.portImageHeight")));screen = null; screenAttr = null; pf.setPaper(paper);screen = null; screenAttr = null; } } else {screen = null; screenAttr = null; if (config.getStringProperty("print.landWidth").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.landHeight").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.landImageWidth").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.landImageHeight").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.landImage.X").length() != 0 &&screen = null; screenAttr = null; screen = null; screenAttr = null; config.getStringProperty("print.landImage.Y").length() != 0) {screen = null; screenAttr = null; Paper paper = pf.getPaper();screen = null; screenAttr = null; paper.setSize(screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.landWidth")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.landHeight")));screen = null; screenAttr = null; paper.setImageableArea(screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.landImage.X")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.landImage.Y")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.landImageWidth")),screen = null; screenAttr = null; screen = null; screenAttr = null; Double.parseDouble(config.getStringProperty("print.landImageHeight")));screen = null; screenAttr = null; } } if (config.getStringProperty("print.font").length() > 0) {screen = null; screenAttr = null; font = new Font(config.getStringProperty("print.font"),screen = null; screenAttr = null; screen = null; screenAttr = null; screen = null; screenAttr = null; Font.PLAIN, 8); } //--- Set the printable class to this one since we //--- are implementing the Printable interface printJob.setPrintable (this,pf); // set the cursor back session.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); //--- Show a print dialog to the user. If the user //--- clicks the print button, then print, otherwise //--- cancel the print job if (printJob.printDialog()) {screen = null; screenAttr = null; try {screen = null; screenAttr = null; // we do this because of loosing focus with jdk 1.4.0screen = null; screenAttr = null; session.requestFocus();screen = null; screenAttr = null; printJob.print();screen = null; screenAttr = null; } catch (Exception PrintException) {screen = null; screenAttr = null; PrintException.printStackTrace();screen = null; screenAttr = null; } } else {screen = null; screenAttr = null; // we do this because of loosing focus with jdk 1.4.0screen = null; screenAttr = null; session.requestFocus(); } session = null;// int len = screen.length;//// for (int x = 0; x < len; x++) {//screen = null; screenAttr = null; screen[x] = null;// }//// screen = null; }
12,609
public void actionPerformed(ActionEvent event) { // TODO } // actionPerformed()
public void actionPerformed(ActionEvent event) { // TODO } // actionPerformed()
12,610
public void cancelCellEditing() { // TODO } // cancelCellEditing()
public void cancelCellEditing() { // TODO } // cancelCellEditing()
12,611
public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue()
public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue()
12,612
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable()
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable()
12,613
public void itemStateChanged(ItemEvent event) { // TODO } // itemStateChanged()
public void itemStateChanged(ItemEvent event) { // TODO } // itemStateChanged()
12,614
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell()
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell()
12,615
public boolean startCellEditing(EventObject event) { return false; // TODO } // startCellEditing()
public boolean startCellEditing(EventObject event) { return false; // TODO } // startCellEditing()
12,616
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()
12,617
public void cancelCellEditing() { // TODO } // cancelCellEditing()
public void cancelCellEditing() { // TODO } // cancelCellEditing()
12,618
public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue()
public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue()
12,619
public Component getComponent() { return null; // TODO } // getComponent()
public Component getComponent() { return null; // TODO } // getComponent()
12,620
public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent()
public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent()
12,621
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { return null; // TODO } // getTreeCellEditorComponent()
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { return null; // TODO } // getTreeCellEditorComponent()
12,622
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable()
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable()
12,623
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell()
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell()
12,624
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()
12,625
protected PluginDescriptorModel readDescriptor(File descriptor) { final PluginDescriptorModel descr; try { final XMLElement root = new XMLElement(new Hashtable(), true, false); try { final FileReader r = new FileReader(descriptor); try { root.parseFromReader(r); } finally { r.close(); } } catch (IOException ex) { throw new BuildException("Building " + descriptor + " failed", ex); } catch (XMLParseException ex) { throw new BuildException("Building " + descriptor + " failed", ex); } descr = new PluginDescriptorModel(root); } catch (PluginException ex) { ex.printStackTrace(); throw new BuildException("Building " + descriptor + " failed", ex); } return descr; }
protected PluginDescriptorModel readDescriptor(File descriptor) { final PluginDescriptorModel descr; try { final XMLElement root = new XMLElement(new Hashtable(), true, false); try { final FileReader r = new FileReader(descriptor); try { root.parseFromReader(r); } finally { r.close(); } } catch (IOException ex) { throw new BuildException("Building " + descriptor + " failed", ex); } catch (XMLParseException ex) { throw new BuildException("Building " + descriptor + " failed", ex); } if (root.getName().equals("plugin")) { descr = new PluginDescriptorModel(root); } else if (root.getName().equals("fragment")) { descr = new FragmentDescriptorModel(root); } else { throw new BuildException("Unknown root tag " + root.getName()); } } catch (PluginException ex) { ex.printStackTrace(); throw new BuildException("Building " + descriptor + " failed", ex); } return descr; }
12,627
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,628
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,629
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,630
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,631
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,632
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,633
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,634
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,635
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,636
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,637
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; toAddrs = InternetAddress.parse(to, false); msg.setRecipients(Message.RecipientType.TO, toAddrs); if (cc != null) { ccAddrs = InternetAddress.parse(cc, false); msg.setRecipients(Message.RecipientType.CC, ccAddrs); } if (subject != null) msg.setSubject(subject.trim()); if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); msg.setSentDate(new Date()); // create and fill the first message part MimeBodyPart mbp = new MimeBodyPart(); mbp.setText(message,"us-ascii"); if (fileName == null || fileName.length() == 0) mbp.setFileName("tn5250j.txt"); else mbp.setFileName(fileName); // create the Multipart and its parts to it Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); // add the Multipart to the message msg.setContent(mp); // send the message Transport.send(msg); } catch (Exception mex) { System.out.println(mex.toString()); } }
12,638
private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1: break; case CMD_SAVE_SCREEN: // 0x02 2 Save Screen case 3: // 0x03 3 Save Partial Screen saveScreen(); break; case ESC: // ESCAPE break; case 7: // audible bell Toolkit.getDefaultToolkit().beep(); bk.getNextByte(); bk.getNextByte(); break; case CMD_WRITE_TO_DISPLAY: // 0x11 17 write to display error = writeToDisplay(true); break; case CMD_RESTORE_SCREEN: // 0x12 18 Restore Screen case 13: // 0x13 19 Restore Partial Screen restoreScreen(); break; case CMD_CLEAR_UNIT_ALTERNATE: // 0x20 32 clear unit alternate int param = bk.getNextByte(); if (param != 0) {// System.out.println(" clear unit alternate error " + Integer.toHexString(param)); sendNegResponse(NR_REQUEST_ERROR,03,01,05, " clear unit alternate not supported"); done = true; } else { if (screen52.getRows() != 27) screen52.setRowsCols(27,132); screen52.clearAll(); } break; case CMD_WRITE_ERROR_CODE: // 0x21 33 Write Error Code writeErrorCode(); error = writeToDisplay(false); break; case CMD_WRITE_ERROR_CODE_TO_WINDOW: // 0x22 34 // Write Error Code to window writeErrorCodeToWindow(); error = writeToDisplay(false); break; case CMD_READ_SCREEN_IMMEDIATE: // 0x62 98 case CMD_READ_SCREEN_TO_PRINT: // 0x66 102 read screen to print readScreen(); break; case CMD_CLEAR_UNIT: // 64 0x40 clear unit if (screen52.getRows() != 24) screen52.setRowsCols(24,80); screen52.clearAll(); break; case CMD_CLEAR_FORMAT_TABLE: // 80 0x50 Clear format table screen52.clearTable(); break; case CMD_READ_INPUT_FIELDS: //0x42 66 read input fields case CMD_READ_MDT_FIELDS: // 0x52 82 read MDT Fields bk.getNextByte(); bk.getNextByte(); readType = b; screen52.goHome();// screen52.setCursorOn(); waitingForInput = true; screen52.setKeyboardLocked(false); break; case CMD_READ_MDT_IMMEDIATE_ALT: // 0x53 83 readType = b;// screen52.goHome();// waitingForInput = true;// screen52.setKeyboardLocked(false); readImmediate(readType); break; case CMD_WRITE_STRUCTURED_FIELD: // 243 0xF3 -13 Write structured field writeStructuredField(); break; default: done = true; sendNegResponse(NR_REQUEST_ERROR,03,01,01,"parseIncoming"); break; } if (error) done = true; } } catch (Exception exc) {System.out.println("incoming " + exc.getMessage());}; }
private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1: break; case CMD_SAVE_SCREEN: // 0x02 2 Save Screen case 3: // 0x03 3 Save Partial Screen saveScreen(); break; case ESC: // ESCAPE break; case 7: // audible bell Toolkit.getDefaultToolkit().beep(); bk.getNextByte(); bk.getNextByte(); break; case CMD_WRITE_TO_DISPLAY: // 0x11 17 write to display error = writeToDisplay(true); break; case CMD_RESTORE_SCREEN: // 0x12 18 Restore Screen case 13: // 0x13 19 Restore Partial Screen restoreScreen(); break; case CMD_CLEAR_UNIT_ALTERNATE: // 0x20 32 clear unit alternate int param = bk.getNextByte(); if (param != 0) {// System.out.println(" clear unit alternate error " + Integer.toHexString(param)); sendNegResponse(NR_REQUEST_ERROR,03,01,05, " clear unit alternate not supported"); done = true; } else { if (screen52.getRows() != 27) screen52.setRowsCols(27,132); screen52.clearAll(); } break; case CMD_WRITE_ERROR_CODE: // 0x21 33 Write Error Code writeErrorCode(); error = writeToDisplay(false); break; case CMD_WRITE_ERROR_CODE_TO_WINDOW: // 0x22 34 // Write Error Code to window writeErrorCodeToWindow(); error = writeToDisplay(false); break; case CMD_READ_SCREEN_IMMEDIATE: // 0x62 98 case CMD_READ_SCREEN_TO_PRINT: // 0x66 102 read screen to print readScreen(); break; case CMD_CLEAR_UNIT: // 64 0x40 clear unit if (screen52.getRows() != 24) screen52.setRowsCols(24,80); screen52.clearAll(); break; case CMD_CLEAR_FORMAT_TABLE: // 80 0x50 Clear format table screen52.clearTable(); break; case CMD_READ_INPUT_FIELDS: //0x42 66 read input fields case CMD_READ_MDT_FIELDS: // 0x52 82 read MDT Fields bk.getNextByte(); bk.getNextByte(); readType = b; screen52.goHome();// screen52.setCursorOn(); waitingForInput = true; pendingUnlock = true; break; case CMD_READ_MDT_IMMEDIATE_ALT: // 0x53 83 readType = b;// screen52.goHome();// waitingForInput = true;// pendingUnlock = true; readImmediate(readType); break; case CMD_WRITE_STRUCTURED_FIELD: // 243 0xF3 -13 Write structured field writeStructuredField(); break; default: done = true; sendNegResponse(NR_REQUEST_ERROR,03,01,01,"parseIncoming"); break; } if (error) done = true; } } catch (Exception exc) {System.out.println("incoming " + exc.getMessage());}; }
12,640
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming(); screen52.setKeyboardLocked(false); cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorOn(); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorOn(); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try { screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorOn(); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming(); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorOn(); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorOn(); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try { screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorOn(); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
12,643
protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCache, getFontMetrics(font), getFontData(font)); } else { r = new TTFSimpleTextRenderer(getFontData(font), font.getSize()); } log.debug("created TextRenderer for TTF"); return r; }
protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCache, getFontMetrics(font), getFontData(font)); } else { r = new TTFSimpleTextRenderer(getFontData(font), font.getSize()); } log.debug("created TextRenderer for TTF"); return r; }
12,648
protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCache, getFontMetrics(font), getFontData(font)); } else { r = new TTFSimpleTextRenderer(getFontData(font), font.getSize()); } log.debug("created TextRenderer for TTF"); return r; }
protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; r = new TTFTextRenderer(renderCache, getFontMetrics(font), getFontData(font)); } else { r = new TTFSimpleTextRenderer(getFontData(font), font.getSize()); } log.debug("created TextRenderer for TTF"); return r; }
12,649
protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCache, getFontMetrics(font), getFontData(font)); } else { r = new TTFSimpleTextRenderer(getFontData(font), font.getSize()); } log.debug("created TextRenderer for TTF"); return r; }
protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCache, getFontMetrics(font), getFontData(font)); } else { r = new TTFSimpleTextRenderer(getFontData(font), font.getSize()); } log.debug("created TextRenderer for TTF"); return r; }
12,650
public GapContent() { this(10); }
public GapContent() { this(DEFAULT_BUFSIZE); }
12,651
public Position createPosition(final int offset) throws BadLocationException { return new Position() { int off = offset; public int getOffset() { return off; } }; }
public Position createPosition(final int offset) throws BadLocationException { return new Position() { int off = offset; public int getOffset() { return off; } }; }
12,652
public Position createPosition(final int offset) throws BadLocationException { return new Position() { int off = offset; public int getOffset() { return off; } }; }
public Position createPosition(final int offset) throws BadLocationException { return new Position() { int off = offset; public int getOffset() { return off; } }; }
12,653
public int getOffset() { return off; }
public int getOffset() { return off; }
12,654
public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; }
public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; }
12,655
public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; }
public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; }
12,656
public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; }
public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; }
12,657
public String getString(int where, int len) throws BadLocationException { return buf.substring(where, where+len); }
public String getString(int where, int len) throws BadLocationException { Segment seg = new Segment(); getChars(where, len, seg); return new String(seg.array, seg.offset, seg.count); }
12,658
public UndoableEdit insertString(int where, String str) throws BadLocationException { buf.insert(where, str); return null; }
public UndoableEdit insertString(int where, String str) throws BadLocationException { buf.insert(where, str); return null; }
12,659
public int length() { return buf.length(); }
public int length() { return buffer.length - (gapEnd - gapStart); }
12,660
public UndoableEdit remove(int where, int nitems) throws BadLocationException { buf.delete(where, where + nitems); return null; }
public UndoableEdit remove(int where, int nitems) throws BadLocationException { buf.delete(where, where + nitems); return null; }
12,661
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,663
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,664
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,665
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!mod.isLeaf(next) && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,666
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,667
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,668
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!mod.isLeaf(prev) && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,669
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); Object p = getParent(mod.getRoot(), last); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,670
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!mod.isLeaf(last) && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,671
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!mod.isLeaf(last) && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,672
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,673
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,674
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(getPathToRoot(next, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(getPathToRoot(prev, 0)); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(prev, 0))); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(getPathToRoot(last, 0)); TreeNode p = last.getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(p, 0))); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!mod.isLeaf(last)) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } }
12,675
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
12,677
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
12,678
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
12,679
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicTreeUI.this.getPathBounds( BasicTreeUI.this.tree, path); bounds.x -= rightChildIndent - 4; bounds.width += rightChildIndent + 4; if (bounds.contains(click.x, click.y)) inBounds = true; else if (BasicTreeUI.this.hasControlIcons() && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) cntlClick = true; if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) { if (!cntlClick && !BasicTreeUI.this.isLeaf(row)) { Object cell = path.getLastPathComponent(); if (lastClicked != null && lastClicked.equals(cell)) clickCount = 2; else { lastClicked = cell; clickCount = 1; } } if (clickCount == 2 || cntlClick == true) { clickCount = 0; lastClicked = null; BasicTreeUI.this.tree.getSelectionModel().clearSelection(); if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, path); } } }
12,680
protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); }
protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); }
12,682
protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); }
protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); }
12,683
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, fm.getHeight()); } return new Rectangle(x, y, 0, 0); }
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, fm.getHeight()); } return new Rectangle(x, y, 0, 0); }
12,684
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
12,685
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
12,686
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
12,687
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
12,688
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
12,689
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((TreeNode) startNode)); }
12,690
public int getLevel(TreeNode node) { int count = -1; TreeNode current = node; do { current = current.getParent(); count++; } while (current != null); return count; }
int getLevel(Object node) { int count = -1; TreeNode current = node; do { current = current.getParent(); count++; } while (current != null); return count; }
12,691
public int getLevel(TreeNode node) { int count = -1; TreeNode current = node; do { current = current.getParent(); count++; } while (current != null); return count; }
public int getLevel(TreeNode node) { int count = -1; Object current = node; do { current = current.getParent(); count++; } while (current != null); return count; }
12,692
public int getLevel(TreeNode node) { int count = -1; TreeNode current = node; do { current = current.getParent(); count++; } while (current != null); return count; }
public int getLevel(TreeNode node) { int count = -1; TreeNode current = node; do { current = getParent(tree.getModel().getRoot(), current); count++; } while (current != null); return count; }
12,693
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
Object getNextNode(Object curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
12,694
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
12,695
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
12,696
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = getParent(mod.getRoot(), node); } while (sibling == null && node != null); return sibling; }
12,697
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibling; }
12,698
TreeNode getNextSibling(TreeNode node) { TreeNode parent = node.getParent(); if (parent == null) return null; int index = parent.getIndex(node) + 1; if (index == parent.getChildCount()) return null; return parent.getChildAt(index); }
Object getNextSibling(Object node) { TreeNode parent = node.getParent(); if (parent == null) return null; int index = parent.getIndex(node) + 1; if (index == parent.getChildCount()) return null; return parent.getChildAt(index); }
12,699
TreeNode getNextSibling(TreeNode node) { TreeNode parent = node.getParent(); if (parent == null) return null; int index = parent.getIndex(node) + 1; if (index == parent.getChildCount()) return null; return parent.getChildAt(index); }
TreeNode getNextSibling(TreeNode node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; int index = parent.getIndex(node) + 1; if (index == parent.getChildCount()) return null; return parent.getChildAt(index); }
12,700
TreeNode getNextSibling(TreeNode node) { TreeNode parent = node.getParent(); if (parent == null) return null; int index = parent.getIndex(node) + 1; if (index == parent.getChildCount()) return null; return parent.getChildAt(index); }
TreeNode getNextSibling(TreeNode node) { TreeNode parent = node.getParent(); if (parent == null) return null; int index = mod.getIndexOfChild(parent, node) + 1; if (index == parent.getChildCount()) return null; return parent.getChildAt(index); }
12,701