bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
19,921
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
public void set(int index, byte[] src, int srcOffset, int length) { if (index >= size) { // Index is beyond my data if (next != null) { next.set(index - size, src, srcOffset, length); } else { throw new IndexOutOfBoundsException("at index " + index); } } else if (index + length <= size) { // All byte...
19,922
public static final IRandom getInstance(String prng) { if (prng == null) { return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); } return result; }
public static final IRandom getInstance(String prng) if (prng == null) return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) result = new MDGenerator(); } return result; }
19,923
public static final IRandom getInstance(String prng) { if (prng == null) { return null; } prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); } return result; }
public static final IRandom getInstance(String prng) { if (prng == null) { return null; prng = prng.trim(); IRandom result = null; if (prng.equalsIgnoreCase(MD_PRNG)) { result = new MDGenerator(); return result;
19,924
public CombinedClassLoader(Collection a_loaders) { ArrayList sLoaders = new ArrayList(a_loaders.size()); Iterator iter = a_loaders.iterator(); Object cl; while (iter.hasNext()) { cl = iter.next(); if (!sLoaders.contains(cl)) sLoaders.add(iter.next()); } loaders...
public CombinedClassLoader(Collection a_loaders) { ArrayList sLoaders = new ArrayList(a_loaders.size()); Iterator iter = a_loaders.iterator(); Object cl; while (iter.hasNext()) { cl = iter.next(); if (!sLoaders.contains(cl)) sLoaders.add(cl); } loaders = new Cl...
19,925
public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint())); }
public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. if (!(event.getButton() == MouseEvent.BUTTON1)) return; setDot(textComponent.viewToModel(event.getPoint())); }
19,930
public void paint(Graphics g) { if (textComponent == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. return; } if (rect == nul...
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. retu...
19,933
protected final void repaint() { textComponent.repaint(this); }
protected final void repaint() { getComponent().repaint(x, y, width, height); }
19,937
public void setVisible(boolean v) { if (v != visible) { visible = v; repaint(); } }
public void setVisible(boolean v) { if (v != visible) { visible = v; if (visible) if (textComponent.isEnabled() && textComponent.isEditable()) { if (blinkTimer == null) initBlinkTimer(); blinkTimer.start(); } else { if (blinkTimer != null) blinkTimer.stop(); } Rectangle area = null; try { area = getCom...
19,940
public void serviceAvailable(BeanContextServiceAvailableEvent event);
void serviceAvailable(BeanContextServiceAvailableEvent event);
19,941
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ...
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ...
19,942
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ...
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ...
19,943
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } }
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } }
19,944
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } }
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } }
19,945
private int makeColor(byte a, byte r, byte g, byte b) { return (0xff000000 & (a << 24) | 0xff0000 & (r << 16) | 0xff00 & (b << 8) | 0xff & g); }
private int makeColor(byte a, byte r, byte g, byte b) { return (0xff000000 & (a << 24) | 0xff0000 & (r << 16) | 0xff00 & (b << 8) | 0xff & g); }
19,946
private int makeColorbyDefaultCM(int rgb) { return makeColor(origmodel.getRed(rgb), origmodel.getGreen(rgb), origmodel.getGreen(rgb), origmodel.getBlue(rgb)); }
private int makeColorbyDefaultCM(int rgb) { return makeColor(origmodel.getRed(rgb), origmodel.getGreen(rgb), origmodel.getGreen(rgb), origmodel.getBlue(rgb)); }
19,947
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,...
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,...
19,948
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,...
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,...
19,949
protected String getPropertyPrefix() { return null; }
protected String getPropertyPrefix() { return "CheckBoxMenuItem"; }
19,950
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (Configuration.DEBUG) log.fine("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncoding...
19,951
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,952
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,953
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,954
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,955
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,956
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,957
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,958
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,960
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,961
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,962
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,963
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,964
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve...
19,965
public final Class getCategory() { return Finishings.class; }
public Class getCategory() { return Finishings.class; }
19,966
public final String getName() { return "finishings"; }
public String getName() { return "finishings"; }
19,967
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
19,968
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte...
19,969
public void setDimensions(int width, int height) { consumer.setDimensions(width, height); }
public void setDimensions(int width, int height) { srcWidth = width; srcHeight = height; if (destWidth < 0 && destHeight < 0) { destWidth = width; destHeight = height; } else if (destWidth < 0) { destWidth = (int) (width * ((double) destHeight / srcHeight)); } else if (destHeight < 0) { destHeight = (int) (hei...
19,970
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { consumer.setPixels(x, y, w, h, model, pixels, offset, scansize); }
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { double rx = ((double) srcWidth) / destWidth; double ry = ((double) srcHeight) / destHeight; int destScansize = (int) Math.round(scansize / rx); byte[] destPixels = replicatePixels(x, y, w, h, mode...
19,971
private int writeParents() throws IOException { int parents; String path = prefs.absolutePath(); int lastslash = path.lastIndexOf("/"); if (lastslash > 0) { path = path.substring(1, lastslash); StringTokenizer st = new StringTokenizer(path); parents = st....
private int writeParents() throws IOException { int parents; String path = prefs.absolutePath(); int lastslash = path.lastIndexOf("/"); if (lastslash > 0) { path = path.substring(1, lastslash); StringTokenizer st = new StringTokenizer(path); parents = st....
19,973
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
19,975
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1 + profiles.size()); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the...
19,976
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
19,977
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
19,978
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ...
19,979
public String toString() { StringBuffer b = new StringBuffer(); b.append(Id); b.append(" at "); b.append(Internet); if (!Big_Endian) b.append(" (Little endian) "); b.append(" Key "); for (int i = 0; i < key.length; i++) { b.append(Integer.toHexString(key [ i ] & 0xFF)); } ...
public String toString() { StringBuffer b = new StringBuffer(); b.append(Id); b.append(" at "); b.append(Internet); if (!Big_Endian) b.append(" (Little endian) "); b.append(" Key "); for (int i = 0; i < key.length; i++) { b.append(Integer.toHexString(key [ i ] & 0xFF)); } ...
19,980
public boolean isFocusTraversable() { return false; }
public boolean isFocusTraversable() { return !comboBox.isEditable() && comboBox.isEnabled(); }
19,981
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
19,982
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
19,983
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
19,984
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
19,985
public boolean equals(DataFlavor flavor) { if (flavor == null) return false; if (! this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return false; if (! this.representationClass.equals(flavor.representationClass)) return false; return true; }
public boolean equals(DataFlavor flavor) { if (flavor == null) return false; String primary = getPrimaryType(); if (! primary.equals(flavor.getPrimaryType())) return false; String sub = getSubType(); if (! sub.equals(flavor.getSubType())) return false; if (! this.representationClass.equals(flavor.r...
19,986
private static String getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else re...
private static String getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(";"); if (idx == -1) return(value); else re...
19,988
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
19,989
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return getRepresentationClass...
19,990
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
19,991
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
19,992
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna...
19,993
public boolean isFlavorJavaFileListType() { if (mimeType.equals(javaFileListFlavor.mimeType) && representationClass.equals(javaFileListFlavor.representationClass)) return true; return false ; }
public boolean isFlavorJavaFileListType() { if (mimeType.equals(javaFileListFlavor.mimeType) && representationClass.equals(javaFileListFlavor.representationClass)) return true; return false ; }
19,994
public boolean isRepresentationClassInputStream() { return representationClass.getName().equals("java.io.InputStream"); }
public boolean isRepresentationClassInputStream() { return InputStream.class.isAssignableFrom(representationClass); }
19,995
public boolean isRepresentationClassSerializable() { Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return true; ++i; } return false; }
public boolean isRepresentationClassSerializable() { Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return true; ++i; } return false; }
19,996
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map vmFiles = scanJavaFiles(vmDirs); final Map classpathFiles = scanJavaFiles(classpathDirs); final TreeSet allFiles = new TreeSet(); final TreeM...
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map vmFiles = scanJavaFiles(vmDirs); final Map classpathFiles = scanJavaFiles(classpathDirs); final TreeSet allFiles = new TreeSet(); all...
19,997
public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); }
public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); }
19,998
public String getFileName() { // FIXME: I'm thinking that this method just provides access to the // text value in the JTextField component...but not sure yet return null; //filename; }
public String getFileName() { // FIXME: I'm thinking that this method just provides access to the // text value in the JTextField component...but not sure yet return entry.getText(); //filename; }
20,000
public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (currentTip != null) currentTip.setTipText(((JComponent) currentComponent).getToolTipText(event)); if (enterTimer.isRunning()) enterTimer.restart(); }
public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (currentTip != null) { if (currentComponent == null) currentComponent = (Component) event.getSource(); String text = ((JComponent) currentComponent).getToolTipText(event); currentTip.setTipText(text); } if (enterTimer.isRun...
20,001
private void showTip() { if (! enabled) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension dims = currentTip.getP...
private void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dime...
20,002
public MetalToggleButtonUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText");...
public MetalToggleButtonUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText");...
20,003
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { // FIXME: implement this return null; }
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { // FIXME: implement this return null; }
20,006
public DataFlavor[] getTransferDataFlavors() { // FIXME: implement this return null; }
public DataFlavor[] getTransferDataFlavors() { // FIXME: implement this return null; }
20,007
public boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; }
public boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; }
20,008
public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp) { // FIXME: implement this }
public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp) { // FIXME: implement this }
20,009
protected Transferable createTransferableProxy(Transferable t, boolean local) { // FIXME: implement this return null; }
protected Transferable createTransferableProxy(Transferable t, boolean local) { // FIXME: implement this return null; }
20,010
public Component getComponent() { // FIXME: implement this return null; }
public Component getComponent() { // FIXME: implement this return null; }
20,011
protected List getCurrentDataFlavorsAsList() { // FIXME: implement this return null; }
protected List getCurrentDataFlavorsAsList() { // FIXME: implement this return null; }
20,012
public DropTarget getDropTarget() { // FIXME: implement this return null; }
public DropTarget getDropTarget() { // FIXME: implement this return null; }
20,013
protected boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; }
protected boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; }
20,014
public void removeNotify() { // FIXME: implement this }
public void removeNotify() { // FIXME: implement this }
20,015
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalScrollPaneUI(); return instance; }
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalScrollPaneUI(); return instance; }
20,016
protected EditorDelegate(DefaultCellEditor editor) { // TODO } // EditorDelegate()
protected EditorDelegate(DefaultCellEditor editor) { // TODO } // EditorDelegate()
20,017
protected void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.IN...
private void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.INTE...
20,018
public FileLockImpl (FileChannelImpl channel, long position, long size, boolean shared) { super (channel, position, size, shared); ch = channel; }
public FileLockImpl (FileChannelImpl channel, long position, long size, boolean shared) { super (channel, position, size, shared); valid = true; }
20,019
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
20,020
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
20,021
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
20,022
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto...
20,023
private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number...
private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number...
20,024
private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number...
private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number...
20,025
public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); }
public void itemStateChanged(ItemEvent e) ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); }
20,027
public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); }
public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); comboBox.repaint();
20,028
public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo...
public void contentsChanged(ListDataEvent e) if (e.getIndex0() != -1 || e.getIndex1() != -1) isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) comboBox.configureEditor(comboBox.getEditor(), comboBox.g...
20,029
public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo...
public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBox...
20,030
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com...
public void intervalAdded(ListDataEvent e) int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) contentsChanged(e); } else if (start != -1 || end != -1) ListCellRenderer renderer = comboB...
20,031
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com...
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); else if (start != -1 || end != -1) { ListCellRenderer renderer = comb...
20,032
protected void installKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. }
protected void installKeyboardActions() { // FIXME: Need to implement. }
20,035
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol...
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) Color saved = g.getColor(); if (comboBox.isEnabled()) g.setColor(UIManager.getColor("UIManager.background")); } else g.setColor(UIManager.getColor(...
20,037
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol...
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); else { g.setColor(UIManager.getColo...
20,038
protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ...
protected Rectangle rectangleForCurrentValue() int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, w ...
20,039
protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ...
protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); return new Rectangle(i.left, i.top, w...
20,040
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. }
protected void uninstallKeyboardActions() { // FIXME: Need to implement. }
20,041
private static final BigInteger add(int x, int y) { return valueOf((long) x + (long) y); }
private static BigInteger add(int x, int y) { return valueOf((long) x + (long) y); }
20,043