bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,219 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,220 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,221 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,222 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,223 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,224 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,225 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,226 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,227 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa... | 11,228 |
public BasicArrowButton(int direction) { super(); setBorder(buttonBorder); setDirection(direction); } | public BasicArrowButton(int direction) { super(); setDirection(direction); } | 11,229 |
public final byte[] readIncoming() throws IOException { boolean done = false; boolean negotiate = false; baosin.reset(); int j = -1; int i = 0; while(!done) { i = bin.read(); // We use the values instead of the static values IAC and EOR // because they ... | if (dumpBytes) { dump(baosin.toByteArray()); } public final byte[] readIncoming()if (dumpBytes) { dump(baosin.toByteArray()); } if (dumpBytes) { dump(baosin.toByteArray()); } throws IOException {if (dumpBytes) { dump(baosin.toByteArray()); } if (dumpBytes) { dump(baosin.toByteArray()); } boolean done = false;if (dump... | 11,230 |
public static String extract(Any an_any) { if (an_any.type().equal(type())) { an_any.type(twString); return an_any.extract_wstring(); } else throw new BAD_OPERATION("Contains not a wide string value type"); } | public static String extract(Any an_any) { if (an_any.type().equal(type())) { an_any.type(twString); return an_any.extract_wstring(); } else { BAD_OPERATION bad = new BAD_OPERATION("WString value type expected"); bad.minor = Minor.Any; throw bad; } } | 11,231 |
public void write_value(OutputStream ostream, Serializable a_string) { try { ostream.write_wstring((String) a_string); } catch (ClassCastException ex) { throw new MARSHAL("String expected"); } } | public void write_value(OutputStream ostream, Serializable a_string) { try { ostream.write_wstring((String) a_string); } catch (ClassCastException ex) { MARSHAL m = new MARSHAL("String expected"); m.minor = Minor.ClassCast; throw m; } } | 11,232 |
public UnresolvedOffset(int offset, int patchSize) { if ((patchSize != 4) && (patchSize != 8)) { throw new IllegalArgumentException("PatchSize: " + patchSize); } this.offset = offset; this.patchSize = patchSize; } | public UnresolvedOffset(int offset, int patchSize) { if ((patchSize != 4) && (patchSize != 8)) { throw new IllegalArgumentException("PatchSize: " + patchSize); } this.offset = offset; this.patchSize = patchSize; } | 11,233 |
protected void fireColumnMarginChanged() { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener) listeners[i]).columnMarginChanged(changeEvent); } | protected void fireColumnMarginChanged() { EventListener[] listeners = getListeners(TableColumnModelListener.class); if (changeEvent == null && listeners.length > 0) changeEvent = new ChangeEvent(this); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener) listeners[i]).columnMarginChange... | 11,234 |
public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } | public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } | 11,235 |
public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; ... | public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; ... | 11,236 |
public void cancelCellEditing() { if (editingComponent != null) { timer.stop(); realEditor.cancelCellEditing(); } } | public void cancelCellEditing() { if (editingComponent != null) { timer.stop(); realEditor.cancelCellEditing(); } } | 11,237 |
private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null && lastPath != null) { Object val = lastPath.getLastPathComponent(); boolean... | private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null && lastPath != null) { Object val = lastPath.getLastPathComponent(); boolean... | 11,238 |
private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null && lastPath != null) { Object val = lastPath.getLastPathComponent(); boolean... | private void configureEditingComponent(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { if (tree != null && lastPath != null) { Object val = lastPath.getLastPathComponent(); boolean... | 11,239 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); return realEditor.getTreeCellEd... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); return realEditor.getTreeCellEd... | 11,240 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); return realEditor.getTreeCellEd... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); return realEditor.getTreeCellEd... | 11,241 |
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently edita... | public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently edita... | 11,242 |
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently edita... | public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently edita... | 11,243 |
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } | private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } | 11,245 |
protected void startEditingTimer() { if (timer == null) timer = new javax.swing.Timer(1200, this); if (!timer.isRunning()) timer.start(); } | protected void startEditingTimer() { if (timer == null) timer = new javax.swing.Timer(1200, this); if (!timer.isRunning()) timer.start(); } | 11,246 |
private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } | private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } | 11,247 |
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // 1. set up information we need // our string that we will parse String valueListString = new String (buf,... | public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // 1. set up information we need // our string that we will parse String valueListString = new String (buf,... | 11,248 |
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // 1. set up information we need // our string that we will parse String valueListString = new String (buf,... | public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // 1. set up information we need // our string that we will parse String valueListString = new String (buf,... | 11,249 |
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | 11,250 |
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | 11,251 |
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | 11,252 |
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli... | 11,253 |
protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default... | protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default... | 11,254 |
protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default... | protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default... | 11,255 |
protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default... | frame.setFrameIcon(defaults.getIcon("InternalFrame.icon")); frame.setFrameIcon(defaults.getIcon("InternalFrame.icon")); protectedframe.setFrameIcon(defaults.getIcon("InternalFrame.icon")); voidframe.setFrameIcon(defaults.getIcon("InternalFrame.icon")); installDefaults()frame.setFrameIcon(defaults.getIcon("InternalFrame... | 11,256 |
public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().getGlassPane().setVisible(true); inst... | public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().getGlassPane().setVisible(true); inst... | 11,257 |
public OctetSeqHolder(byte[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public OctetSeqHolder() { value = initial_value; typecode.setLength(value.length); } | 11,259 |
public OctetSeqHolder(byte[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public OctetSeqHolder(byte[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 11,260 |
public void areaBounded(RubberBand band, int x1, int y1, int x2, int y2) { repaint(x1,y1,x2+1,y2+1);// System.out.println(" bound " + band.getEndPoint()); } | public void areaBounded(RubberBand band, int x1, int y1, int x2, int y2) { repaint(x1,y1,x2+1,y2+1);// System.out.println(" bound " + band.getEndPoint()); } | 11,261 |
private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | 11,262 |
private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | 11,263 |
private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | 11,264 |
private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | 11,265 |
private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | 11,266 |
private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow(), screen.getCurrentCol()+1, ... | private void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]"))screen.getPointFromRowCol(screen.getCurrentRow(),screen.getCurrentCol()+1,p); if (last.equals("[markright]"))screen.getPointFromRowCol(screen.getCurrentRow(),screen.getCur... | 11,267 |
private void processVTKeyTyped(KeyEvent e){ char kc = e.getKeyChar();// displayInfo(e,"Typed processed " + keyProcessed); // Hack to make german umlauts work under Linux // The problem is that these umlauts don't generate a keyPressed event // and so keyProcessed is true (even if is hasn't b... | privatevoidprocessVTKeyTyped(KeyEvente){charkc=e.getKeyChar();//displayInfo(e,"Typedprocessed"+keyProcessed);//HacktomakegermanumlautsworkunderLinux//Theproblemisthattheseumlautsdon'tgenerateakeyPressedevent//andsokeyProcessedistrue(evenifishasn'tbeenprocessed)//sowecheckifit'saletter(withorwithoutshift)andskipreturnif... | 11,269 |
private void processVTKeyTyped(KeyEvent e){ char kc = e.getKeyChar();// displayInfo(e,"Typed processed " + keyProcessed); // Hack to make german umlauts work under Linux // The problem is that these umlauts don't generate a keyPressed event // and so keyProcessed is true (even if is hasn't b... | private void processVTKeyTyped(KeyEvent e){ char kc = e.getKeyChar();// displayInfo(e,"Typed processed " + keyProcessed); // Hack to make german umlauts work under Linux // The problem is that these umlauts don't generate a keyPressed event // and so keyProcessed is true (even if is hasn't b... | 11,270 |
private void processVTKeyTyped(KeyEvent e){ char kc = e.getKeyChar();// displayInfo(e,"Typed processed " + keyProcessed); // Hack to make german umlauts work under Linux // The problem is that these umlauts don't generate a keyPressed event // and so keyProcessed is true (even if is hasn't b... | privatevoidprocessVTKeyTyped(KeyEvente){charkc=e.getKeyChar();//displayInfo(e,"Typedprocessed"+keyProcessed);//HacktomakegermanumlautsworkunderLinux//Theproblemisthattheseumlautsdon'tgenerateakeyPressedevent//andsokeyProcessedistrue(evenifishasn'tbeenprocessed)//sowecheckifit'saletter(withorwithoutshift)andskipreturnif... | 11,271 |
DatagramSocketImpl getImpl() throws SocketException { try { if (! implCreated) { impl.create(); implCreated = true; } return impl; } catch (IOException e) { throw new SocketException(e.getMessage()); } } | DatagramSocketImpl getImpl() throws SocketException { try { if (! implCreated) { impl.create(); implCreated = true; } return impl; } catch (IOException e) { throw new SocketException(e.getMessage()); } } | 11,273 |
public void mouseClicked(MouseEvent e) { // TODO: Implement this properly. } | public void mouseClicked(MouseEvent e) { // TODO: Implement this properly. } | 11,274 |
public void mouseDragged(MouseEvent e) { // TODO: Implement this properly. } | TableColumn resizeIt = header.getResizingColumn(); if (resizeIt != null && header.getResizingAllowed()) { if (timer == null) { timer = new Timer(1, new ActionListener() { public void actionPerformed(ActionEvent e) { header.getTable().doLayout(); } }); timer.setRepeats(false); timer.setCoalesce(true); } resizeIt.setP... | 11,275 |
public void mouseEntered(MouseEvent e) { // TODO: Implement this properly. } | public void mouseEntered(MouseEvent e) { // TODO: Implement this properly. } | 11,276 |
public void mouseExited(MouseEvent e) { // TODO: Implement this properly. } | if (header.getResizingColumn() != null && header.getResizingAllowed()) endResizing(); if (header.getDraggedColumn() != null && header.getReorderingAllowed()) endDragging(null); if (header.getResizingColumn() != null && header.getResizingAllowed()) endResizing(); if (header.getDraggedColumn() != null && header.getReorde... | 11,277 |
public void mouseMoved(MouseEvent e) { // TODO: Implement this properly. } | if (e.getButton() == 0 && header.getResizingAllowed()) { TableColumnModel model = header.getColumnModel(); int n = model.getColumnCount(); if (n < 2) return; boolean onBoundary = false; int x = e.getX(); int a = x - COLUMN_BOUNDARY_TOLERANCE; int b = x + COLUMN_BOUNDARY_TOLERANCE; int p = 0; Scan: for (int i = 0... | 11,278 |
public void mousePressed(MouseEvent e) { // TODO: Implement this properly. } | if (header.getResizingAllowed()) { TableColumn resizingColumn = header.getResizingColumn(); if (resizingColumn != null) { resizingColumn.setPreferredWidth(resizingColumn.getWidth()); return; } if (header.getResizingAllowed()) { TableColumn resizingColumn = header.getResizingColumn(); if (resizingColumn != null) { resiz... | 11,280 |
public void mouseReleased(MouseEvent e) { // TODO: Implement this properly. } | if (header.getResizingColumn() != null && header.getResizingAllowed()) endResizing(); if (header.getDraggedColumn() != null && header.getReorderingAllowed()) endDragging(e); if (header.getResizingColumn() != null && header.getResizingAllowed()) endResizing(); if (header.getDraggedColumn() != null && header.getReorder... | 11,282 |
public Dimension getPreferredSize(JComponent c) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && header... | public Dimension getPreferredSize(JComponent ignored) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && ... | 11,283 |
public Rectangle getInteriorRectangle (Component c, int x, int y, int width, int height) { return getInteriorRectangle (c, this, x, y, width, height); } | public Rectangle getInteriorRectangle (Component c, int x, int y, int width, int height) { return getInteriorRectangle (c, this, x, y, width, height); } | 11,288 |
public void mouseClicked(MouseEvent e) { // Don't care. } | public void mouseClicked(MouseEvent e) { // Don't care. } | 11,289 |
public void mouseEntered(MouseEvent e) { // Don't care (yet). } | public void mouseEntered(MouseEvent e) { // Don't care (yet). } | 11,290 |
public void mouseExited(MouseEvent e) { // Don't care (yet). } | public void mouseExited(MouseEvent e) { // Don't care (yet). } | 11,291 |
public void mouseMoved(MouseEvent e) { // TODO: What should be done here, if anything? } | public void mouseMoved(MouseEvent e) { // TODO: What should be done here, if anything? } | 11,292 |
public void mousePressed(MouseEvent e) { if (! toolBar.isFloatable()) return; Point ssd = e.getPoint(); Insets insets = toolBar.getInsets(); // Verify that this click occurs in the top inset. if (toolBar.getOrientation() == SwingConstants.HORIZONTAL) { if (e.getX() > insets.left... | public void mousePressed(MouseEvent e) { if (! toolBar.isFloatable()) return; Point ssd = e.getPoint(); Insets insets = toolBar.getInsets(); // Verify that this click occurs in the top inset. if (toolBar.getOrientation() == SwingConstants.HORIZONTAL) { if (e.getX() > insets.left... | 11,293 |
public void setOrientation(int o) { // FIXME: implement. } | toolBar.setOrientation(o); if (dragWindow != null) dragWindow.setOrientation(o); toolBar.setOrientation(o); if (dragWindow != null) dragWindow.setOrientation(o); toolBar.setOrientation(o); if (dragWindow != null) dragWindow.setOrientation(o); toolBar.setOrientation(o); if (dragWindow != null) dragWindow.setOrientation(... | 11,294 |
protected ToolBarFocusListener() { // FIXME: implement. } | protected ToolBarFocusListener() { // FIXME: implement. } | 11,297 |
public void focusGained(FocusEvent e) { // FIXME: implement. } | Component c = e.getComponent(); focusedCompIndex = toolBar.getComponentIndex(c); Component c = e.getComponent(); focusedCompIndex = toolBar.getComponentIndex(c); Component c = e.getComponent(); focusedCompIndex = toolBar.getComponentIndex(c); Component c = e.getComponent(); focusedCompIndex = toolBar.getComponentIndex(... | 11,298 |
public void focusLost(FocusEvent e) { // FIXME: implement. } | public void focusLost(FocusEvent e) { // FIXME: implement. } | 11,299 |
protected void dragTo(Point position, Point origin) { int loc = areaOfClick(origParent, SwingUtilities.convertPoint(toolBar, position, origParent)); if (loc != -1) { dragWindow.setBorderColor(dockingBorderColor); dragWindow.setB... | protected void dragTo(Point position, Point origin) { int loc = areaOfClick(origParent, SwingUtilities.convertPoint(toolBar, position, origParent)); if (loc != -1) { dragWindow.setBorderColor(dockingBorderColor); dragWindow.setB... | 11,300 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. } | protected void installKeyboardActions() { // FIXME: implement. } | 11,301 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. } | InputMap inputMap = (InputMap) SharedUIDefaults.get("ToolBar.ancestorInputMap"); SwingUtilities.replaceUIInputMap(toolBar, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, inputMap); SwingUtilities.replaceUIActionMap(toolBar, getActionMap()); InputMap inputMap = (InputMap) SharedUIDefaults.get("ToolBar.ancestorInputM... | 11,302 |
protected void installListeners() { dockingListener = createDockingListener(); toolBar.addMouseListener(dockingListener); toolBar.addMouseMotionListener(dockingListener); propertyListener = createPropertyListener(); toolBar.addPropertyChangeListener(propertyListener); toolBarContListener = createTo... | protected void installListeners() { dockingListener = createDockingListener(); toolBar.addMouseListener(dockingListener); toolBar.addMouseMotionListener(dockingListener); propertyListener = createPropertyListener(); toolBar.addPropertyChangeListener(propertyListener); toolBarContListener = createTo... | 11,303 |
protected void navigateFocusedComp(int direction) throws NotImplementedException { // FIXME: Implement. } | protected void navigateFocusedComp(int direction) { // FIXME: Implement. } | 11,304 |
protected void navigateFocusedComp(int direction) throws NotImplementedException { // FIXME: Implement. } | int count = toolBar.getComponentCount(); switch (direction) { case EAST: case SOUTH: if (focusedCompIndex >= 0 && focusedCompIndex < count) { int i = focusedCompIndex + 1; boolean focusRequested = false; while (i != focusedCompIndex && ! focusRequested) { if (i >= count) i = 0; Component comp = toolBar.getComponentAtI... | 11,305 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. } | protected void uninstallKeyboardActions() { // FIXME: implement. } | 11,306 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. } | SwingUtilities.replaceUIInputMap(toolBar, JComponent. WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIActionMap(toolBar, null); SwingUtilities.replaceUIInputMap(toolBar, JComponent. WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIActionMap(toolBar, null); protectedSwingUtilities.re... | 11,307 |
protected void uninstallListeners() { toolBar.removeFocusListener(toolBarFocusListener); toolBarFocusListener = null; floatFrame.removeWindowListener(windowListener); windowListener = null; toolBar.removeContainerListener(toolBarContListener); toolBarContListener = null; toolBar.removeMouseMotio... | protected void uninstallListeners() { if (toolBarFocusListener != null) { int count = toolBar.getComponentCount(); for (int i = 0; i < count; i++) toolBar.getComponent(i).removeFocusListener(toolBarFocusListener); toolBarFocusListener = null; floatFrame.removeWindowListener(windowListener); windowListene... | 11,308 |
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ... | protected void check(int kind) throws BAD_OPERATION { if (has == null) { BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; } if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && ha... | 11,311 |
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ... | protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ... | 11,312 |
protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ... | protected void check(int kind) throws BAD_OPERATION { if (has == null) throw new BAD_OPERATION("value not set"); if (xKind >= 0) { if (xKind != kind) if (!( xKind == TCKind._tk_alias && has._type().kind().value() == kind ) ... | 11,313 |
public org.omg.CORBA.Object extract_Object() { try { return ((ObjectHolder) has).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } } | public org.omg.CORBA.Object extract_Object() { try { return ((ObjectHolder) has).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } } | 11,314 |
public Serializable extract_Value() throws BAD_OPERATION { try { if (has instanceof ValueBaseHolder) return ((ValueBaseHolder) has).value; else { // Normally, ValueBase holder must be an instance of the // ValueBaseHolder. Howe... | public Serializable extract_Value() throws BAD_OPERATION { try { if (has instanceof ValueBaseHolder) return ((ValueBaseHolder) has).value; else { // Normally, ValueBase holder must be an instance of the // ValueBaseHolder. Howe... | 11,315 |
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... | public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... | 11,316 |
public void clear() { mainAttr.clear(); entries.clear(); } | public void clear() { mainAttr.clear(); entries.clear(); } | 11,318 |
public Object clone() { return new Manifest(this); } | public Object clone() { return new Manifest(this); } | 11,319 |
public boolean equals(Object o) { return (o instanceof Manifest) && (mainAttr.equals(((Manifest) o).mainAttr)) && (entries.equals(((Manifest) o).entries)); } | public boolean equals(Object o) { return (o instanceof Manifest) && (mainAttr.equals(((Manifest) o).mainAttr)) && (entries.equals(((Manifest) o).entries)); } | 11,320 |
private static String expect_header(String header, BufferedReader br) throws IOException { String s = br.readLine(); if (s == null) { throw new JarException("unexpected end of file"); } return expect_header(header, br, s); } | private static String expect_header(String header, BufferedReader br) throws IOException { String s = br.readLine(); if (s == null) { throw new JarException("unexpected end of file"); } return expect_header(header, br, s); } | 11,321 |
private static String expect_header(String header, BufferedReader br) throws IOException { String s = br.readLine(); if (s == null) { throw new JarException("unexpected end of file"); } return expect_header(header, br, s); } | private static String expect_header(String header, BufferedReader br) throws IOException { String s = br.readLine(); if (s == null) { throw new JarException("unexpected end of file"); } return expect_header(header, br, s); } | 11,322 |
public int hashCode() { return mainAttr.hashCode() ^ entries.hashCode(); } | public int hashCode() { return mainAttr.hashCode() ^ entries.hashCode(); } | 11,323 |
public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "8859_1")); read_main_section(getMainAttributes(), br); read_individual_sections(getEntries(), br); } | public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "8859_1")); read_main_section(getMainAttributes(), br); read_individual_sections(getEntries(), br); } | 11,324 |
private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try { int colon = s.indexOf(": "); String name = s.substring(0, colon); String value_start = s.substring(colon + 2); String value = read_header_value(value_start, br); attr.putValue(name, value); } catch (... | private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try { int colon = s.indexOf(": "); String name = s.substring(0, colon); String value_start = s.substring(colon + 2); String value = read_header_value(value_start, br); attr.putValue(name, value); } catch (... | 11,325 |
private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try { int colon = s.indexOf(": "); String name = s.substring(0, colon); String value_start = s.substring(colon + 2); String value = read_header_value(value_start, br); attr.putValue(name, value); } catch (... | private static void read_attribute(Attributes attr, String s, BufferedReader br) throws IOException { try { int colon = s.indexOf(": "); String name = s.substring(0, colon); String value_start = s.substring(colon + 2); String value = read_header_value(value_start, br); attr.putValue(name, value); } catch (... | 11,326 |
private static void read_attributes(Attributes attr, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { read_attribute(attr, s, br); s = br.readLine(); } } | private static void read_attributes(Attributes attr, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { read_attribute(attr, s, br); s = br.readLine(); } } | 11,327 |
private static void read_attributes(Attributes attr, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { read_attribute(attr, s, br); s = br.readLine(); } } | private static void read_attributes(Attributes attr, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { read_attribute(attr, s, br); s = br.readLine(); } } | 11,328 |
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | 11,329 |
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | 11,330 |
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | 11,331 |
private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | private static String read_header_value(String s, BufferedReader br) throws IOException { boolean try_next = true; while (try_next) { // Lets see if there is something on the next line br.mark(1); if (br.read() == ' ') { s += br.readLine(); } else { br.reset(); try_next = false; } } return s; } | 11,332 |
private static void read_individual_sections(Map entries, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { Attributes attr = read_section_name(s, br, entries); read_attributes(attr, br); s = br.readLine(); } } | private static void read_individual_sections(Map entries, BufferedReader br) throws IOException { String s = br.readLine(); while (s != null && (!s.equals(""))) { Attributes attr = read_section_name(s, br, entries); read_attributes(attr, br); s = br.readLine(); } } | 11,333 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.