rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
while (iter.getIndex() >= iter.getBeginIndex()) { | int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { | public int previous() { if (iter.getIndex() == iter.getBeginIndex()) return DONE; //int start = iter.getBeginIndex(); while (iter.getIndex() >= iter.getBeginIndex()) { char c = iter.previous(); if (c == CharacterIterator.DONE) break; int type = Character.getType(c); if (type != Character.NON_SPACING_MA... |
else { Component comp = comboBox.getEditor().getEditorComponent(); Dimension prefSize = comp.getPreferredSize(); int width = prefSize.width; int height = prefSize.height + 2; Object prototype = comboBox.getPrototypeDisplayValue(); if (prototype != null) { FontMetrics fm = comboBox.getFontMetrics(comboBox.getFont()); wi... | protected Dimension getDisplaySize() { Object prototype = comboBox.getPrototypeDisplayValue(); if (prototype != null) { // calculate result based on prototype ListCellRenderer renderer = comboBox.getRenderer(); Component comp = renderer.getListCellRendererComponent(listBox, ... | |
comboBox.setEditor(createEditor()); editor = comboBox.getEditor().getEditorComponent(); | currentEditor = createEditor(); comboBox.setEditor(currentEditor); | protected void installComponents() { // create drop down list of items popup = createPopup(); listBox = popup.getList(); // set editor and renderer for the combo box. Editor is used // only if combo box becomes editable, otherwise renderer is used // to paint the selected item; combobox is not edit... |
editor = currentEditor.getEditorComponent(); | protected void installComponents() { // create drop down list of items popup = createPopup(); listBox = popup.getList(); // set editor and renderer for the combo box. Editor is used // only if combo box becomes editable, otherwise renderer is used // to paint the selected item; combobox is not edit... | |
JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextField subt = new JTextField(30); JLabel fnl = new JLabel(LangTool.getString("em.fileName")); JTe... | if (!isEMailAvailable()) { | public SendEMailDialog(Frame parent, Screen5250 screen ) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextFiel... |
Object[] message = new Object[1]; message[0] = semp; String[] options = {LangTool.getString("em.optSendLabel"), LangTool.getString("em.optCancelLabel"), LangTool.getString("em.optConfigureLabel")}; | JOptionPane.showMessageDialog(parent, "The Java E-Mail API can not be found or is not installed\n" + "Please read e-mail.txt file for installation instructions." ,"Error", JOptionPane.ERROR_MESSAGE,null); | public SendEMailDialog(Frame parent, Screen5250 screen ) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextFiel... |
int result = 0; while (result == 0 || result == 2) { result = JOptionPane.showOptionDialog( parent, message, LangTool.getString("em.title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0] ); | } else { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextField subt = new JTextField(30); JLabel fnl = new JLabel(LangTool.getString("em.fileNam... | public SendEMailDialog(Frame parent, Screen5250 screen ) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextFiel... |
switch(result) { case 0: SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo(tot.getText()); sem.setSubject(subt.getText()); if (fnt.getText().length() > 0) sem.setFileName(fnt.getText()); | Object[] message = new Object[1]; message[0] = semp; String[] options = {LangTool.getString("em.optSendLabel"), LangTool.getString("em.optCancelLabel"), LangTool.getString("em.optConfigureLabel")}; | public SendEMailDialog(Frame parent, Screen5250 screen ) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextFiel... |
StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++,col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; | int result = 0; while (result == 0 || result == 2) { result = JOptionPane.showOptionDialog( parent, message, LangTool.getString("em.title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0] ); switch(result) { case 0: SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties... | public SendEMailDialog(Frame parent, Screen5250 screen ) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextFiel... |
} | public SendEMailDialog(Frame parent, Screen5250 screen ) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextFiel... | |
break; case 1: break; case 2: SMTPConfig smtp = new SMTPConfig(parent,"",true); smtp.setVisible(true); smtp.dispose(); break; default: break; | break; case 1: break; case 2: SMTPConfig smtp = new SMTPConfig(parent,"",true); smtp.setVisible(true); smtp.dispose(); break; default: break; } | public SendEMailDialog(Frame parent, Screen5250 screen ) { JPanel semp = new JPanel(); semp.setLayout(new AlignLayout(2,5,5)); JLabel tol = new JLabel(LangTool.getString("em.to")); JTextField tot = new JTextField(30); JLabel subl = new JLabel(LangTool.getString("em.subject")); JTextFiel... |
if (index >= 0) | public void mouseReleased(MouseEvent anEvent) { int index = list.locationToIndex(anEvent.getPoint()); comboBox.setSelectedIndex(index); hide(); } | |
int index = list.locationToIndex(anEvent.getPoint()); list.setSelectedIndex(index); list.repaint(); | updateListBoxSelectionForEvent(anEvent, false); | public void mouseMoved(MouseEvent anEvent) { // Highlight list cells over which the mouse is located. // This changes list model, but has no effect on combo box's data model int index = list.locationToIndex(anEvent.getPoint()); list.setSelectedIndex(index); list.repaint(); } |
int index = list.locationToIndex(anEvent.getPoint()); if (index >= 0) list.setSelectedIndex(index); | protected void updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll) { // FIXME: Need to implement } | |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | public final void cancelInvite() { screen52.setStatus(Screen5250.STATUS_SYSTEM, Screen5250.STATUS_VALUE_ON,null); // from rfc1205 section 4.3 // Server: Sends header with the 000A12A0 00000400 000AFFEF // Opcode = Cancel Invite. // Client: sends header with the 000A12A0 000... |
System.out.println("Closing socket"); | log.info("Closing socket"); | public final boolean disconnect() { if (me != null && me.isAlive()) { me.interrupt(); keepTrucking = false; pthread.interrupt(); } screen52.setStatus(Screen5250.STATUS_SYSTEM, Screen5250.STATUS_VALUE_ON,"X - Disconnected"); screen52.setKeyboardLocked(false); pendingUn... |
System.out.println(exception.getMessage()); | log.warn(exception.getMessage()); | public final boolean disconnect() { if (me != null && me.isAlive()) { me.interrupt(); keepTrucking = false; pthread.interrupt(); } screen52.setStatus(Screen5250.STATUS_SYSTEM, Screen5250.STATUS_VALUE_ON,"X - Disconnected"); screen52.setKeyboardLocked(false); pendingUn... |
System.out.println(" Pending unlock " + pendingUnlock); System.out.println(" Status Error " + screen52.isStatusErrorCode()); System.out.println(" Keyboard Locked " + screen52.isKeyboardLocked()); System.out.println(" Cursor On " + cursorOn); System.out.println(" Cursor Active " + screen52.cursorActive); | if(log.isDebugEnabled()) { log.debug(" Pending unlock " + pendingUnlock); log.debug(" Status Error " + screen52.isStatusErrorCode()); log.debug(" Keyboard Locked " + screen52.isKeyboardLocked()); log.debug(" Cursor On " + cursorOn); log.debug(" Cursor Active " + screen52.cursorActive); } | public void dumpStuff() { System.out.println(" Pending unlock " + pendingUnlock); System.out.println(" Status Error " + screen52.isStatusErrorCode()); System.out.println(" Keyboard Locked " + screen52.isKeyboardLocked()); System.out.println(" Cursor On " + cursorOn); System.out.println(" Cur... |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | public final void hostPrint(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(Screen5250.STATUS_ERROR_CODE, Screen5250.STATUS_VALUE_OFF,null); } screen52.setCursorActive(false); screen52.setStatus(Screen5250.STATUS_SYSTEM, Screen5250.ST... |
log.debug("save screen partial"); | 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:... | |
log.debug("restore screen partial"); | 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:... | |
log.debug(" clear unit alternate error " + Integer.toHexString(param)); | 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:... | |
catch (Exception exc) {System.out.println("incoming " + exc.getMessage());}; | catch (Exception exc) {log.warn("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:... |
log.debug(" Control byte0 " + Integer.toBinaryString(byte0 & 0xff)); | private void processCC0 (byte byte0) {// System.out.println(" Control byte0 " + Integer.toBinaryString(byte0 & 0xff)); boolean lockKeyboard = true; boolean resetMDT=false; boolean resetMDTAll = false; boolean nullMDT = false; boolean nullAll = false; // Bits 3 to 6 are reserved and... | |
log.debug(" Control byte1 " + Integer.toBinaryString(byte1 & 0xff)); | private void processCC1 (byte byte1) {// System.out.println(" Control byte1 " + Integer.toBinaryString(byte1 & 0xff)); if ((byte1 & 0x04) == 0x04) { Toolkit.getDefaultToolkit().beep(); } if ((byte1 & 0x02) == 0x02) { screen52.setMessageLightOff(); } if ((byte1 & 0x01) ==... | |
log.debug(" WTD position no move"); | private void processCC1 (byte byte1) {// System.out.println(" Control byte1 " + Integer.toBinaryString(byte1 & 0xff)); if ((byte1 & 0x04) == 0x04) { Toolkit.getDefaultToolkit().beep(); } if ((byte1 & 0x02) == 0x02) { screen52.setMessageLightOff(); } if ((byte1 & 0x01) ==... | |
log.debug(" WTD position move to home" + screen52.homePos + " row " + screen52.getRow(screen52.homePos) + " col " + screen52.getCol(screen52.homePos) ); | private void processCC1 (byte byte1) {// System.out.println(" Control byte1 " + Integer.toBinaryString(byte1 & 0xff)); if ((byte1 & 0x04) == 0x04) { Toolkit.getDefaultToolkit().beep(); } if ((byte1 & 0x02) == 0x02) { screen52.setMessageLightOff(); } if ((byte1 & 0x01) ==... | |
log.debug(" byte 0 " + l); | private boolean processSOH() throws Exception { int l = bk.getNextByte(); // length// System.out.println(" byte 0 " + l); if (l > 0 && l <= 7) { bk.getNextByte(); // flag byte 2 bk.getNextByte(); // reserved bk.getNextByte(); // resequence fields screen52.clearTable();... | |
if(log.isDebugEnabled()) { if (l >= 5) log.debug(" byte 5 " + Integer.toBinaryString(bk.getNextByte())); if (l >= 6) log.debug(" byte 6 " + Integer.toBinaryString(bk.getNextByte())); if (l == 7) log.debug(" byte 7 " + Integer.toBinaryString(bk.getNextByte())); } | private boolean processSOH() throws Exception { int l = bk.getNextByte(); // length// System.out.println(" byte 0 " + l); if (l > 0 && l <= 7) { bk.getNextByte(); // flag byte 2 bk.getNextByte(); // reserved bk.getNextByte(); // resequence fields screen52.clearTable();... | |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | private final void readImmediate(int readType) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(Screen5250.STATUS_ERROR_CODE, Screen5250.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorActive(false); } screen52.setS... |
log.debug("Restore "); | public final void restoreScreen() throws IOException { int which = 0; try {// System.out.println("Restore "); bk.getNextByte(); bk.getNextByte(); int rows = bk.getNextByte() & 0xff; int cols = bk.getNextByte() & 0xff; int pos = bk.getNextByte() << 8 ... | |
log.debug("number of fields " + numFields); | public final void restoreScreen() throws IOException { int which = 0; try {// System.out.println("Restore "); bk.getNextByte(); bk.getNextByte(); int rows = bk.getNextByte() & 0xff; int cols = bk.getNextByte() & 0xff; int pos = bk.getNextByte() << 8 ... | |
x++; | if(log.isDebugEnabled()) { log.debug("/nRestored "); log.debug(sf.toString()); } x++; | public final void restoreScreen() throws IOException { int which = 0; try {// System.out.println("Restore "); bk.getNextByte(); bk.getNextByte(); int rows = bk.getNextByte() & 0xff; int cols = bk.getNextByte() & 0xff; int pos = bk.getNextByte() << 8 ... |
System.out.println("error restoring screen " + which + " with " + e.getMessage()); | log.warn("error restoring screen " + which + " with " + e.getMessage()); | public final void restoreScreen() throws IOException { int which = 0; try {// System.out.println("Restore "); bk.getNextByte(); bk.getNextByte(); int rows = bk.getNextByte() & 0xff; int cols = bk.getNextByte() & 0xff; int pos = bk.getNextByte() << 8 ... |
System.out.println(" vt thread interrupted and stopping "); | log.warn(" vt thread interrupted and stopping "); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... |
log.debug("No operation"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Invite Operation"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Output Only"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Put/Get Operation"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Save Screen Operation"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Restore Screen Operation"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Read Immediate"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Reserved"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Read Screen Operation"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.warn(ex.getMessage()); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Cancel Invite Operation"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Turn on message light"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("Turn off Message light"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
log.debug("update dirty"); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... | |
System.out.println(" tnvt.run: " + exd.getMessage()); | log.warn(" tnvt.run: " + exd.getMessage()); | public void run () { if (enhanced) sfParser = new WTDSFParser(this); while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = fal... |
log.debug("Saved "); log.debug(sf.toString()); | public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte)screen52.getRows()); // store the current size sc.write((byte)screen52.ge... | |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte)screen52.getRows()); // store the current size sc.write((byte)screen52.ge... |
log.debug("Save Screen end "); | public final void saveScreen() throws IOException { ByteArrayOutputStream sc = new ByteArrayOutputStream(); sc.write(4); sc.write(0x12); // 18 sc.write(0); // 18 sc.write(0); // 18 sc.write((byte)screen52.getRows()); // store the current size sc.write((byte)screen52.ge... | |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | public final boolean sendAidKey(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(Screen5250.STATUS_ERROR_CODE, Screen5250.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorActive(false); } screen52.setStatus(... |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | public final void sendAttentionKey() { // Client sends header 000A12A000004400000FFEF // 0x40 -> 01000000 // // flags // bit 0 - ERR // bit 1 - ATN Attention // bits 2-4 - reserved // bit 5 - SRQ system request // bit 6 - TRQ Test request key // bit 7... |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | public final void sendHelpRequest() { // Client sends header 000D12A0000004000003####F3FFEF // operation code 3 // row - first ## // column - second ## // F3 - Help Aid Key// System.out.println("Help request sent"); baosp.write(screen52.getCurrentR... |
System.out.println("Send Negative Response error " + e.getMessage()); | log.warn("Send Negative Response error " + e.getMessage()); | protected void sendNegResponse(int cat, int modifier , int uByte1, int uByte2, String from) { try { int os = bk.getByteOffset(-1) & 0xf0; int cp = (bk.getCurrentPos()-1); System.out.println("invalid " + from + " command " + os + "... |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | protected void sendNegResponse(int cat, int modifier , int uByte1, int uByte2, String from) { try { int os = bk.getByteOffset(-1) & 0xf0; int cp = (bk.getCurrentPos()-1); System.out.println("invalid " + from + " command " + os + "... |
System.out.println(ioe.getMessage()); | log.warn(ioe.getMessage()); | public void sendNegResponse2(int ec) { screen52.setPrehelpState(true,true,false); baosp.write(0x00); baosp.write(ec); try { writeGDS(1, 0, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); } baosp.reset(); } |
System.out.println("sending query response"); | log.info("sending query response"); | public final void sendQueryResponse() throws IOException { System.out.println("sending query response"); byte abyte0[] = new byte[64]; abyte0[0] = 0; // Cursor Row/column (set to zero) abyte0[1] = 0; // "" abyte0[2] = -120; // X'88' inbound write structure Fi... |
System.out.println("enhanced options"); | log.info("enhanced options"); | public final void sendQueryResponse() throws IOException { System.out.println("sending query response"); byte abyte0[] = new byte[64]; abyte0[0] = 0; // Cursor Row/column (set to zero) abyte0[1] = 0; // "" abyte0[2] = -120; // X'88' inbound write structure Fi... |
log.debug("invited"); | private final void setInvited() {// System.out.println("invited"); if (!screen52.isStatusErrorCode()) screen52.setStatus(Screen5250.STATUS_SYSTEM, Screen5250.STATUS_VALUE_OFF,null); invited = true; } | |
System.out.println(" socks set "); | log.info(" socks set "); | public final void setProxy(String proxyHost, String proxyPort) { this.proxyHost=proxyHost; this.proxyPort = proxyPort; proxySet = true; Properties systemProperties = System.getProperties(); systemProperties.put("socksProxySet","true"); systemProperties.put("socksProxyHost",proxyHost); ... |
System.out.println("invalid structured field sub command " + bk.getByteOffset(-1)); | log.debug("invalid structured field sub command " + bk.getByteOffset(-1)); | private void writeStructuredField() { boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (bk.hasNext() && !done) { switch (bk.getNextByte()) { case -39: // SOH - Start of Header Order ... |
System.out.println("invalid structured field command " + bk.getByteOffset(-1)); | log.debug("invalid structured field command " + bk.getByteOffset(-1)); | private void writeStructuredField() { boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (bk.hasNext() && !done) { switch (bk.getNextByte()) { case -39: // SOH - Start of Header Order ... |
log.debug("SOH - Start of Header Order"); | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | |
log.debug("RA - Repeat to address"); | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | |
log.debug(" IC " + icX + " " + icY); | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | |
log.debug(" MC " + imcX + " " + imcY); | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | |
System.out.println("write to display " + e.getMessage()); | log.warn("write to display " + e.getMessage()); | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... |
Thread.currentThread().sleep(100); | Thread.sleep(100); | public void connect() { failIfConnected(); if (!isSignificant(this.user)) { connectSimple(); } else { if (this.embeddedSignon) connectEmbedded(); else connectSimulated(); Runnable runnable = new Runnable() { int tryConnection; public void run() ... |
Thread.currentThread().sleep(100); | Thread.sleep(100); | public void run() { if ((tryConnection++ < 30) && //If it is still not connected after 3 seconds, //stop with trying (isConnected() == false)) { try { Thread.currentThread().sleep(100); ... |
this.setPreferredSize(this.deriveOptimalSize(this, this.getFont(), 80, 24)); | this.setPreferredSize(SessionBean.deriveOptimalSize(this, this.getFont(), 80, 24)); | public Dimension getPreferredSize() { if (preferredSize == null) this.setPreferredSize(this.deriveOptimalSize(this, this.getFont(), 80, 24)); return super.getPreferredSize(); } |
public void readFromLBN(int startLBN,long offset, byte[] buffer, int bufferOffset , int length) throws IOException { api.read((startLBN * ISO9660FileSystem.DefaultLBNSize) + offset,buffer,bufferOffset,length); } | public void readFromLBN(long startLBN, long offset, byte[] buffer, int bufferOffset, int length) throws IOException { api.read((startLBN * ISO9660FileSystem.DefaultLBNSize) + offset, buffer, bufferOffset, length); } | public void readFromLBN(int startLBN,long offset, byte[] buffer, int bufferOffset , int length) throws IOException { api.read((startLBN * ISO9660FileSystem.DefaultLBNSize) + offset,buffer,bufferOffset,length); } |
public AccessibleJFrame() | protected AccessibleJFrame() | public AccessibleJFrame() { super(); // Nothing to do here. } |
if (isDefaultLookAndFeelDecorated() && UIManager.getLookAndFeel().getSupportsWindowDecorations()) { setUndecorated(true); getRootPane().setWindowDecorationStyle(JRootPane.FRAME); } | protected void frameInit() { super.setLayout(new BorderLayout(1, 1)); enableEvents(AWTEvent.WINDOW_EVENT_MASK); getRootPane(); // will do set/create // We're now done the init stage. setRootPaneCheckingEnabled(true); } | |
{ Dimension menuBarSize; Dimension containerSize = c.getSize(null); Dimension contentPaneSize = contentPane.getPreferredSize(); /* if size of top-level window wasn't set then just set contentPane and menuBar to its preferred sizes. Otherwise, if the size of top-level window was specified then set menuBar to its prefer... | { Dimension menuBarSize; int containerWidth = c.getBounds().width - getInsets().left - getInsets().right; int containerHeight = c.getBounds().height - getInsets().top - getInsets().bottom; Dimension contentPaneSize = contentPane.getPreferredSize(); | public void layoutContainer(Container c) { Dimension menuBarSize; Dimension containerSize = c.getSize(null); Dimension contentPaneSize = contentPane.getPreferredSize(); /* if size of top-level window wasn't set then just set contentPane and menuBar to its preferr... |
+-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | ... | /* if size of top-level window wasn't set then just set contentPane and menuBar to its preferred sizes. Otherwise, if the size of top-level window was specified then set menuBar to its preferred size and make content pane to fit into the remaining space | public void layoutContainer(Container c) { Dimension menuBarSize; Dimension containerSize = c.getSize(null); Dimension contentPaneSize = contentPane.getPreferredSize(); /* if size of top-level window wasn't set then just set contentPane and menuBar to its preferr... |
*/ if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != null) { int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); menuBar.setBounds(0, 0, maxWidth, menuBarSize.height); glassPane.setBounds(0, menuBarSize.height, maxWidth, conten... | public void layoutContainer(Container c) { Dimension menuBarSize; Dimension containerSize = c.getSize(null); Dimension contentPaneSize = contentPane.getPreferredSize(); /* if size of top-level window wasn't set then just set contentPane and menuBar to its preferr... | |
layeredPane.setSize(containerSize.width, containerSize.height); } } | +-------------------------------+ | JLayeredPane | | +--------------------------+ | | | menuBar | | | +--------------------------+ | | +--------------------------+ | | |contentPane | | | | | | | | | | | | ... | public void layoutContainer(Container c) { Dimension menuBarSize; Dimension containerSize = c.getSize(null); Dimension contentPaneSize = contentPane.getPreferredSize(); /* if size of top-level window wasn't set then just set contentPane and menuBar to its preferr... |
{ setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); } | { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); updateUI(); } | public JRootPane() { setLayout(createRootLayout()); getGlassPane(); getLayeredPane(); getContentPane(); setDoubleBuffered(true); updateUI(); } |
p.setLayout(new BorderLayout()); p.setVisible(false); | p.setVisible(false); | protected Component createGlassPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".glassPane"); p.setLayout(new BorderLayout()); p.setVisible(false); p.setOpaque(false); return p; } |
{ contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); } | { if (p == null) throw new IllegalComponentStateException ("cannot " + "have a null content pane"); else { if (contentPane != null && contentPane.getParent() == layeredPane) layeredPane.remove(contentPane); contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); } } | public void setContentPane(Container p) { contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); } |
public VmCompiledCode( NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler.getMagic(); this.bytecode = bytecode; this.native... | public VmCompiledCode(NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler.getMagic(); this.bytecode = bytecode; this.nativeC... | public VmCompiledCode( NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.magic = compiler.getMagic(); this.bytecod... |
bad.minor = Minor.Any; | public static ServantNotActive extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (ServantNotActive) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("ServantNotActive expected")... | |
throw new BAD_OPERATION(); | BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; | public static CannotProceed extract(Any a) { try { return ((CannotProceedHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } } |
String note, int minimum, int maximum) { this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; | String note, int minimum, int maximum) { | public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor() |
} | this.component = component; this.message = message; this.note = note; min = minimum; max = maximum; } | public ProgressMonitor(Component component, Object message, String note, int minimum, int maximum) { // Set Data this.component = component; this.message = message; this.note = note; this.minimum = minimum; this.maximum = maximum; // TODO } // ProgressMonitor() |
public void close() { } | public void close() { if ( progressDialog != null ) { progressDialog.setVisible(false); } if ( timer != null ) { timer.stop(); timer = null; } } | public void close() { // TODO } // close() |
public int getMaximum() { return maximum; } | public int getMaximum() { return max; } | public int getMaximum() { return maximum; // TODO } // getMaximum() |
public int getMinimum() { return minimum; } | public int getMinimum() { return min; } | public int getMinimum() { return minimum; // TODO } // getMinimum() |
public boolean isCanceled() { return false; } | public boolean isCanceled() { return canceled; } | public boolean isCanceled() { return false; // TODO } // isCanceled() |
public void setMaximum(int maximum) { this.maximum = maximum; } | public void setMaximum(int maximum) { max = maximum; } | public void setMaximum(int maximum) { this.maximum = maximum; // TODO } // setMaximum() |
public void setMinimum(int minimum) { this.minimum = minimum; } | public void setMinimum(int minimum) { min = minimum; } | public void setMinimum(int minimum) { this.minimum = minimum; // TODO } // setMinimum() |
public void setNote(String note) { this.note = note; } | public void setNote(String note) { if ( noteLabel != null ) { noteLabel.setText(note); } else { this.note = note; } } | public void setNote(String note) { this.note = note; // TODO } // setNote() |
public void setProgress(int progress) { } | public void setProgress(int progress) { this.progress = progress; if ( timer == null && progressDialog == null ) { timer = new Timer(25, null); timer.addActionListener(new TimerListener()); timer.start(); } if ( progressBar != null && this.progress >= progressBar.getMaximum() ) { close(); } } | public void setProgress(int progress) { // TODO } // setProgress() |
public CharHolder(char initial_value) | public CharHolder() | public CharHolder(char initial_value) { value = initial_value; } |
value = initial_value; | public CharHolder(char initial_value) { value = initial_value; } | |
public void loadPlugins(PluginRegistry piRegistry) { | public List loadPlugins(PluginRegistry piRegistry) { | public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try... |
return; | return null; | public void loadPlugins(PluginRegistry piRegistry) { if (jarFile == null) { return; } final InitJarPluginLoader loader = new InitJarPluginLoader(); for (Enumeration e = jarFile.entries(); e.hasMoreElements();) { final JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".jar")) { try... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.