bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void setAccessory(JComponent accessory) { // TODO } // setAccessory()
public void setAccessory(JComponent accessory) { // TODO } // setAccessory()
6,174
public void setApproveButtonMnemonic(int mnemonic) { // TODO } // setApproveButtonMnemonic()
public void setApproveButtonMnemonic(int mnemonic) { // TODO } // setApproveButtonMnemonic()
6,175
public void setApproveButtonText(String text) { // TODO } // setApproveButtonText()
public void setApproveButtonText(String text) { // TODO } // setApproveButtonText()
6,176
public void setApproveButtonToolTipText(String text) { // TODO } // setApproveButtonToolTipText()
public void setApproveButtonToolTipText(String text) { // TODO } // setApproveButtonToolTipText()
6,177
public void setControlButtonsAreShown(boolean value) { // TODO } // setControlButtonsAreShown()
public void setControlButtonsAreShown(boolean value) { // TODO } // setControlButtonsAreShown()
6,178
public void setCurrentDirectory(File directory) { // TODO } // setCurrentDirectory()
public void setCurrentDirectory(File directory) { // TODO } // setCurrentDirectory()
6,179
public void setDialogTitle(String title) { // TODO } // setDialogTitle()
public void setDialogTitle(String title) { // TODO } // setDialogTitle()
6,180
public void setDialogType(int type) { // TODO } // setDialogType()
public void setDialogType(int type) { // TODO } // setDialogType()
6,181
public void setFileFilter(FileFilter filter) { // TODO } // setFileFilter()
public void setFileFilter(FileFilter filter) { // TODO } // setFileFilter()
6,182
public void setFileHidingEnabled(boolean enabled) { // TODO } // setFileHidingEnabled()
public void setFileHidingEnabled(boolean enabled) { // TODO } // setFileHidingEnabled()
6,183
public void setFileSelectionMode(int mode) { // TODO } // setFileSelectionMode()
public void setFileSelectionMode(int mode) { // TODO } // setFileSelectionMode()
6,184
public void setFileSystemView(FileSystemView fsv) { // TODO } // setFileSystemView()
public void setFileSystemView(FileSystemView fsv) { // TODO } // setFileSystemView()
6,185
public void setFileView(FileView view) { // TODO } // setFileView()
public void setFileView(FileView view) { // TODO } // setFileView()
6,186
public void setMultiSelectionEnabled(boolean enabled) { // TODO } // setMultiSelectionEnabled()
public void setMultiSelectionEnabled(boolean enabled) { // TODO } // setMultiSelectionEnabled()
6,187
public void setSelectedFile(File file) { // TODO } // setSelectedFile()
public void setSelectedFile(File file) { // TODO } // setSelectedFile()
6,188
public void setSelectedFiles(File[] files) { // TODO } // setSelectedFiles()
public void setSelectedFiles(File[] files) { // TODO } // setSelectedFiles()
6,189
protected void setup(FileSystemView view) { // TODO } // setup()
protected void setup(FileSystemView view) { // TODO } // setup()
6,190
public int showDialog(Component parent, String approveButtonText) { return CANCEL_OPTION; // TODO } // showDialog()
public int showDialog(Component parent, String approveButtonText) { return CANCEL_OPTION; // TODO } // showDialog()
6,191
public int showOpenDialog(Component parent) { return CANCEL_OPTION; // TODO } // showOpenDialog()
public int showOpenDialog(Component parent) { return CANCEL_OPTION; // TODO } // showOpenDialog()
6,192
public int showSaveDialog(Component parent) { return CANCEL_OPTION; // TODO } // showSaveDialog()
public int showSaveDialog(Component parent) { return CANCEL_OPTION; // TODO } // showSaveDialog()
6,193
public void updateUI() { setUI((FileChooserUI) UIManager.get(this)); invalidate(); } // updateUI()
public void updateUI() { setUI((FileChooserUI) UIManager.get(this)); invalidate(); } // updateUI()
6,194
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...
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...
6,195
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...
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...
6,196
private void doRenameVariables(IRBasicBlock block) { System.out.println("\ndoRenameVariables block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); Operand[] refs = q.getReferencedOps(); if (refs != null) { int n = refs.length; for (int i=0; i<n; ...
private void doRenameVariables(IRBasicBlock block) { Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); Operand[] refs = q.getReferencedOps(); if (refs != null) { int n = refs.length; for (int i=0; i<n; i+=1) { SSAStack st = getStack(refs[i]); if (st !=...
6,197
private void placePhiFunctions() { System.out.println("\nplacePhiFunctions"); for (int i=0; i<bblocks.length; i+=1) { IRBasicBlock b = bblocks[i]; BootableArrayList defList = b.getDefList(); for (int j=0; j<defList.size(); j+=1) { Variable def = (Variable) defList.get(j); List df = b.getDominanceFrontier...
private void placePhiFunctions() { for (int i=0; i<bblocks.length; i+=1) { IRBasicBlock b = bblocks[i]; BootableArrayList defList = b.getDefList(); for (int j=0; j<defList.size(); j+=1) { Variable def = (Variable) defList.get(j); List df = b.getDominanceFrontier(); Iterator it = df.iterator(); whi...
6,198
private void popVariables(IRBasicBlock block) { System.out.println("\npopVariables block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof AssignQuad) { AssignQuad aq = (AssignQuad) q; SSAStack st = getStack(aq.getLHS()); st.pop()...
private void popVariables(IRBasicBlock block) { Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof AssignQuad) { AssignQuad aq = (AssignQuad) q; SSAStack st = getStack(aq.getLHS()); st.pop(); } } }
6,199
private void renameVariables(IRBasicBlock block) { System.out.println("\nrenameVariables block: " + block); doRenameVariables(block); Iterator it = block.getSuccessors().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasicBlock) it.next(); rewritePhiParams(b); } it = block.getDominatedBlocks().iterat...
private void renameVariables(IRBasicBlock block) { doRenameVariables(block); Iterator it = block.getSuccessors().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasicBlock) it.next(); rewritePhiParams(b); } it = block.getDominatedBlocks().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasi...
6,200
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q;...
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q; SSAStack st = getStack(aq.getLHS()); Variable var ...
6,201
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q;...
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q;...
6,202
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || title.charAt(index) != mnemonicKey) index = -1;...
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || (index > -1 && title.charAt(index) != mnemonicK...
6,204
void processVTKeyReleased(KeyEvent e){ displayInfo(e); if (isLinux && e.getKeyCode() == e.VK_ALT_GRAPH) { isAltGr = false; } int keycode = e.getKeyCode(); if (e.isAltDown() || e.isShiftDown() || e.isControlDown() || e.isActionKey() || keycode == Key...
void processVTKeyReleased(KeyEvent e){ displayInfo(e); if (isLinux && e.getKeyCode() == KeyEvent.VK_ALT_GRAPH) { isAltGr = false; } int keycode = e.getKeyCode(); if (e.isAltDown() || e.isShiftDown() || e.isControlDown() || e.isActionKey() || keycode...
6,205
public void addText (String text) { String currentValue = getValue(); if(currentValue == null) currentValue = new String (); // yes, this can happen currentValue.concat(text); setValue(currentValue); }
public void addText (String text) { String currentValue = getValue(); if(currentValue == null) currentValue = new String (); // yes, this can happen currentValue.concat(text); setValue(currentValue); }
6,206
public static void doEntry(Frame parent, String propKey, Properties props2) { props = props2; confTabs = new JTabbedPane(); ec = new JCheckBox(LangTool.getString("conf.labelEnhanced")); tc = new JCheckBox(LangTool.getString("conf.labelUseSystemName")); sdn = new JCheckBox(LangTool.getString(...
public static void doEntry(Frame parent, String propKey, Properties props2) { props = props2; confTabs = new JTabbedPane(); ec = new JCheckBox(LangTool.getString("conf.labelEnhanced")); tc = new JCheckBox(LangTool.getString("conf.labelUseSystemName")); sdn = new JCheckBox(LangTool.getString(...
6,207
public InvalidOpcodeException(String s) { super(s); }
public InvalidOpcodeException(String s) { super(s); }
6,208
public KeyStoreException(String msg) { super(msg); }
public KeyStoreException() { super(msg); }
6,209
public KeyStoreException(String msg) { super(msg); }
public KeyStoreException(String msg) { }
6,210
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ...
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ...
6,212
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ...
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ...
6,213
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ...
public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ...
6,214
public void setLength(long length) throws IOException { if (!canWrite()) throw new ReadOnlyFileSystemException( "FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //synchronize to the inode cache to make sure that the inod...
public void setLength(long length) throws IOException { if (!canWrite()) throw new ReadOnlyFileSystemException( "FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //synchronize to the inode cache to make sure that the inod...
6,219
public void beginValidate() { jComponent.doLayout(); }
public void beginValidate() { }
6,220
public SwingCanvasPeer(SwingToolkit toolkit, Canvas canvas) { super(toolkit, canvas, new JCanvas()); this.canvas = canvas; SwingToolkit.add(canvas, jComponent); SwingToolkit.copyAwtProperties(canvas, jComponent); }
public SwingCanvasPeer(SwingToolkit toolkit, Canvas canvas) { super(toolkit, canvas, new JCanvas()); this.canvas = canvas; SwingToolkit.add(canvas, jComponent); SwingToolkit.copyAwtProperties(canvas, jComponent); }
6,221
protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh...
protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh...
6,224
protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh...
protected Point getPopupMenuOrigin() { // The menu's screen location and size. Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); // Determine the popup's size. JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.heigh...
6,225
public AttributeSet getAttributes() { return elt.getAttributes(); }
public AttributeSet getAttributes() { return getElement().getAttributes(); }
6,226
public int getEndOffset() { return elt.getEndOffset(); }
public int getEndOffset() { return getElement().getEndOffset(); }
6,228
public int getStartOffset() { return elt.getStartOffset(); }
public int getStartOffset() { return getElement().getStartOffset(); }
6,229
public void setParent(View a) { parent = a; }
public void setParent(View parent) { parent = a; }
6,231
public void setParent(View a) { parent = a; }
public void setParent(View a) { this.parent = parent; }
6,232
public void setSize(int w, int h) { width = w; height = h; }
public void setSize(int w, int h) { width = w; height = h; }
6,233
public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); }
public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); }
6,234
public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); }
public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); }
6,236
public void sendKeys(String text) { if (text == null) { return; } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatu...
public void sendKeys(String text) { if (text == null) { return; } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatu...
6,237
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; } boolean updateField = false; boolean numericError = false; boolean updatePos = false; boolean autoEnter = false; if (!Character.isISOContro...
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; } boolean updateField = false; boolean numericError = false; boolean updatePos = false; boolean autoEnter = false; if (!Character.isISOContro...
6,238
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ...
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ...
6,239
public int getNativeFD() { NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); }
public int getNativeFD() { NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); }
6,240
protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String v...
protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String v...
6,241
protected void installDefaults(JRootPane rp) { // Is this ok? rp.setBackground(UIManager.getColor("control")); }
protected void installDefaults(JRootPane rp) { // Is this ok? }
6,242
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
6,243
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
6,244
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
6,245
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
6,246
public static Icon getHorizontalSliderThumbIcon() { return new HorizontalSliderThumbIcon(); }
public static Icon getHorizontalSliderThumbIcon() { if (horizontalSliderThumbIcon == null) horizontalSliderThumbIcon = new HorizontalSliderThumbIcon(); return horizontalSliderThumbIcon; }
6,247
public static Icon getVerticalSliderThumbIcon() { return new VerticalSliderThumbIcon(); }
public static Icon getVerticalSliderThumbIcon() { if (verticalSliderThumbIcon == null) verticalSliderThumbIcon = new VerticalSliderThumbIcon(); return verticalSliderThumbIcon; }
6,248
public void writePrivateKey(PrivateKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MA...
public void writePrivateKey(PrivateKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MA...
6,249
public void writePublicKey(PublicKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_L...
public void writePublicKey(PublicKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_L...
6,250
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo...
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo...
6,251
private void fillQueryTextArea() { queryTextArea.append(queryBuilder.getQuery()); this.hide(); this.dispose(); }
private void fillQueryTextArea() { queryTextArea.append(queryBuilder.getQuery()); this.setVisible(false); this.dispose(); }
6,252
protected StyleSheet getStyleSheet() { // FIXME: Not implemented properly. return new StyleSheet(); }
protected StyleSheet getStyleSheet() { // FIXME: Not implemented properly. StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet; }
6,253
public void installUI(JComponent c) { if (c instanceof JTerminal) { this.terminal = (JTerminal)c; boolean graphicsDebugMode = false; if (graphicsDebugMode) { javax.swing.RepaintManager repaintManager = javax.swing.RepaintManager.currentManager(terminal); repaintManager.setDoub...
public void installUI(JComponent c) { if (c instanceof JTerminal) { this.terminal = (JTerminal)c; if (graphicsDebugMode) { javax.swing.RepaintManager repaintManager = javax.swing.RepaintManager.currentManager(terminal); repaintManager.setDoubleBufferingEnabled(false); ...
6,254
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writ...
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writ...
6,255
protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen ...
protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen ...
6,256
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
6,258
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
6,259
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
6,260
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
6,261
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
6,262
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
6,263
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
6,264
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
6,265
public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(BlockDeviceAPI.class, this); }
public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(FSBlockDeviceAPI.class, this); }
6,266
public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < ...
public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < ...
6,267
public Offset add (Extent byteSize) { return null; }
public Offset add (int byteSize) { return null; }
6,269
public Gui5250Frame(My5250 m) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
public Gui5250Frame(My5250 m, int seq) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
6,270
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.setTitle("tn5250j - 0.5.2"); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestF...
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); String release = "0"; String version = ".5"; String subVer= ".2b"; if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + release + version + subVer); else setTitle("tn5250j - " + release + version + subVer); ...
6,272
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
6,274
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
6,275
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
6,276
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
6,277
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
6,278
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
6,279
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
6,280
private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch...
private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch...
6,281
private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1]....
private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1]....
6,283
public void removeSessionView(Session targetSession) { JInternalFrame[] frames = desktop.getAllFrames(); }
public void removeSessionView(Session targetSession) { MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpL...
6,284
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
6,285
public Object clone() { return new LineSegment(P1, P2); }
public Object clone() { LineSegment segment = null; try { segment = (LineSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment; }
6,287
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
protected Object readResolve() throws InvalidObjectException { if (getName().equals(READING.getName())) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can...
6,288
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (getName().equals(LANGUAGE.getName())) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can...
6,289
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (getName().equals(INPUT_METHOD_SEGMENT.getName())) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can...
6,290